Template for Single Product Critical Error
Hi, I am trying to add a template for a single product but it is causing a critical error when I create it.
The template does get created if I go back and look at templates, but clicking on edit again results in a critical error. Wordpress emailed me the following error details.
Please help!
WordPress version 6.1.1
Active theme: Betheme (version 26.7.2.1)
Current plugin: (version )
PHP version 8.1.14
Error Details
=============
An error of type E_ERROR was caused in line 284 of the file /home/sites/8a/a/ab613ae8b4/public_html/wp-content/themes/betheme/visual-builder/classes/visual-builder-class.php. Error message: Uncaught Error: Call to a member function get_id() on bool in /home/sites/8a/a/ab613ae8b4/public_html/wp-content/themes/betheme/visual-builder/classes/visual-builder-class.php:284
Stack trace:
#0 /home/sites/8a/a/ab613ae8b4/public_html/wp-includes/class-wp-hook.php(308): MfnVisualBuilder->mfn_append_vb_styles('')
#1 /home/sites/8a/a/ab613ae8b4/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#2 /home/sites/8a/a/ab613ae8b4/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/sites/8a/a/ab613ae8b4/public_html/wp-content/themes/betheme/visual-builder/visual-builder-header.php(72): do_action('admin_enqueue_s...')
#4 /home/sites/8a/a/ab613ae8b4/public_html/wp-content/themes/betheme/visual-builder/classes/visual-builder-class.php(980): require_once('/home/sites/8a/...')
#5 /home/sites/8a/a/ab613ae8b4/public_html/wp-content/themes/betheme/visual-builder/visual-builder.php(83): MfnVisualBuilder->mfn_load_sidebar()
#6 /home/sites/8a/a/ab613ae8b4/public_html/wp-includes/class-wp-hook.php(308): mfnvb_init_vb(194)
#7 /home/sites/8a/a/ab613ae8b4/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#8 /home/sites/8a/a/ab613ae8b4/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#9 /home/sites/8a/a/ab613ae8b4/public_html/wp-admin/post.php(363): do_action('post_action_mfn...', 194)
#10 {main}
thrown
Comments
Hello,
Please, turn off all of the plugins, refresh your cache, and check if the problem persists.
Moreover, if you use a child theme, switch to parent, and recheck it.
Thanks