PHP Fatal error when proceeding from checkout to payment gateway
-
Hi,
I installed gtm4wp to my WooCommerce site and after that there has been occasional PHP Fatal errors when proceeding from the checkout page to the payment gateway. It seems like the error occurs only when the enhanced ecommerce is activated. After I installed the gtm4wp the problem started and when I disabled ehanced ecommerce the problem stopped. After enabling the ehanced ecommerce again after few days the problem started again. I’ve tried to reproduce the error tens of times but I’ve succeeded only few times and couldn’t find any clues.
I’ve set up the gtm4wp for both Universal Analytics and Google Analytics 4 with the help of your tutorial and the data is transferring correctly to both of them.
The error is thrown from the payment plugin:
[08-Jul-2021 14:54:58 UTC] PHP Fatal error: Uncaught Error: Call to a member function getUrl() on null in /home/602437.cloudwaysapps.com/eaczbwffkj/public_html/wp-content/plugins/op-payment-service-for-woocommerce/src/View/CheckoutForm.php:12
Stack trace:
#0 /home/602437.cloudwaysapps.com/eaczbwffkj/public_html/wp-content/plugins/op-payment-service-for-woocommerce/src/View.php(43): require()
#1 /home/602437.cloudwaysapps.com/eaczbwffkj/public_html/wp-content/plugins/op-payment-service-for-woocommerce/src/Gateway.php(328): OpMerchantServices\WooCommercePaymentGateway\View->render()
#2 /home/602437.cloudwaysapps.com/eaczbwffkj/public_html/wp-includes/class-wp-hook.php(292): OpMerchantServices\WooCommercePaymentGateway\Gateway->receipt_page()
#3 /home/602437.cloudwaysapps.com/eaczbwffkj/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#4 /home/602437.cloudwaysapps.com/eaczbwffkj/public_html/wp-includes/plugin.php(484): WP_Hook->do_action()
#5 /home/602437.cloudwaysapps.com/eaczbwffkj/public_html/wp-content/plugins/woocommerce/templ in /home/602437.cloudwaysapps.com/eaczbwffkj/public_html/wp-content/plugins/op-payment-service-for-woocommerce/src/View/CheckoutForm.php on line 12I’ve contacted their support but after two weeks I’m still waiting contact from their technical team. So I decided to ask if you would have any idea what this could be?
The page I need help with: [log in to see the link]
- The topic ‘PHP Fatal error when proceeding from checkout to payment gateway’ is closed to new replies.