While using the latest version of this plugin with the CartFlows plugin, there is an Fatal/Critical error is getting generated on the thank you page created by CartFlows.
This issue is getting initiated from the WooCommerce action woocommerce_thankyou action hook. In the callback function, there is a check to confirm that the order_key is valid or not.
Before this check, the $order_key added on line number 94 is returning blank and that what is triggering the Fatal/Critical error.
The code: $order->key_is_valid( $order_key )
File location: includes/Core/Conversion_Tracking/Conversion_Event_Providers/WooCommerce.php
Line number: 97
Steps to reproduce
Setup a new WordPress plugin
Install WooCommerce, CartFlows and Google Site Kit
Import the CSV file of sample products in WooCommerce.
Activate the CartFlows plugin and Import the ready-made funnel having landing, checkout and thank you page.
Add a product on the checkout page. Read more to setup the CartFlows.
Once the flow is setup completely then place an order from the checkout page.
After placing an order, the user will be redirected to the thank you page where a Fatal/Critical error will be logged in the debug.log file.
Go to 'CartFlows Funnels menu'
Click on 'The eye icon on the thank you page'
Scroll down the page to the end of the page, to see the error.
Thanks for raising this @sarangshahane. With other users also reporting this I'll perform some checks on this and report back to you here with any findings.
Bug Description
While using the latest version of this plugin with the CartFlows plugin, there is an Fatal/Critical error is getting generated on the thank you page created by CartFlows. This issue is getting initiated from the WooCommerce action
woocommerce_thankyou
action hook. In the callback function, there is a check to confirm that the order_key is valid or not.Before this check, the $order_key added on line number 94 is returning blank and that what is triggering the Fatal/Critical error.
The code:
$order->key_is_valid( $order_key )
File location:includes/Core/Conversion_Tracking/Conversion_Event_Providers/WooCommerce.php
Line number:97
Steps to reproduce
Screenshots
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Test Coverage
QA Brief
Changelog entry