Error when purchasing tickets
-
Hello,
I have setup Tickets Commerce with Stripe and when trying to make a purchase I keep getting this error in the console:
{ "code": "rest_no_route", "message": "No route was found matching the URL and request method.", "data": { "status": 404 } }And this error in the log:
PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /nas/content/live/heriprod/wp-content/plugins/event-tickets/src/Tickets/Commerce/Gateways/Stripe/Payment_Intent_Handler.php:243\nStack trace:\n#0 /nas/content/live/heriprod/wp-content/plugins/event-tickets/src/Tickets/Commerce/Gateways/Stripe/Payment_Intent_Handler.php(243): implode(Array, ' ,')\n#1 /nas/content/live/heriprod/wp-content/plugins/event-tickets/src/Tickets/Commerce/Gateways/Stripe/Payment_Intent_Handler.php(115): TEC\\Tickets\\Commerce\\Gateways\\Stripe\\Payment_Intent_Handler->get_updated_metadata(Object(WP_Post), Array)\n#2 /nas/content/live/heriprod/wp-content/plugins/event-tickets/src/Tickets/Commerce/Gateways/Stripe/REST/Order_Endpoint.php(121): TEC\\Tickets\\Commerce\\Gateways\\Stripe\\Payment_Intent_Handler->update_payment_intent(Array, Object(WP_Post))\n#3 /nas/content/live/heriprod/wp-includes/rest-api/class-wp-rest-server.php(1143): TEC\\Tickets\\Commerce\\Gateways\\Stripe\\REST\\Order_Endpoint->handle_create_order(Object(WP_REST_Request))\n#4 /nas/content/live/heriprod/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/tribe/tickets/...', Array, NULL)\n#5 /nas/content/live/heriprod/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch(Object(WP_REST_Request))\n#6 /nas/content/live/heriprod/wp-includes/rest-api.php(394): WP_REST_Server->serve_request('/tribe/tickets/...')\n#7 /nas/content/live/heriprod/wp-includes/class-wp-hook.php(307): rest_api_loaded(Object(WP))\n#8 /nas/content/live/heriprod/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)\n#9 /nas/content/live/heriprod/wp-includes/plugin.php(524): WP_Hook->do_action(Array)\n#10 /nas/content/live/heriprod/wp-includes/class-wp.php(398): do_action_ref_array('parse_request', Array)\n#11 /nas/content/live/heriprod/wp-includes/class-wp.php(770): WP->parse_request('')\n#12 /nas/content/live/heriprod/wp-includes/functions.php(1330): WP->main('')\n#13 /nas/content/live/heriprod/wp-blog-header.php(16): wp()\n#14 /nas/content/live/heriprod/index.php(17): require('/nas/content/li...')\n#15 {main}\n thrown in /nas/content/live/heriprod/wp-content/plugins/event-tickets/src/Tickets/Commerce/Gateways/Stripe/Payment_Intent_Handler.php on line 243, referer: https://heriprod.wpengine.com/tickets-checkout/?tec-tc-cookie=yDVllJTwlPXTI have validated the webhooks, it’s not in test mode and permalinks are set to post name.
Please help! Thanks!
The topic ‘Error when purchasing tickets’ is closed to new replies.