• Resolved juanjo85

    (@juanjo85)


    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=yDVllJTwlPXT

    I have validated the webhooks, it’s not in test mode and permalinks are set to post name.

    Please help! Thanks!

    • This topic was modified 2 years, 7 months ago by juanjo85.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter juanjo85

    (@juanjo85)

    UPDATE: downgrading PHP version from 8.0 to 7.4 solved the issue.

    Plugin Support Erica

    (@eeide)

    Hi @juanjo85,

    Thanks for following up, and I’m glad to hear your issue is resolved!

    As you found, PHP 8.x is not yet fully supported by WordPress or our plugins, but we’re working toward this.

    Have a great rest of your day!

    Thank you,
    Erica

    I am experiancing the same issue and found the same resolution to work. I am concerned that PHP 7.4 is only supported for the next two months, not to mention the performance enhancements we are loosing by not running a newer version of PHP. I would appreciate receiving an update on the status of this bug. Thanks so much!!

    +1
    Hoping for an update soon.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when purchasing tickets’ is closed to new replies.