PHP User Error Log

Support MB Elementor Integrator PHP User Error LogResolved

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #40856
    YasmineYasmine
    Participant

    Hi,

    I am getting this error: /public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php on line 285

    Any idea what could be causing it?

    Many thanks,
    Yasmine

    #40871
    PeterPeter
    Moderator

    Hello,

    I don't know what the error on your site is. Can you please share the full error log? You can use https://pastebin.com/ and share the link here.

    Also, please let me know how I can reproduce the issue.

    #40949
    YasmineYasmine
    Participant

    Sure, here are the logs from today: https://pastebin.com/cn0efYPN

    #40950
    YasmineYasmine
    Participant

    And I don't know how to reproduce. I can only see the issue in php_errorlog and do not know yet what issue it is reporting on

    #40952
    PeterPeter
    Moderator

    Hello,

    Thanks for your additional information.

    I've escalated this issue to the development team to fix it in the next update. Currently, it might not affect any function of the Meta Box plugins on your site.

    #40977
    YasmineYasmine
    Participant

    Great, thank you!

    #41104
    YasmineYasmine
    Participant

    Hi I found when the issue was outputting..
    I use the meta box group skin for a group of 4 custom fields. When one of the values is not filled in, rather than showing blank. It shows this error directly on my webiste, I would really appreciate the fix in the next update:

    Warning: array_column() expects parameter 1 to be array, null given in ../public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php on line 285

    Warning: array_combine() expects parameter 2 to be array, null given in ../public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php on line 285

    Many thanks,
    Yasmine

    #41105
    YasmineYasmine
    Participant

    This group field is as follows:

    <?php
    $groups = rwmb_meta( 'resources_group' );
    foreach ( $groups as $group ) {

    // Field resource_or_database_type:
    echo $group[ 'resource_or_database_type' ] ?? '';

    // Field name_of_resource:
    echo $group[ 'name_of_resource' ] ?? '';

    // Field resource_details:
    echo $group[ 'resource_details' ] ?? '';

    // Field resource_link:
    echo $group[ 'resource_link' ] ?? '';

    }
    ?>

    Which is a select, text, textarea, URL

    In one case, the error showed when there were 3 group field values, that were filled as follows

    FIRST GROUP FIELD CONFIG
    1. Select: Value there, but not outputted
    2. Text: TRUE
    3. Text area: FALSE
    4. URL: TRUE

    SECOND GROUP FIELD CONFIG
    1. Select: Value there, but not outputted
    2. Text: TRUE
    3. Text area: FALSE
    4. URL: TRUE

    THIRD GROUP FIELD CONFIG
    1. Select: Value there, but not outputted
    2. Text: TRUE
    3. Text area: TRUE
    4. URL: TRUE

    The error showed beneath the first two fields, which had no value in the text area. When I added a space as the value in the text area for the first two, the error still showed. When the text area field was taken out of the MB Group Skin template, no error showed.

    I think the error is due to there being no value in a field.

    #41114
    PeterPeter
    Moderator

    Hello,

    This issue has been fixed in this commit https://github.com/wpmetabox/mb-elementor-integrator/commit/3120d4507d3a703271693a170570b711aceac3d2

    You can try to apply the change on your site or wait for the next update of the plugin. Thanks.

    #41127
    YasmineYasmine
    Participant

    Thanks Peter, I can wait 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.