Title: Error during payment
Last modified: March 11, 2024

---

# Error during payment

 *  Resolved [magdizajn78](https://wordpress.org/support/users/magdizajn78/)
 * (@magdizajn78)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/error-during-payment-3/)
 * Hi,
 * We get “error processing payment, please try again” since the last update.
 * I went through on the troubleshooting steps (all plugins switched out, changed
   the theme), but it doesn’t turn out what is causing the issue.
 * In the error log I see the following as a critical error, but not sure what does
   this mean: **2024-03-11T00:03:20+00:00** **Kritikus** Uncaught TypeError: count():
   Argument #1 ($value) must be of type Countable|array, null given in /var/www/
   eftparterapia/data/www/eft-terapeutak.hu/wp-includes/class-wp-hook.php:294
 * We faced the issue first, when we used a coupon which should give a 100% discount
   on a specific product, but I tested without coupon and the error remains.
 * Here is the system status:
 * [https://www.dropbox.com/scl/fi/ungkd0a7axl7dgbh6bngw/SystemStatusReport_eft-terapeutak.hu_2024-03-11T09-31-26.txt?rlkey=zud9tqe7oymvbpktyh8kwdj59&dl=0](https://www.dropbox.com/scl/fi/ungkd0a7axl7dgbh6bngw/SystemStatusReport_eft-terapeutak.hu_2024-03-11T09-31-26.txt?rlkey=zud9tqe7oymvbpktyh8kwdj59&dl=0)
 * The fatal error log:
 * [https://www.dropbox.com/scl/fi/nxth1v41hd0gim7riio5m/fatal-errors-2024-03-11.log?rlkey=62ezs1ih00li2uqwb2q093rrk&dl=0](https://www.dropbox.com/scl/fi/nxth1v41hd0gim7riio5m/fatal-errors-2024-03-11.log?rlkey=62ezs1ih00li2uqwb2q093rrk&dl=0)
 * Thanks for your help in advance!
 * Magdi
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-during-payment-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [magdizajn78](https://wordpress.org/support/users/magdizajn78/)
 * (@magdizajn78)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/error-during-payment-3/#post-17490021)
 * FYI – there is an issue with the hosting too, not sure if the problems are related…
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/error-during-payment-3/#post-17492433)
 * Hi [@magdizajn78](https://wordpress.org/support/users/magdizajn78/),
 * Thanks for sharing details explanation and additional information.
 * The logs you’ve shared indicate a TypeError being thrown within your WordPress
   installation related to the `count()` function. This error is usually caused 
   when the `count()` function is used on a variable or value that isn’t countable,
   such as null or boolean values.
 * It’s unusual for such errors to originate from core files, as these are thoroughly
   tested. This suggests that the issue might be caused by a theme or plugin on 
   your site that’s hooked into WordPress’s action and filter system.
 * Although you’ve already tried disabling all plugins and changing the theme, the
   issue persists. This might mean that the issue is deeper, perhaps in the core
   files of your WordPress installation or the database.
 * Additionally, it’s hard to say if it’s related to your hosting without more information.
   However, increase the PHP Post Max Size from 8 MB to 2 GB and the PHP Time Limit
   from 30 to 1200. Also, disable all the plugins related to checkout, like Checkout
   Field Editor for WooCommerce.
 * Furthermore, do you use block or shortcode on your checkout page? Does this error
   happen with default payment methods such as direct bank transfer? Have you reached
   out to the payment gateway plugin developer? It might also be a good idea to 
   contact your hosting provider to see if there are any server-related issues.
 * At the same time, consider reinstalling WordPress (Dashboard > Updates) to ensure
   all core files are up-to-date and correct.
 * Let us know how that goes. Looking forward to helping you.
 *  Thread Starter [magdizajn78](https://wordpress.org/support/users/magdizajn78/)
 * (@magdizajn78)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/error-during-payment-3/#post-17498653)
 * Hi,
 * Finally.. 😀 I found out that a PRO plugin caused the issue, which was related
   to shipping and the licence was not renewed. I did the testing with a virtual
   product, so didn’t understand why all chekcput related plugins – what I saw that
   are impacted in case of a virtual product not causing the issue, so I went through
   on ALL woo related products one by one.
 * On the hosting side there were other problems too, those I don’t think were related
   to this issue (database change to a newer version).
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/error-during-payment-3/#post-17499165)
 * Hi [@magdizajn78](https://wordpress.org/support/users/magdizajn78/),
 * I’m glad you were able to find a solution to your inquiry here and thanks for
   sharing it with the community too! 🙂
 * Should you have further inquiries, kindly [create a new topic here](https://wordpress.org/support/plugin/woocommerce/#new-topic-0).
 * Thanks!

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

The topic ‘Error during payment’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [payment issue](https://wordpress.org/support/topic-tag/payment-issue/)

 * 4 replies
 * 2 participants
 * Last reply from: [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/error-during-payment-3/#post-17499165)
 * Status: resolved