• WordPress: 5.3.2
    WooCommerce: 3.9.2

    Hi I noticed the following errors in the WooCommerce logs, I saw you had another similar case and I was curious if you might have some more insight into it? The error appears in previous days’ logs, but I don’t see a pattern to it (it’s not there everyday either).

    2020-02-28T15:29:20+00:00 CRITICAL Uncaught Error: Call to a member function get_applied_coupons() on null in /home/name_of_website/public_html/wordpress/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php:267
    Stack trace:
    #0 /home/name_of_website/public_html/wordpress/wp-includes/class-wp-hook.php(288): gtm4wp_woocommerce_datalayer_filter_items(Array)
    #1 /home/name_of_website/public_html/wordpress/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
    #2 /home/name_of_website/public_html/wordpress/wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php(818): apply_filters(‘gtm4wp_compile_…’, Array)
    #3 /home/name_of_website/public_html/wordpress/wp-includes/class-wp-hook.php(286): gtm4wp_wp_header_begin()
    #4 /home/name_of_website/public_html/wordpress/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #5 /home/name_of_website/public_html/wordpress/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #6 /home/name_of_website/public_html/wordpress/wp-includes/general-template.php(2879): do_action(‘wp in /home/name_of_website/public_html/wordpress/wp-content/plugins/query-monitor/collectors/php_errors.php on line 82

    Thank you!
    Adam

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Critical Uncaught Error: Call to a member function get_applied_coupons()’ is closed to new replies.