• BERJAYAfiginteriordesignuk

    (@figinteriordesignuk)


    ​I have a critical issue on our website that appears to be directly related to the recent Meta Box v5.12.0 update (released April 22nd). A few of our project pages are displaying a “Critical Error” message. On pages where the site does load, some of the images are missing. 

    ​I conducted the following tests to isolate the cause:

    ​- When Meta Box and Meta Box Lite are deactivated, the critical error disappears and the project pages load (though missing the custom data handled by your plugin).
    ​- The error seems specifically tied to the image carousel functionality. In one instance, deleting the carousel manually allowed the page to load, but the core issue remains across the project pages.
    ​- We attempted to roll back both Elementor and Meta Box to previous versions, but this did not resolve the conflict, suggesting a significant compatibility break in the latest update.

    ​Is​ this a known bug with the April 22nd release and if there is a specific patch or work-around we should apply?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author BERJAYAAnh Tran

    (@rilwis)

    Hi,

    Can you please share how do you use Meta Box on your site, and how do you setup the image carousel, which causes the bug?

    Can you please enable the debug mode and share the full error message?

    Thread Starter BERJAYAfiginteriordesignuk

    (@figinteriordesignuk)

    Hi Anh,

    Thanks for replying! I use it to o create custom fields on our project pages.

    Full error message below:
    Uncaught TypeError: Cannot access offset of type string on string in /home/www/public/wp-content/plugins/elementor/includes/widgets/image-carousel.php:942
    Stack trace: 0 /home/www/public/wp-content/plugins/elementor/includes/base/controls-stack.php(2374): Elementor\Widget_Image_Carousel->render() 1 /home/www/public/wp-content/plugins/elementor/includes/base/widget-base.php(636): Elementor\Controls_Stack->render_by_mode() 2 /home/www/public/wp-content/plugins/elementor/includes/base/widget-base.php(774): Elementor\Widget_Base->render_content() 3 /home/www/public/wp-content/plugins/elementor/includes/base/element-base.php(494): Elementor\Widget_Base->print_content() 4 /home/www/public/wp-content/plugins/elementor/modules/element-cache/module.php(71): Elementor\Element_Base->print_element() 5 /home/www/public/wp-includes/shortcodes.php(434): Elementor\Modules\ElementCache\Module->Elementor\Modules\ElementCache{closure}() 6 [internal function]: do_shortcode_tag() 7 /home/www/public/wp-includes/shortcodes.php(273): preg_replace_callback() 8 /home/www/public/wp-content/plugins/elementor/core/base/document.php(1888): do_shortcode() 9 /home/www/public/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(466): Elementor\Core\Base\Document->print_elements() 10 /home/www/public/wp-content/plugins/elementor/includes/frontend.php(1223): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_elements_with_wrapper() 11 /home/www/public/wp-content/plugins/elementor/core/base/document.php(1269): Elementor\Frontend->get_builder_content() 12 /home/www/public/wp-content/plugins/elementor/modules/library/documents/library-document.php(82): Elementor\Core\Base\Document->get_content() 13 /home/www/public/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(167): Elementor\Modules\Library\Documents\Library_Document->get_content() 14 /home/www/public/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(182): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->get_content() 15 /home/www/public/wp-content/plugins/elementor-pro/modules/theme-builder/documents/single-base.php(100): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_content() 16 /home/www/public/wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php(438): ElementorPro\Modules\ThemeBuilder\Documents\Single_Base->print_content() 17 /home/www/public/wp-content/themes/astra/inc/compatibility/class-astra-elementor-pro.php(245): ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->do_location() 18 /home/www/public/wp-includes/class-wp-hook.php(341): ElementorPro\Modules\ThemeBuilder\ThemeSupport\Astra_Elementor_Pro->do_template_parts() 19 /home/www/public/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() 20 /home/www/public/wp-includes/plugin.php(522): WP_Hook->do_action() 21 /home/www/public/wp-content/themes/astra/inc/class-astra-loop.php(191): do_action() 22 /home/www/public/wp-includes/class-wp-hook.php(341): Astra_Loop->loop_markup() 23 /home/www/public/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() 24 /home/www/public/wp-includes/plugin.php(522): WP_Hook->do_action() 25 /home/www/public/wp-content/themes/astra/inc/core/theme-hooks.php(256): do_action() 26 /home/www/public/wp-content/themes/astra/single.php(27): astra_content_loop() 27 /home/www/public/wp-includes/template-loader.php(132): include(‘…’) 28 /home/www/public/wp-blog-header.php(19): require_once(‘…’) 29 /home/www/public/index.php(17): require(‘…’) 30 {main} thrown

    Plugin Author BERJAYAAnh Tran

    (@rilwis)

    It’s weird that the error message doesn’t contain anything related to Meta Box.

    Do you connect custom fields from Meta Box to Elementor? Can you please export the JSON of the field group and send me here?

    Thread Starter BERJAYAfiginteriordesignuk

    (@figinteriordesignuk)

    Many thanks.
    Yes, I connect custom frields from Meta Box to Elementor. Please see the full JSON bellow:

    {
    "$schema": "https://schemas.metabox.io/field-group.json",
    "fields": [
    {
    "name": "Type",
    "id": "type",
    "type": "text",
    "label_description": "Type",
    "required": false,
    "disabled": false,
    "readonly": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false,
    "limit_type": "character"
    },
    {
    "name": "Surface",
    "id": "surface",
    "type": "text",
    "label_description": "Surface (m²)",
    "required": false,
    "disabled": false,
    "readonly": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false,
    "limit_type": "character"
    },
    {
    "name": "Location",
    "id": "location",
    "type": "text",
    "required": false,
    "disabled": false,
    "readonly": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false,
    "limit_type": "character"
    },
    {
    "name": "Budget",
    "id": "budget",
    "type": "text",
    "required": false,
    "disabled": false,
    "readonly": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false,
    "limit_type": "character"
    },
    {
    "name": "Description 1",
    "id": "description_1",
    "type": "textarea",
    "required": false,
    "disabled": false,
    "readonly": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false,
    "limit_type": "character"
    },
    {
    "name": "Image 1",
    "id": "image_1",
    "type": "image_advanced",
    "max_status": false,
    "force_delete": false,
    "required": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false
    },
    {
    "name": "Image 2",
    "id": "image_2",
    "type": "image_advanced",
    "max_status": false,
    "force_delete": false,
    "required": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false
    },
    {
    "name": "Image 3",
    "id": "image_3",
    "type": "image_advanced",
    "max_status": false,
    "force_delete": false,
    "required": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false
    },
    {
    "name": "Title Description 2",
    "id": "title_description_2",
    "type": "text",
    "required": false,
    "disabled": false,
    "readonly": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false,
    "limit_type": "character"
    },
    {
    "name": "Description 2",
    "id": "description_2",
    "type": "textarea",
    "required": false,
    "disabled": false,
    "readonly": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false,
    "limit_type": "character"
    },
    {
    "name": "Image 4",
    "id": "image_4",
    "type": "image_advanced",
    "max_status": false,
    "force_delete": false,
    "required": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false
    },
    {
    "name": "Image 5",
    "id": "image_5",
    "type": "image_advanced",
    "max_status": false,
    "force_delete": false,
    "required": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false
    },
    {
    "name": "Title Description 3",
    "id": "title_description_1",
    "type": "text",
    "required": false,
    "disabled": false,
    "readonly": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false,
    "limit_type": "character"
    },
    {
    "name": "Description 3",
    "id": "description_3",
    "type": "textarea",
    "required": false,
    "disabled": false,
    "readonly": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false,
    "limit_type": "character"
    },
    {
    "name": "Gallery",
    "id": "gallery",
    "type": "image_advanced",
    "force_delete": false,
    "required": false,
    "clone": false,
    "clone_empty_start": false,
    "hide_from_rest": false
    }
    ],
    "id": "projects",
    "modified": 1778066857,
    "post_types": [
    "projects"
    ],
    "title": "Projects"
    }
    Plugin Author BERJAYAAnh Tran

    (@rilwis)

    Hi, I tried your field group, and tested it with Elementor, but didn’t see the error. Here is my screen recording:

    https://drive.google.com/file/d/1Nro1WhNqOVU9-pfkPk-80_nA1B2Ud1D0/view?usp=sharing

    Can you please record a similar video showing how do you set up?

    Thread Starter BERJAYAfiginteriordesignuk

    (@figinteriordesignuk)

    Hi Anh, many thanks and apologies for taking too long to reply. I made a video similar to yours, showing what happens when we insert pictures in the gallery and when we remove them.

    https://drive.google.com/file/d/1CBas_Xtu7Orjw8BzGtIJ73EH2EVNrgca/view?usp=sharing

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.