Hi,
I am also getting this very regularly.
Fatal error: Uncaught Error: Call to a member function needs_shipping_address() on null in /wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php:222
Environment:
Google Tag Manager 1.11.5
Woocommerce 4.6.1
Wordpress 5.5.3
PHP 7.3.3
Stack Trace:
1. {anonymous}()
/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php:222
2. gtm4wp_woocommerce_addglobalvars('')
/wp-includes/class-wp-hook.php:289
3. WP_Hook->apply_filters('', Array(2))
/wp-includes/plugin.php:206
4. apply_filters('gtm4wp_add_global_vars', '', true)
/wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php:785
5. gtm4wp_wp_header_top()
/wp-includes/class-wp-hook.php:285
6. WP_Hook->apply_filters(null, Array(1))
/wp-includes/class-wp-hook.php:311
7. WP_Hook->do_action(Array(1))
/wp-includes/plugin.php:478
8. do_action('wp_head')
/wp-includes/general-template.php:3009
9. wp_head()
/wp-content/themes/xxx/header.php:18
10. require_once('/var/www/...')
/wp-includes/template.php:730
11. load_template('/var/www/...', true, Array(0))
/wp-includes/template.php:676
12. locate_template(Array(1), true, true, Array(0))
/wp-includes/general-template.php:48
13. get_header()
/wp-content/themes/xxx/404.php:8
14. include('/var/www/...')
/wp-includes/template-loader.php:106
15. require_once('/var/www/...')
/wp-blog-header.php:19
16. require('/var/www/...')
/index.php:17
Context:
URL : /blogs/wp-json/wp/v2/users/
HTTP Method : GET
HTTP Status : 404
isSSL : Yes
Current Filter : wp_head, gtm4wp_add_global_vars