Home page broken on first visit - by Polar Coatings

This topic has 13 replies, 3 voices, and was last updated 4 years, 8 months ago ago by Olga Barlow

  • Avatar: Polar Coatings
    Polar Coatings
    Participant
    February 26, 2020 at 19:36

    Our homepage is only showing as a similar way to the tablet view but won’t show anything past the slider and has a constant navigation bar on the right. The theme was working fine yesterday. I have contacted WordPress and they have said that it is a possible issue with the theme. There is a #error-page ID on inspection view but if you refresh the page it shows as it should. It also works fine on all other pages.

    12 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 27, 2020 at 09:31

    Hello,

    Enable WP debug mode https://wordpress.org/support/article/debugging-in-wordpress/ to find out what error appears on your site, it will point you in the right direction what needs to be fixed.

    Regards

    Avatar: Polar Coatings
    Polar Coatings
    Participant
    February 28, 2020 at 12:26

    Hi, I have done that and the below is what has come back on the debug log but I don’t fully understand it all or what to do.

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:20:14 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:20:14 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_average_rating() on null in /wordpress/plugins/woocommerce/3.9.2/templates/loop/rating.php:28

    Stack trace:

    #0 /wordpress/plugins/woocommerce/3.9.2/includes/wc-core-functions.php(249): include()

    #1 /wordpress/plugins/woocommerce/3.9.2/includes/wc-template-functions.php(1293): wc_get_template(‘loop/rating.php’)

    #2 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): woocommerce_template_loop_rating(”)

    #3 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)

    #4 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)

    #5 /srv/htdocs/wp-content/themes/royal/woocommerce/content-product-slider.php(210): do_action(‘woocommerce_aft…’)

    #6 /wordpress/core/5.3.2/wp-includes/template.php(724): require(‘/srv/htdocs/wp-…’)

    #7 /wordpress/plugins/woocommerce/3.9.2/includes/wc-core-functions.php(195): load_template(‘/srv/htdocs/wp-…’, false)

    #8 /srv/htdocs/wp-content/themes/royal/framework/theme-functions.php(2679): wc_get_template_part(‘content’, ‘product-slider’)

    #9 /srv/htdocs/wp-content/plugins/royal-core/inc/shortcodes/etheme_products.php(187): etheme_create_slider(Array, Array)

    #10 /wordpress/core/5.3.2/wp-includes/shortcodes.php(325): etheme_products_shortcodes(Array, ”, ‘etheme_products’)

    #11 [internal function]: do_shortcode_tag(Array)

    #12 /wordpress/core/5.3.2/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(ultima…’, ‘do_shortcode_ta…’, ‘[vc_column_text…’)

    #13 /srv/htdocs/wp-content/plugins/js_composer/include/helpers/helpers.php(240): do_shortcode(‘[vc_column_text…’)

    #14 /srv/htdocs/wp-content/plugins/js_composer/include/templates/shortcodes/vc_column.php(94): wpb_js_remove_wpautop(‘[vc_column_text…’)

    #15 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(267): require(‘/srv/htdocs/wp-…’)

    #16 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(244): WPBakeryShortCode->loadTemplate(Array, ‘[vc_column_text…’)

    #17 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(362): WPBakeryShortCode->content(Array, ‘[vc_column_text…’)

    #18 /srv/htdocs/wp-content/plugins/js_composer/include/helpers/helpers.php(1316): WPBakeryShortCode->output(Array, ‘[vc_column_text…’)

    #19 /wordpress/core/5.3.2/wp-includes/shortcodes.php(325): vc_do_shortcode(Array, ‘[vc_column_text…’, ‘vc_column’)

    #20 [internal function]: do_shortcode_tag(Array)

    #21 /wordpress/core/5.3.2/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(ultima…’, ‘do_shortcode_ta…’, ‘[vc_column css=…’)

    #22 /srv/htdocs/wp-content/plugins/js_composer/include/helpers/helpers.php(240): do_shortcode(‘[vc_column css=…’)

    #23 /srv/htdocs/wp-content/plugins/js_composer/include/templates/shortcodes/vc_row.php(156): wpb_js_remove_wpautop(‘[vc_column css=…’)

    #24 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(267): require(‘/srv/htdocs/wp-…’)

    #25 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php(40): WPBakeryShortCode->loadTemplate(Array, ‘[vc_column css=…’)

    #26 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(362): WPBakeryShortCode_Vc_Row->content(Array, ‘[vc_column css=…’)

    #27 /srv/htdocs/wp-content/plugins/js_composer/include/helpers/helpers.php(1316): WPBakeryShortCode->output(”, ‘[vc_column css=…’)

    #28 /wordpress/core/5.3.2/wp-includes/shortcodes.php(325): vc_do_shortcode(”, ‘[vc_column css=…’, ‘vc_row’)

    #29 [internal function]: do_shortcode_tag(Array)

    #30 /wordpress/core/5.3.2/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(ultima…’, ‘do_shortcode_ta…’, ‘

    [vc_row][vc_…’)

    #31 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): do_shortcode(‘

    [vc_row][vc_…’)

    #32 /wordpress/core/5.3.2/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘

    [vc_row][vc_…’, Array)

    #33 /wordpress/core/5.3.2/wp-includes/post-template.php(253): apply_filters(‘the_content’, ‘

    [vc_row][vc_…’)

    #34 /srv/htdocs/wp-content/themes/royal/page.php(47): the_content()

    #35 /wordpress/core/5.3.2/wp-includes/template-loader.php(98): include(‘/srv/htdocs/wp-…’)

    #36 /wordpress/core/5.3.2/wp-blog-header.php(19): require_once(‘/wordpress/core…’)

    #37 /wordpress/core/5.3.2/index.php(17): require(‘/wordpress/core…’)

    #38 {main}

    Next Exception: Call to a member function get_average_rating() on null in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php:82

    Stack trace:

    #0 [internal function]: QM_Collector_PHP_Errors->exception_handler(Object(Error))

    #1 {main}

    thrown in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 82

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 194

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: file in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 195

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/classes/Backtrace.php on line 196

    [28-Feb-2020 11:21:18 UTC] PHP Notice: Undefined index: line in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 72

    [28-Feb-2020 11:21:18 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_average_rating() on null in /wordpress/plugins/woocommerce/3.9.2/templates/loop/rating.php:28

    Stack trace:

    #0 /wordpress/plugins/woocommerce/3.9.2/includes/wc-core-functions.php(249): include()

    #1 /wordpress/plugins/woocommerce/3.9.2/includes/wc-template-functions.php(1293): wc_get_template(‘loop/rating.php’)

    #2 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): woocommerce_template_loop_rating(”)

    #3 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)

    #4 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)

    #5 /srv/htdocs/wp-content/themes/royal/woocommerce/content-product-slider.php(210): do_action(‘woocommerce_aft…’)

    #6 /wordpress/core/5.3.2/wp-includes/template.php(724): require(‘/srv/htdocs/wp-…’)

    #7 /wordpress/plugins/woocommerce/3.9.2/includes/wc-core-functions.php(195): load_template(‘/srv/htdocs/wp-…’, false)

    #8 /srv/htdocs/wp-content/themes/royal/framework/theme-functions.php(2679): wc_get_template_part(‘content’, ‘product-slider’)

    #9 /srv/htdocs/wp-content/plugins/royal-core/inc/shortcodes/etheme_products.php(187): etheme_create_slider(Array, Array)

    #10 /wordpress/core/5.3.2/wp-includes/shortcodes.php(325): etheme_products_shortcodes(Array, ”, ‘etheme_products’)

    #11 [internal function]: do_shortcode_tag(Array)

    #12 /wordpress/core/5.3.2/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(ultima…’, ‘do_shortcode_ta…’, ‘[vc_column_text…’)

    #13 /srv/htdocs/wp-content/plugins/js_composer/include/helpers/helpers.php(240): do_shortcode(‘[vc_column_text…’)

    #14 /srv/htdocs/wp-content/plugins/js_composer/include/templates/shortcodes/vc_column.php(94): wpb_js_remove_wpautop(‘[vc_column_text…’)

    #15 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(267): require(‘/srv/htdocs/wp-…’)

    #16 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(244): WPBakeryShortCode->loadTemplate(Array, ‘[vc_column_text…’)

    #17 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(362): WPBakeryShortCode->content(Array, ‘[vc_column_text…’)

    #18 /srv/htdocs/wp-content/plugins/js_composer/include/helpers/helpers.php(1316): WPBakeryShortCode->output(Array, ‘[vc_column_text…’)

    #19 /wordpress/core/5.3.2/wp-includes/shortcodes.php(325): vc_do_shortcode(Array, ‘[vc_column_text…’, ‘vc_column’)

    #20 [internal function]: do_shortcode_tag(Array)

    #21 /wordpress/core/5.3.2/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(ultima…’, ‘do_shortcode_ta…’, ‘[vc_column css=…’)

    #22 /srv/htdocs/wp-content/plugins/js_composer/include/helpers/helpers.php(240): do_shortcode(‘[vc_column css=…’)

    #23 /srv/htdocs/wp-content/plugins/js_composer/include/templates/shortcodes/vc_row.php(156): wpb_js_remove_wpautop(‘[vc_column css=…’)

    #24 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(267): require(‘/srv/htdocs/wp-…’)

    #25 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php(40): WPBakeryShortCode->loadTemplate(Array, ‘[vc_column css=…’)

    #26 /srv/htdocs/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(362): WPBakeryShortCode_Vc_Row->content(Array, ‘[vc_column css=…’)

    #27 /srv/htdocs/wp-content/plugins/js_composer/include/helpers/helpers.php(1316): WPBakeryShortCode->output(”, ‘[vc_column css=…’)

    #28 /wordpress/core/5.3.2/wp-includes/shortcodes.php(325): vc_do_shortcode(”, ‘[vc_column css=…’, ‘vc_row’)

    #29 [internal function]: do_shortcode_tag(Array)

    #30 /wordpress/core/5.3.2/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(ultima…’, ‘do_shortcode_ta…’, ‘

    [vc_row][vc_…’)

    #31 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): do_shortcode(‘

    [vc_row][vc_…’)

    #32 /wordpress/core/5.3.2/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘

    [vc_row][vc_…’, Array)

    #33 /wordpress/core/5.3.2/wp-includes/post-template.php(253): apply_filters(‘the_content’, ‘

    [vc_row][vc_…’)

    #34 /srv/htdocs/wp-content/themes/royal/page.php(47): the_content()

    #35 /wordpress/core/5.3.2/wp-includes/template-loader.php(98): include(‘/srv/htdocs/wp-…’)

    #36 /wordpress/core/5.3.2/wp-blog-header.php(19): require_once(‘/wordpress/core…’)

    #37 /wordpress/core/5.3.2/index.php(17): require(‘/wordpress/core…’)

    #38 {main}

    Next Exception: Call to a member function get_average_rating() on null in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php:82

    Stack trace:

    #0 [internal function]: QM_Collector_PHP_Errors->exception_handler(Object(Error))

    #1 {main}

    thrown in /srv/htdocs/wp-content/plugins/query-monitor/collectors/php_errors.php on line 82

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 28, 2020 at 14:00

    Hello,

    Disable Query Monitor plugin and check the Home page then. If it works fine, contact support of the plugin. If this doesn’t solve the problem, provide us with temporary wp-admin and FTP access, so we can take a closer look.

    Regards

    Avatar: Polar Coatings
    Polar Coatings
    Participant
    February 28, 2020 at 14:25

    Hi,

    I have disables the Query Monitor and the problem is still happening. After deactivating all plugins to test if one wasn’t working, it seems to be the Royal Core plugin that is causing the problem. When deactivated the site works fine. The only problem is now that none of the shortcodes work.

    Many Thanks

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 28, 2020 at 14:53

    Hello,

    We no not see the problem on your Home page right now – http://prntscr.com/r91rdw Is the problem solved?

    Regards

    Avatar: Polar Coatings
    Polar Coatings
    Participant
    February 28, 2020 at 15:10

    Hi,

    No, it isn’t fixed. It seems to be an intermittent issue. Sometimes it works when you refresh a page.

    https://prnt.sc/r923bk

    Many Thanks

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 28, 2020 at 16:49

    Hello,

    As I can see, your are using static block in short description of these products http://prntscr.com/r93w43 http://prntscr.com/r93wj6 > http://prntscr.com/r93wcx > http://prntscr.com/r93wua Try to remove short descriptions for mentioned products, and check Home page a few times to make sure that the content of static blocks causes the problem.

    Regards

    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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 2, 2020 at 17:06

    Hello,

    This error Call to a member function get_cart_subtotal() on null is fixed.
    Let me know if you still have the first error and if you have any other error messages in the log file once you get that error.

    Regards

    Avatar: Polar Coatings
    Polar Coatings
    Participant
    March 3, 2020 at 10:34

    Hi,

    I have just checked the website and the original issue is still happening.

    I have just checked the log and below is everything that is stated on the dashboard.

    Many Thanks

    Please contact administrator
    for this information.
    Avatar: Polar Coatings
    Polar Coatings
    Participant
    March 3, 2020 at 13:27

    Hi,

    The original issue isn’t fixed. It looked like it was but it has come back.

    Many Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 4, 2020 at 12:20

    Hello,

    The original issue comes because of the fatal error (Fatal error: Uncaught Error: Call to a member function get_average_rating() on null in /srv/htdocs/wp-content/plugins/woocommerce/templates/loop/rating.php:28 ) but we can’t find out actions that call that fatal error to find the reason.
    We gave you refund. Sorry for the inconvenience.

    Regards

  • Viewing 13 results - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.