• Resolved barteeek

    (@barteeek)


    https://snipboard.io/HVKMUB.jpg

    Hi i use theme woodmart and when google for woocomerce is active i get error like in screen when i turn off the plugin all working

    php 8.4

    [21-Sep-2025 15:26:33 UTC] PHP Fatal error: Uncaught TypeError: Automattic\WooCommerce\GoogleListingsAndAds\Google\GlobalSiteTag::maybe_display_conversion_and_purchase_event_snippets(): Argument #3 ($order_id) must be of type int, string given, called in /home/fqzqiwtw/public_html/wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php on line 125 and defined in /home/fqzqiwtw/public_html/wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php:354
    Stack trace: 0 /home/fqzqiwtw/public_html/wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php(125): Automattic\WooCommerce\GoogleListingsAndAds\Google\GlobalSiteTag->maybe_display_conversion_and_purchase_event_snippets(‘AW-11557691372’, ‘tC1RCLPHpJkbEOy…’, ‘14999’) 1 /home/fqzqiwtw/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\GoogleListingsAndAds\Google\GlobalSiteTag->{closure:Automattic\WooCommerce\GoogleListingsAndAds\Google\GlobalSiteTag::register():124}(‘14999’) 2 /home/fqzqiwtw/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 3 /home/fqzqiwtw/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 4 /home/fqzqiwtw/public_html/wp-content/themes/woodmart/inc/modules/layouts/elementor/woocommerce/class-hook.php(279): do_action(‘woocommerce_bef…’, ‘14999’) 5 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2374): XTS\Modules\Layouts\Hook->render() 6 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(636): Elementor\Controls_Stack->render_by_mode() 7 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(774): Elementor\Widget_Base->render_content() 8 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/includes/base/element-base.php(492): Elementor\Widget_Base->print_content() 9 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1453): Elementor\Element_Base->print_element() 10 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/includes/base/element-base.php(492): Elementor\Element_Base->print_content() 11 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/core/base/document.php(1888): Elementor\Element_Base->print_element() 12 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/core/base/document.php(1804): Elementor\Core\Base\Document->do_print_elements(Array) 13 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/core/base/document.php(1201): Elementor\Core\Base\Document->print_elements(Array) 14 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/includes/frontend.php(1172): Elementor\Core\Base\Document->print_elements_with_wrapper(Array) 15 /home/fqzqiwtw/public_html/wp-content/plugins/elementor/includes/frontend.php(1240): Elementor\Frontend->get_builder_content(11536, false) 16 /home/fqzqiwtw/public_html/wp-content/themes/woodmart/inc/integrations/elementor/helpers.php(49): Elementor\Frontend->get_builder_content_for_display(11536, false) 17 /home/fqzqiwtw/public_html/wp-content/themes/woodmart/inc/functions.php(526): woodmart_elementor_get_content(11536) 18 /home/fqzqiwtw/public_html/wp-content/themes/woodmart/inc/modules/layouts/class-layout-type.php(69): woodmart_get_post_content(11536) 19 /home/fqzqiwtw/public_html/wp-content/themes/woodmart/inc/modules/layouts/class-thank-you-page.php(68): XTS\Modules\Layouts\Layout_Type->template_content(‘thank_you_page’) 20 /home/fqzqiwtw/public_html/wp-content/themes/woodmart/inc/modules/layouts/class-thank-you-page.php(51): XTS\Modules\Layouts\Thank_You_Page->display_template() 21 /home/fqzqiwtw/public_html/wp-includes/class-wp-hook.php(324): XTS\Modules\Layouts\Thank_You_Page->override_template(‘/home/fqzqiwtw/…’) 22 /home/fqzqiwtw/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘/home/fqzqiwtw/…’, Array) 23 /home/fqzqiwtw/public_html/wp-includes/template-loader.php(104): apply_filters(‘template_includ…’, ‘/home/fqzqiwtw/…’) 24 /home/fqzqiwtw/public_html/wp-blog-header.php(19): require_once(‘/home/fqzqiwtw/…’) 25 /home/fqzqiwtw/public_html/index.php(17): require(‘/home/fqzqiwtw/…’) 26 {main}

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter barteeek

    (@barteeek)

    Now i turn off google for woocomerce and thank you normal working

    Hi @barteeek,

    Thank you for reaching out. I completely understand how concerning it can be when a plugin causes your website to crash, it can be very frustrating.

    To get a better understanding of what’s happening behind the scenes, please share your system status report by going to WooCommerce > Status > Get System Report > Copy for Support and then share it using Pastebin.

    Thread Starter barteeek

    (@barteeek)

    Thread Starter barteeek

    (@barteeek)

    pls fix asap

    Hi @barteeek,

    Thank you for sharing the report. I’ve reviewed your system setup and noticed that Google Site Kit is active. Please note that Google for WooCommerce and Site Kit can conflict, as both provide overlapping features.

    Could you try deactivating Google Site Kit and keeping Google for WooCommerce active, then let me know if the issue persists?

    Also, is this your first time installing Google for WooCommerce on this site, or was it previously installed and working? If it was working before, what was the last action you performed before the issue appeared?

    pls fix asap

    I understand that you’re looking for a quick resolution, but in order to escalate or properly troubleshoot the issue, we first need to understand its cause. I appreciate your patience and cooperation as we work together through this process.

    I currently have the plugin active on my test sites and haven’t encountered any errors, which indicates that the issue is specific to your setup.

    Thread Starter barteeek

    (@barteeek)

    Uncaught Error: Automattic\WooCommerce\GoogleListingsAndAds\Google\GlobalSiteTag::maybe_display_conversion_and_purchase_event_snippets(): Argument #3 ($order_id) must be of type int, string given, called in /home/fqzqiwtw/public_html/wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php on line 125
    in /home/fqzqiwtw/public_html/wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php on line 354

    Call stack:

    1. Automattic\W\G\G\GlobalSiteTag::maybe_display_conversion_and_purchase_event_snippets('i dont share', 'i dont share', 'i dont share')
      wp-content/plugins/google-listings-and-ads/src/Google/GlobalSiteTag.php:125


    when i turn off the pugin gsitekit

    Hi @barteeek,

    Thank you for getting back and following the instructions. To safely troubleshoot this issue, please create a staging copy of your live site using your hosting’s staging tool or WP Migrate Guru to move a copy to a subdomain or separate directory.

    Once the staging site is ready, deactivate all plugins except WooCommerce, switch your theme to Storefront, and then activate Google for WooCommerce only. Please share a screen recording via Loom showing what happens after activation.

    Additionally, share the system status report from the staging site by going to WooCommerce > Status > Get System Report > Copy for Support and then share it using Pastebin.

    This will help us isolate the issue and either find a solution or guide you through escalation.

    Thread Starter barteeek

    (@barteeek)

    I solve the problem, i turn off the custom thank yoy page in woodmart and it working

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Great to hear everything’s working perfectly now! Your feedback helps us improve and reach more users.

    If you have a moment, we’d be incredibly grateful if you could share your experience by leaving a review here: https://wordpress.org/support/plugin/google-listings-and-ads/reviews/#new-post

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

The topic ‘Problem with google for woocomerce’ is closed to new replies.