Home › Forums › WoodMart support forum › Critical error when viewing product drafts
Critical error when viewing product drafts
- This topic has 12 replies, 2 voices, and was last updated 1 month ago by
Artem Temos.
-
AuthorPosts
-
March 19, 2025 at 6:00 pm #647299
jasonUk44ParticipantI have installed a fresh WordPress environment and only the plugins that come with my selected variation of the theme however when I try and preview a draft product it triggers an error message that there is a critical error on the site.
I have tracked this back to a WP Bakery layout issue however I cannot pinpoint what it is. All plugins are updated and functioning correctly.
Debug enabled.
Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /homepages/34/d4298879803/htdocs/wordpress/wp-content/plugins/js_composer/include/helpers/helpers.php:1687 Stack trace: #0 /homepages/34/d4298879803/htdocs/wordpress/wp-content/plugins/js_composer/modules/post-custom-layout/module.php(203): wpb_update_id_with_preview_id() #1 /homepages/34/d4298879803/htdocs/wordpress/wp-content/plugins/js_composer/modules/post-custom-layout/module.php(106): Vc_Post_Custom_Layout_Module->get_layout_from_meta() #2 /homepages/34/d4298879803/htdocs/wordpress/wp-content/plugins/js_composer/modules/post-custom-layout/module.php(80): Vc_Post_Custom_Layout_Module->get_custom_layout_name() #3 /homepages/34/d4298879803/htdocs/wordpress/wp-includes/class-wp-hook.php(324): Vc_Post_Custom_Layout_Module->switch_post_custom_layout() #4 /homepages/34/d4298879803/htdocs/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters() #5 /homepages/34/d4298879803/htdocs/wordpress/wp-includes/template-loader.php(104): apply_filters() #6 /homepages/34/d4298879803/htdocs/wordpress/wp-blog-header.php(19): require_once(‘/homepages/34/d…’) #7 /homepages/34/d4298879803/htdocs/wordpress/index.php(17): require(‘/homepages/34/d…’) #8 {main} thrown in /homepages/34/d4298879803/htdocs/wordpress/wp-content/plugins/js_composer/include/helpers/helpers.php on line 1687Urgent help is needed as this is an issue on a live version of the site.
March 19, 2025 at 6:56 pm #647323
Artem TemosKeymasterHello,
You need to update the WPBakery page builder plugin to the latest version 8.3.1. You can do this in Dashboard -> WoodMart -> Plugins.
Kind Regards
March 19, 2025 at 7:04 pm #647324
jasonUk44ParticipantThere is no update notice available for it… and the one in the support section of your site is still 8.3
March 19, 2025 at 7:06 pm #647325March 19, 2025 at 8:25 pm #647346
jasonUk44ParticipantWhere do we get the update from?
March 20, 2025 at 10:27 am #647469
Artem TemosKeymasterHello,
Try to go to Dashboard -> Updates -> Click on the “Check again” button and then update the plugin via WoodMart -> Plugins.
Kind Regards
March 20, 2025 at 12:17 pm #647532
jasonUk44ParticipantYes it states there’s an update however it will not update the normal way as the plugin isn’t registered as a stand alone and your theme is not pushing the updated version out for update.
The download you provide on your site isn’t even the updated version. Can you please send me a link to download the updated version.
Please advise as my site is experiencing serious issues with out this update.
March 20, 2025 at 2:36 pm #647579
Artem TemosKeymasterWe just tested the update on your website and it works as expected. Please check it on your website now https://gyazo.com/3cd01482d9543bc4660ad6fc69541069
March 20, 2025 at 3:28 pm #647591
jasonUk44ParticipantThe update is not available on my site even thought the plugin is saying theres an update..
Attachments:
You must be logged in to view attached files.March 20, 2025 at 3:43 pm #647600
jasonUk44ParticipantCam someone send me the latest JS version so I can manually update as the one in your download section is still the old version
March 20, 2025 at 4:56 pm #647630
Artem TemosKeymasterWe just checked your website and see that it is updated to the latest version 8.3.1 https://gyazo.com/df9b2e8e7479be6f35e622dabb452810
March 20, 2025 at 4:59 pm #647631
jasonUk44ParticipantYes but this is a demo site I out up to make sure I wasn’t doing anything wrong.. the main site hasn’t updated
March 20, 2025 at 5:06 pm #647633
Artem TemosKeymasterIn this case, please your main website admin access so we can check what is wrong.
-
AuthorPosts
Tagged: critical error, debug, wp bakery
- You must be logged in to create new topics. Login / Register