• Hello,

    On the WooCommerce payment page, clicking the “Place Order” button is resulting in the following error:

    There was an error processing your order. Please check for any charges in your payment method and review your order history before placing the order again.

    The SMTP configuration appears to be correct as test emails are being sent successfully.

    Could you please investigate this issue on priority and let me know what additional information you may need from my side?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi @abdulmateen007,

    I’d be happy to help you troubleshoot this payment processing error. 

    That error is WooCommerce’s generic catch-all message, which means the actual cause could be coming from several different places. To narrow it down we’ll need a bit more information:

    1. Which payment gateway are you using? (e.g. Stripe, PayPal, WooPayments, bank transfer, etc.). The error often originates at the gateway level so this is the most important starting point.
    2. Go to WooCommerce → Status → Logs and look for any entries timestamped around the time the error occurred. There will usually be a more specific error message there that points to the exact cause. Please share anything relevant here.
    3. Open DevTools (F12), go to the Console tab, attempt to place the order, and share any red error messages you see. This can reveal if the issue is happening client-side before the request even reaches the server.
    4. Go to WooCommerce → Status → Get system report, copy it, paste it at pastebin.com, and share the link here. This will show us your plugin versions, active gateway, and any environment issues.

    Also worth noting, the SMTP configuration wouldn’t affect order processing, so we can set that aside. The logs and gateway details will tell us the most.

    Looking forward to your response!

    Thread Starter abdulmateen007

    (@abdulmateen007)


    Hello @frankremmy
    Thanks for your prompt response. Here are the answers of your questions:

    1) We are using different payment method and the error is occurring for each payment.
    2) Below are the error under WooCommerce → Status → Logs

    2026-06-03T20:13:04+00:00 Error Failed to get payment providers: Argument 1 passed to Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders::enhance_order_map() must be of the type array, string given, called in /home/customer/www/erospharmacy.com/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php on line 1003
    3) In the console, we are getting the following error:

    jquery.min.js?ver=3.7.1:2
    POST https://erospharmacy.com/?wc-ajax=checkout 500 (Internal Server Error)
    send @ jquery.min.js?ver=3.7.1:2
    ajax @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery-migrate.min.js?ver=3.4.1:2
    e. @ jquery-migrate.min.js?ver=3.4.1:2
    submit @ checkout.min.js?ver=10.7.0:1
    dispatch @ jquery.min.js?ver=3.7.1:2
    v.handle @ jquery.min.js?ver=3.7.1:2

    4) I have pasted the status report here: https://pastebin.com/BFk0GVFt

    Thanks again for your help. I look forward for your valuable feedback.

    Thanks.

    Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi @abdulmateen007,

    Thanks for sharing all of that. The system report and logs make the cause very clear. There are two things that need to be fixed, and both are urgent.

    1. Your server is running PHP 7.4.33, which reached end of life in November 2022. WooCommerce 10.7.0 requires a minimum of PHP 8.0. The error in your logs Argument 1 passed to enhance_order_map() must be of the type array, string given — is a direct PHP 7.4 type compatibility failure causing the checkout AJAX request to return a 500 error. Please contact your hosting provider and ask them to upgrade PHP to 8.1 or 8.2 as soon as possible. This alone should resolve the checkout error.
    2. Your system report shows your WordPress address is set to https://erospharmacy.com but your Site address is set to http://erospharmacy.com (without HTTPS). This mismatch can cause checkout AJAX requests to fail. Go to Settings → General and make sure both the WordPress Address and Site Address are set to https://.

    A couple of other things to tidy up after:

    • Update WooCommerce to the latest version (10.8.1) once PHP is upgraded.
    • Disable WP Debug Mode on your production site. Go to wp-config.php and set WP_DEBUG to false.

    Start with the PHP upgrade, that’s the fix. Let us know how it goes!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.