Fatal Error using Metabox Group addon with Elementor

Support MB Elementor Integrator Fatal Error using Metabox Group addon with Elementor

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #42308
    Nitesh KumarNitesh Kumar
    Participant

    So, here is how this bugs can be reproduced:

    Plugin used: Elementor, Metabox AIO, Groups, cloneable group fields.

    I created a post with multiple custom fields with 2-3 group fields and using cloneable/repeatable fields under those groups.

    Created Meta skin using Elementor and designed a custom post template.

    Everything was working well and I created 3-4 posts using this and it all worked well. Few days later, I had to add one more new sub_field in one of the existing group fields. I create it and then included in it in the previously created meta fields.

    As I saved it. Now, I wasn't able to open any of the custom posts or meta skin templates.. it all gave shows 'Fatal Error' message and I got an email like this:

    
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 288 of the file /var/www/domain.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php. Error message: Uncaught TypeError: array_column(): Argument #1 ($array) must be of type array, null given in /var/www/domain.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php:288
    Stack trace:
    #0 /var/www/domain.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php(288): array_column()
    #1 /var/www/domain.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/Traits/Post.php(92): MBEI\GroupField->get_value_dynamic_tag()
    #2 /var/www/domain.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/Traits/Fields/Text.php(16): MBEI\Tags\Post\Text->the_value()
    #3 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/dynamic-tags/tag.php(35): MBEI\Tags\Post\Text->render()
    #4 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/dynamic-tags/manager.php(216): Elementor\Core\DynamicTags\Tag->get_content()
    #5 [internal function]: Elementor\Core\DynamicTags\Manager->get_tag_data_content()
    #6 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/dynamic-tags/manager.php(109): call_user_func_array()
    #7 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/dynamic-tags/manager.php(74): Elementor\Core\DynamicTags\Manager->parse_tag_text()
    #8 [internal function]: Elementor\Core\DynamicTags\Manager->Elementor\Core\DynamicTags\{closure}()
    #9 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/dynamic-tags/manager.php(73): preg_replace_callback()
    #10 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/controls/base-data.php(91): Elementor\Core\DynamicTags\Manager->parse_tags_text()
    #11 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(1276): Elementor\Base_Data_Control->parse_tags()
    #12 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(1127): Elementor\Controls_Stack->parse_dynamic_settings()
    #13 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(1212): Elementor\Controls_Stack->get_parsed_dynamic_settings()
    #14 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/widgets/heading.php(305): Elementor\Controls_Stack->get_settings_for_display()
    #15 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(2268): Elementor\Widget_Heading->render()
    #16 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
    #17 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/widget-base.php(733): Elementor\Widget_Base->render_content()
    #18 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(536): Elementor\Widget_Base->get_raw_data()
    #19 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(536): Elementor\Element_Base->get_raw_data()
    #20 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(536): Elementor\Element_Base->get_raw_data()
    #21 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(536): Elementor\Element_Base->get_raw_data()
    #22 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/base/document.php(977): Elementor\Element_Base->get_raw_data()
    #23 /var/www/domain.com/htdocs/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(444): Elementor\Core\Base\Document->get_elements_raw_data()
    #24 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/base/document.php(643): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->get_elements_raw_data()
    #25 /var/www/domain.com/htdocs/wp-content/plugins/elementor/modules/library/documents/library-document.php(66): Elementor\Core\Base\Document->get_initial_config()
    #26 /var/www/domain.com/htdocs/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(666): Elementor\Modules\Library\Documents\Library_Document->get_initial_config()
    #27 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(1021): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->get_initial_config()
    #28 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/editor/config-providers/editor-common-client-env.php(34): Elementor\Controls_Stack->get_config()
    #29 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/editor/config-providers/editor-common-configs.php(169): Elementor\Core\Editor\Config_Providers\Editor_Common_Client_Env::get_client_env()
    #30 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/editor/config-providers/editor-v1-config-provider.php(46): Elementor\Core\Editor\Config_Providers\Editor_Common_Configs::get_client_env()
    #31 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/editor/editor-loader.php(57): Elementor\Core\Editor\Config_Providers\Editor_V1_Config_Provider->get_client_env()
    #32 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/editor/editor.php(357): Elementor\Core\Editor\Editor_Loader->print_client_env()
    #33 /var/www/domain.com/htdocs/wp-includes/class-wp-hook.php(308): Elementor\Core\Editor\Editor->enqueue_scripts()
    #34 /var/www/domain.com/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #35 /var/www/domain.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #36 /var/www/domain.com/htdocs/wp-includes/script-loader.php(2194): do_action()
    #37 /var/www/domain.com/htdocs/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts()
    #38 /var/www/domain.com/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #39 /var/www/domain.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #40 /var/www/domain.com/htdocs/wp-includes/general-template.php(3049): do_action()
    #41 /var/www/domain.com/htdocs/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head()
    #42 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/editor/editor-loader.php(135): include('...')
    #43 /var/www/domain.com/htdocs/wp-content/plugins/elementor/core/editor/editor.php(162): Elementor\Core\Editor\Editor_Loader->print_root_template()
    #44 /var/www/domain.com/htdocs/wp-includes/class-wp-hook.php(308): Elementor\Core\Editor\Editor->init()
    #45 /var/www/domain.com/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #46 /var/www/domain.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #47 /var/www/domain.com/htdocs/wp-admin/admin.php(419): do_action()
    #48 /var/www/domain.com/htdocs/wp-admin/post.php(12): require_once('...')
    #49 {main}
     thrown

    It appears that since a new sub_field is created and in the old posts, this new sub_field remains empty. This somehow ignite this bug. However, this bug doesn't go away even if I fill this new sub field for all the old posts. It goes away only when I create a new meta_skin and delete old one.

    Not sure why is this happening. Please see if you can help me with this to resolve any future issues. For now, I have created new meta skins and it's working now.

    Thank you.

    #42313
    PeterPeter
    Moderator

    Hello,

    Thanks for your feedback. I've escalated this issue to the development team to fix this issue in future updates.

    #42705
    SvenSven
    Participant

    I have the same error:

    Fatal error: Uncaught Error: array_column(): Argument #1 ($array) must be of type array, null given
    in /var/www/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php on line 288
    
    Call stack:
    
    array_column()
    wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php:288
    MBEI\GroupField::get_value_dynamic_tag()
    wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/Traits/Post.php:92
    MBEI\T\P\Text::the_value()
    wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/Traits/Fields/Text.php:16
    MBEI\T\P\Text::render()
    wp-content/plugins/elementor/core/dynamic-tags/tag.php:35
    Elementor\C\D\Tag::get_content()
    wp-content/plugins/elementor/core/dynamic-tags/manager.php:216
    Elementor\C\D\Manager::get_tag_data_content()
    wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php:130
    MBEI\GroupField::dynamic_tag_to_data()
    wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php:121
    MBEI\GroupField::dynamic_tag_to_data()
    wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php:81
    MBEI\GroupField::get_template()
    wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/GroupField.php:557
    MBEI\GroupField::display_data_template()
    wp-content/plugins/meta-box-aio/vendor/meta-box/mb-elementor-integrator/src/Widgets/MBGroup.php:268
    MBEI\Widgets\MBGroup::render()
    wp-content/plugins/elementor/includes/base/controls-stack.php:2268
    Elementor\Controls_Stack::render_by_mode()
    wp-content/plugins/elementor/includes/base/widget-base.php:609
    Elementor\Widget_Base::render_content()
    wp-content/plugins/elementor/includes/base/widget-base.php:733
    Elementor\Widget_Base::get_raw_data()
    wp-content/plugins/elementor/includes/base/element-base.php:536
    Elementor\Element_Base::get_raw_data()
    wp-content/plugins/elementor/includes/base/element-base.php:536
    Elementor\Element_Base::get_raw_data()
    wp-content/plugins/elementor/core/base/document.php:977
    Elementor\C\B\Document::get_elements_raw_data()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:444
    ElementorPro\M\T\D\Theme_Document::get_elements_raw_data()
    wp-content/plugins/elementor/core/base/document.php:643
    Elementor\C\B\Document::get_initial_config()
    wp-content/plugins/elementor/modules/library/documents/library-document.php:66
    Elementor\M\L\D\Library_Document::get_initial_config()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:666
    ElementorPro\M\T\D\Theme_Document::get_initial_config()
    wp-content/plugins/elementor/includes/base/controls-stack.php:1021
    Elementor\Controls_Stack::get_config()
    wp-content/plugins/elementor/core/editor/config-providers/editor-common-client-env.php:34
    Elementor\C\E\C\Editor_Common_Client_Env::get_client_env()
    wp-content/plugins/elementor/core/editor/config-providers/editor-common-configs.php:169
    Elementor\C\E\C\Editor_Common_Configs::get_client_env()
    wp-content/plugins/elementor/core/editor/config-providers/editor-v2-config-provider.php:88
    Elementor\C\E\C\Editor_V2_Config_Provider::get_client_env()
    wp-content/plugins/elementor/core/editor/editor-loader.php:57
    Elementor\C\E\Editor_Loader::print_client_env()
    wp-content/plugins/elementor/core/editor/editor.php:357
    Elementor\C\E\Editor::enqueue_scripts()
    wp-includes/class-wp-hook.php:308
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:332
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-includes/script-loader.php:2194
    wp_enqueue_scripts()
    wp-includes/class-wp-hook.php:308
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:332
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-includes/general-template.php:3049
    wp_head()
    wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php:31
    include()
    wp-content/plugins/elementor/core/editor/editor-loader.php:135
    Elementor\C\E\Editor_Loader::print_root_template()
    wp-content/plugins/elementor/core/editor/editor.php:162
    Elementor\C\E\Editor::init()
    wp-includes/class-wp-hook.php:308
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:332
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-admin/admin.php:419
    require_once()
    wp-admin/post.php:12
    #42708
    PeterPeter
    Moderator

    Hello Sven,

    Please make sure you have the latest version of Meta Box AIO 1.21.4 or MB Elementor Integrator 2.1.10 then check this issue again.

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