• Resolved khmubashar

    (@khmubashar)


    I am facing an issue in google tag manager sometimes my website not load, properly it take a too long time and then shows an error page. But when I check my woocommerce status log. It shows the following fatal error.

    2020-01-31T17:49:46+00:00 CRITICAL Uncaught Error: Call to a member function get_applied_coupons() on null in /var/www/html/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php:267
    Stack trace:
    #0 /var/www/html/wp-includes/class-wp-hook.php(288): gtm4wp_woocommerce_datalayer_filter_items(Array)
    #1 /var/www/html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
    #2 /var/www/html/wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php(818): apply_filters(‘gtm4wp_compile_…’, Array)
    #3 /var/www/html/wp-includes/class-wp-hook.php(286): gtm4wp_wp_header_begin()
    #4 /var/www/html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #5 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #6 /var/www/html/wp-includes/general-template.php(2879): do_action(‘wp_head’)
    #7 /var/www/html/wp-content/themes/martfury/header.php(16): wp_head()
    #8 /var/www/html/wp-includes/template.php(722): require_once(‘/var/www/html/w…’)
    #9 /var/www/html/wp-includes/template.php(671): in /var/www/html/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php on line 267
    Could you please What this stack say ?? and how to resolve this issue?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    What WordPress and WooCommerce version are you using?

    Thread Starter khmubashar

    (@khmubashar)

    Hi @duracelltomi Thanks for your reply!
    I am using
    WooCommerce version:3.9.1
    WordPress Version: 5.3.2

    • This reply was modified 5 years, 1 month ago by khmubashar.
    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    I re-rested the integration with the same base setup but for me this error message was not shown even with full logging enabled.

    That does not mean you are wrong but it could be related to a conflict with another WP plugin or your theme itself.

    Do you have any sandbox site where you can safely activate/deactivate plugins?
    The test would be to disable all plugins except for WooCommerce and GTM4WP and then place a test order to see what happens.

    Also: if you turn off the “Cart content in data layer” option, the error will go away

    Thread Starter khmubashar

    (@khmubashar)

    Hi @duracelltomi!

    Thanks for your response, for now, this error is not appearing anymore, If its come again i will try to excavate what exactly the cause of the error, Might possible the confliction cause.

    Regards
    Mubashar

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Website Get Stuck Due to Log Error’ is closed to new replies.