PHP Fatal error during checkout
-
Hi,
I had updated the ShopWP from version 4.1.8 to 5.0.1 and testing the functionality and error if any.
During testing when I am adding any product to cart, the cart appears and then nothing happens.( I am using built-in cart functionality for checkout functionality)
The debugging had the following fatal error
[10-Apr-2022 21:58:57 UTC] PHP Fatal error: Uncaught Error: Call to undefined function ShopWP\API\Items\str_contains() in /homepages/35/d743911288/htdocs/clickandbuilds/website/wp-content/plugins/wpshopify/classes/api/items/class-cart.php:350 Stack trace: #0 [internal function]: ShopWP\API\Items\Cart->ShopWP\API\Items\{closure}(Array) #1 /homepages/35/d743911288/htdocs/clickandbuilds/website/wp-content/plugins/wpshopify/classes/api/items/class-cart.php(339): array_map(Object(Closure), Array) #2 /homepages/35/d743911288/htdocs/clickandbuilds/website/wp-content/plugins/wpshopify/classes/api/items/class-cart.php(379): ShopWP\API\Items\Cart->sanitize_lineitems(Array) #3 /homepages/35/d743911288/htdocs/clickandbuilds/website/wp-includes/rest-api/class-wp-rest-server.php(1140): ShopWP\API\Items\Cart->handle_add_lineitems(Object(WP_REST_Request)) #4 /homepages/35/d743911288/htdocs/clickandbuilds/website/wp-includes/rest-api/class-wp-rest-server.php(987): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/shopwp/v1/cart...', in /homepages/35/d743911288/htdocs/clickandbuilds/website/wp-content/plugins/wpshopify/classes/api/items/class-cart.php on line 350
I had downgraded the ShopWP to 4.1.8 and the checkout is working smoothly, so I assume this update is causing the issue.
Suggest What would be the next step in order to debug and resolve the issue.
Thanks
DipakThe page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Fatal error during checkout’ is closed to new replies.