• Resolved tuomonurkkala

    (@tuomonurkkala)


    Hi there! I am getting these log errors on my site:

    2025-11-12T21:21:00+00:00Kriittinen Uncaught Error: Call to a member function get() on null in /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Proxies/WC.php:241 Lisäkonteksti{ “error”: { “type”: 1, “file”: “/home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Proxies/WC.php”, “line”: 241 }, “remote-logging”: true, “backtrace”: [ “”, “#0 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php(623): Automattic\WooCommerce\GoogleListingsAndAds\Proxies\WC->get_customer_details()”, “#1 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php(288): Automattic\WooCommerce\GoogleListingsAndAds\Google\GlobalSiteTag->get_enhanced_conversion_tag()”, “#2 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php(258): Automattic\WooCommerce\GoogleListingsAndAds\Google\GlobalSiteTag->display_global_site_tag()”, “#3 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php(117): Automattic\WooCommerce\GoogleListingsAndAds\Google\GlobalSiteTag->activate_global_site_tag()”, “#4 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\GoogleListingsAndAds\Google\GlobalSiteTag->Automattic\WooCommerce\GoogleListingsAndAds\Google\{closure}()”, “#5 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#6 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/plugin.php(517): WP_Hook->do_action()”, “#7 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/general-template.php(3192): do_action()”, “#8 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php(642): wp_head()”, “#9 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php(612): WP_REST_Widget_Types_Controller->render_legacy_widget_preview_iframe()”, “#10 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/rest-api/class-wp-rest-server.php(1292): WP_REST_Widget_Types_Controller->render()”, “#11 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request()”, “#12 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch()”, “#13 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/rest-api.php(459): WP_REST_Server->serve_request()”, “#14 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/class-wp-hook.php(324): rest_api_loaded()”, “#15 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#16 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/plugin.php(565): WP_Hook->do_action()”, “#17 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/class-wp.php(418): do_action_ref_array()”, “#18 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/class-wp.php(818): WP->parse_request()”, “#19 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-includes/functions.php(1342): WP->main()”, “#20 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-blog-header.php(16): wp()”, “#21 /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/index.php(17): require(‘…’)”, “#22 {main}”, “thrown” ] }2025-11-12T21:21:01+00:00Kriittinen Uncaught Error: Call to a member function get() on null in /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Proxies/WC.php:241 Lisäkonteksti2025-11-12T21:21:01+00:00Kriittinen Uncaught Error: Call to a member function get() on null in /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Proxies/WC.php:241 Lisäkonteksti2025-11-12T21:21:01+00:00Kriittinen Uncaught Error: Call to a member function get() on null in /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Proxies/WC.php:241 Lisäkonteksti2025-11-12T21:21:01+00:00Kriittinen Uncaught Error: Call to a member function get() on null in /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Proxies/WC.php:241 Lisäkonteksti2025-11-12T21:21:02+00:00Kriittinen Uncaught Error: Call to a member function get() on null in /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Proxies/WC.php:241 Lisäkonteksti2025-11-12T21:21:02+00:00Kriittinen Uncaught Error: Call to a member function get() on null in /home/alusvaatteet-com-prod-wp-owner/webapps/alusvaatteet-com-prod-wp/wp-content/plugins/google-listings-and-ads/src/Proxies/WC.php:241 Lisäkonteksti

    Versio 10.3.5

    Best Regards:

    Tuomo Nurkkala

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    ‘Hi there!

    Thank you for sharing the details. To help us investigate this issue further, could you please let us know:

    1. When exactly did this error start appearing on your site?
    2. Were any changes made to your site shortly before the issue began (e.g., plugin updates, new plugins, theme changes, or custom code)?

    Additionally, could you please share the steps to reproduce the issue so we can try to replicate it on our end?

    Also, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status
    • Fatal error logs (if any) under WooCommerce > Status > Logs.

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

    Thread Starter tuomonurkkala

    (@tuomonurkkala)

    This is the first fatal error of its kind.

    I updated little while ago WooCommerce and Stripe.

    I think I haven’t done anything else related to this than adding a check mark to the Google for Woocommerce: Send Enhanced Conversions data to Google Ads.

    I have these Google plugins: Site Kit by Google and Google for WooCommerce.

    https://pastebin.com/GbAnD879

    Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Thank you for getting back and for the clarification @tuomonurkkala,

    Can you let me know how often you experience this error, or if this is the first time?

    Also, did you recently install Site Kit by Google, or have both plugins been running together for a while? I ask because Site Kit by Google and Google for WooCommerce are known to sometimes conflict.

    Thread Starter tuomonurkkala

    (@tuomonurkkala)

    Hi @mosesmedh

    It is my first time that I see this type of error. Maybe it has happened before, but I haven’t realized it.

    I am having some issues with icons and cookies on my site so that’s why I started investigating the problem.

    Both of these plugins have been running together for a while. I will check if this makes any difference if I deactivate this part: Send Enhanced Conversions data to Google Ads.

    Would one of these plugins be enough for google ads, tag manager & analytics?

    Plugin Support Sai (woo-hc)

    (@saivutukuru)

    Thanks for the update, @tuomonurkkala. Yes, please go ahead and test by disabling the “Send Enhanced Conversions data to Google Ads” option. Based on your logs, the error is happening when that specific feature tries to load customer data at a moment when WooCommerce hasn’t initialized it yet. Turning the feature off will help us confirm whether it’s the cause.

    Regarding your question:

    Site Kit by Google alone is sufficient for Google Analytics, Tag Manager, and basic Ads tracking.
    You only need Google for WooCommerce if you are using the product feed sync for Merchant Center or Shopping Ads.

    Once you test with Enhanced Conversions disabled, let us know the result, which will tell us the next steps.

    Plugin Support Ejay F – a11n

    (@ejayfernandes)

    Hi @tuomonurkkala,

    Since we haven’t heard back in a bit, I’ll mark this as resolved. Feel free to reach out anytime if you want to pick things up again.

    If your experience with Google for WooCommerce and our support was positive, a short review would mean a lot: https://wordpress.org/support/plugin/google-listings-and-ads/reviews/#new-post

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.