• Resolved cliqueradar

    (@cliqueradar)


    So, I’m seeing the following in error logs. Seems to be quite random when it’ll appear, and doesn’t have any noticeable effect on the website…

    [24-Aug-2023 18:49:32 UTC] PHP Fatal error:  Uncaught Error: Call to a member function is_type() on bool in /home/washingt/public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-abstract-google-analytics-js.php:208
    Stack trace:
    #0 /home/washingt/public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-gtag-js.php(368): WC_Abstract_Google_Analytics_JS::product_get_variant_line()
    #1 /home/washingt/public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-gtag-js.php(342): WC_Google_Gtag_JS->add_item()
    #2 /home/washingt/public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-abstract-google-analytics-js.php(98): WC_Google_Gtag_JS->add_transaction_enhanced()
    #3 /home/washingt/public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics.php(451): WC_Abstract_Google_Analytics_JS->add_transaction()
    #4 /home/washingt/public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics.php(408): WC_Google_Analytics->enqueue_ecommerce_tracking_code()
    #5 /home/washingt/public_html/wp-includes/class-wp-hook.php(310): WC_Google_Analytics->enqueue_tracking_code()
    #6 /home/washingt/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #7 /home/washingt/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 /home/washingt/public_html/wp-includes/script-loader.php(2225): do_action()
    #9 /home/washingt/public_html/wp-includes/class-wp-hook.php(310): wp_enqueue_scripts()
    #10 /home/washingt/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #11 /home/washingt/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #12 /home/washingt/public_html/wp-includes/general-template.php(3053): do_action()
    #13 /home/washingt/public_html/wp-content/themes/kadence/header.php(24): wp_head()
    #14 /home/washingt/public_html/wp-includes/template.php(785): require_once('/home/washingt/...')
    #15 /home/washingt/public_html/wp-includes/template.php(720): load_template()
    #16 /home/washingt/public_html/wp-includes/general-template.php(48): locate_template()
    #17 /home/washingt/public_html/wp-content/themes/kadence/page.php(14): get_header()
    #18 /home/washingt/public_html/wp-includes/template-loader.php(106): include('/home/washingt/...')
    #19 /home/washingt/public_html/wp-blog-header.php(19): require_once('/home/washingt/...')
    #20 /home/washingt/public_html/index.php(17): require('/home/washingt/...')
    #21 {main}
      thrown in /home/washingt/public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-abstract-google-analytics-js.php on line 208

    Any ideas what may be the cause?

    WooCommerce and the Google Analytics Integration plugin are both up to date and the site is running on php8.1.

    Thanks,

    Del.

    • This topic was modified 1 year, 3 months ago by cliqueradar. Reason: Fat fingers
Viewing 1 replies (of 1 total)
  • Hi there @cliqueradar ??

    Thank you for reaching out about this!

    I’m seeing the following in error logs. Seems to be quite random when it’ll appear, and doesn’t have any noticeable effect on the website…

    Any ideas what may be the cause?

    From what I gather, the error log is tracing this in the current theme’s (Kadence) header template.

    My recommendation is to make sure the theme is updated to its latest version and the template overrides up-to-date as well, and see if the issue persists.

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

    • This reply was modified 1 year, 2 months ago by anastas10s. Reason: typo
Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal Error’ is closed to new replies.