Reply 230551 to: Home page broken on first visit

Avatar: Polar Coatings
Polar Coatings
Participant
March 2, 2020 at 10:04

Hi,

I have just tried to make all static blocks on the product pages a draft and the site came up with an error. WordPress emailed the following.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.3.2
Current theme: Polar Coatings Child | Royal (version 0.0.1)
Current plugin: (version )
PHP version 7.3.15

Error Details
=============
An error of type E_ERROR was caused in line 748 of the file /srv/htdocs/wp-content/themes/royal/framework/woo.php. Error message: Uncaught Error: Call to a member function get_cart_subtotal() on null in /srv/htdocs/wp-content/themes/royal/framework/woo.php:748
Stack trace:
#0 /srv/htdocs/wp-content/plugins/royal-core/inc/shortcodes/et_top_cart.php(37): etheme_cart_items()
#1 /wordpress/core/5.3.2/wp-includes/shortcodes.php(325): et_top_cart_shortcode(”, ”, ‘et_top_cart’)
#2 [internal function]: do_shortcode_tag(Array)
#3 /wordpress/core/5.3.2/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(et_top…’, ‘do_shortcode_ta…’, ‘[vc_row][vc_…’)
#4 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): do_shortcode(‘[vc_row][vc_…’)
#5 /wordpress/core/5.3.2/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘[vc_row][vc_…’, Array)
#6 /srv/htdocs/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php(140): apply_filters(‘the_content’, ‘[vc_row][vc_col…’)
#7 /srv/htdocs/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php(82): WPSEO_Link_Watcher->process(26715, ‘[vc_row][vc_col…’)
#8 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(290): WPSEO_Link_Watcher->save_post(26715, Object(WP_Post))
#9 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#10 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#11 /wordpress/core/5.3.2/wp-includes/post.php(4120): do_action(‘save_post’, 26715, Object(WP_Post), true)
#12 /wordpress/core/5.3.2/wp-includes/post.php(4197): wp_insert_post(Array, false)
#13 /wordpress/core/5.3.2/wp-admin/includes/post.php(623): wp_update_post(Array)
#14 /wordpress/core/5.3.2/wp-admin/edit.php(174): bulk_edit_posts(Array)
#15 {main}
thrown

Many Thanks

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.