• Resolved altairpolar

    (@altairpolar)


    2024-09-03T02:07:29+00:00 Critical Uncaught TypeError: hash_equals(): Argument #2 ($user_string) must be of type string, null given in /var/web/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php:1585  
    Additional context
    {
    "error": {
    "type": 1,
    "file": "/var/web/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php",
    "line": 1585
    },
    "backtrace": [
    "",
    "#0 /var/web/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(1585): hash_equals(Object(SensitiveParameterValue), Object(SensitiveParameterValue))",
    "#1 /var/web/site/public_html/wp-content/plugins/google-site-kit/includes/Core/Conversion_Tracking/Conversion_Event_Providers/WooCommerce.php(97): WC_Order->key_is_valid(NULL)",
    "#2 /var/web/site/public_html/wp-includes/class-wp-hook.php(324): Google\Site_Kit\Core\Conversion_Tracking\Conversion_Event_Providers\WooCommerce->Google\Site_Kit\Core\Conversion_Tracking\Conversion_Event_Providers\{closure}(89681)",
    "#3 /var/web/site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)",
    "#4 /var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)",
    "#5 /var/web/site/public_html/wp-content/plugins/cartflows/woocommerce/template/checkout/thankyou.php(82): do_action('woocommerce_tha...', 89681)",
    "#6 /var/web/site/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/var/web/site/p...')",
    "#7 /var/web/site/public_html/wp-content/plugins/cartflows/modules/thankyou/classes/class-cartflows-thankyou-markup.php(212): wc_get_template('checkout/thanky...', Array)",
    "#8 /var/web/site/public_html/wp-includes/shortcodes.php(434): Cartflows_Thankyou_Markup->cartflows_order_details_shortcode_markup(Array, '', 'cartflows_order...')",
    "#9 [internal function]: do_shortcode_tag(Array)",
    "#10 xxxxxxxxxxxxx,
    .....
    content/plugins/cartflows/modules/flow/templates/template-canvas.php(44): the_content()",
    "#21 /var/web/site/public_html/wp-includes/template-loader.php(106): include('/var/web/site/p...')",
    "#22 /var/web/site/public_html/wp-blog-header.php(19): require_once('/var/web/site/p...')",
    "#23 /var/web/site/public_html/index.php(17): require('/var/web/site/p...')",
    "#24 {main}",
    "thrown"
    ]
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @altairpolar. Hopefully with some further checks we can determine the source of this and ensure all works as expected. In order to do so, please share the following:

    1. Your Site Health information. You can use this form to share privately if preferred.??
    2. On the front end of your site, does this stop any WooCommerce or Site Kit functionality, or are you encountering any errors? If so, please share details.
    3. If you disable Enhanced Conversion Tracking from within Site Kit, does the same occur?

    I noticed also you’re using CartFlow, with other users reporting issues specifically on the “Thank you page” after checkout. It’s possible you may be impacted by a multi plugin conflict. Depending on the checks I perform with the information you provide above, we may ask you go through an example WooCommerce order checkout with CartFlow temporarily deactivated, or when using the Health Check & Troubleshooting plugin.

    Let me know if you have any questions with the above.

    Thread Starter altairpolar

    (@altairpolar)

    Thanks for your quick response.

    – I’ve sent the form with the Site Health info.

    – There are conversions not registered in Google Ads. I’m suspecting this issue could be the root cause.

    – Currently don’t use Google Ads setup through Site Kit. Instead, using PixelManager. 

    in the meantime I received the following info from the Cartflows team:

    ….

    Hello Altair,

    Greetings for the day!

    Our devs have checked the issue and confirmed that the issue is coming from the Google Site Kit plugin. In this plugin, there is a WooCommerce action hook used which is woocommerce_thankyou. And on that action hook they have written a code to check the order_key is valid or not. 

    So, when the thank you page is opened the order key is getting blank, and that is why it is creating an issue. 

    To help fix this, Our devs have submitted a code modification to the plugin author which you can take a look at it here: https://github.com/google/site-kit-wp/issues/9276

    So, it is now on the plugin developer to check this fix and add it in the next release of the plugin update.

    I hope this helps you.

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for the update. I spoke with the team on this yesterday and we’ll be pushing a fix out for this soon. Appreciate the GitHub issue and details. I’ll keep this support topic open so I can update you when a fix is out.

    Plugin Support James Osborne

    (@jamesosborne)

    Just to let you know that we plan on an update to the next version of Site Kit, due next week, which will include a fix for this. You’ll find out more on the related GitHub issue, while we’ll also let you know when this is out. Thank you.

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for your patience on this. Site Kit 1.139.0 is now available which includes a fix for this issue. Please update to this latest version and let us know if you encounter any further issues. I’ll keep this support topic open while you confirm that you are able to proceed. Let me know if you have any questions on this.

    Plugin Support James Osborne

    (@jamesosborne)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.