Title: Uncaught error in VoucherModule.php:204
Last modified: February 22, 2023

---

# Uncaught error in VoucherModule.php:204

 *  Resolved [Michael78](https://wordpress.org/support/users/michael78/)
 * (@michael78)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/uncaught-error-in-vouchermodule-php204/)
 * I’m getting a Uncaught error in my logs when the mollie plugin is enabled. The
   error was thrown when I updated a productcategory image thumb. The images gets
   processed but an error 500 is thrown. This works fine with the plugin disabled.
   Tested both php 7.4 en php 8.1 / 8.2
 *     ```wp-block-code
       2023-02-22T12:32:42+00:00 CRITICAL Uncaught Error: Array callback must have exactly two elements in [stripped-for-privacy]/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/Voucher/VoucherModule.php:204
       Stack trace:
       #0 [stripped-for-privacy]/wp-includes/class-wp-hook.php(310): Mollie\WooCommerce\Gateway\Voucher\VoucherModule->voucherTaxonomyCustomMetaSave()
       #1 [stripped-for-privacy]/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
       #2 [stripped-for-privacy]/wp-includes/plugin.php(517): WP_Hook->do_action()
       #3 [stripped-for-privacy]/public_html/wp-includes/taxonomy.php(3394): do_action()
       #4 [stripped-for-privacy]/public_html/wp-admin/edit-tags.php(183): wp_update_term()
       #5 {main}
         [stripped-for-privacy]/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/Voucher/VoucherModule.php op de lijn 204
       ```
   

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

 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/uncaught-error-in-vouchermodule-php204/#post-16495248)
 * Hi [@michael78](https://wordpress.org/support/users/michael78/)
 * There is a bug in the latest plugin version 7.3.5 that can, under certain circumstances,
   negatively impact different kinds of WooCommerce functionality, and is caused
   by the Voucher gateway module.
 * If you encounter any problems in this regard, you could work around it either
   by temporarily disabling the Voucher gateway, or alternatively downgrading to
   the [previous version 7.3.4](https://downloads.wordpress.org/plugin/mollie-payments-for-woocommerce.7.3.4.zip)
   until the next update has been released with a fix.
 * Please let us know how this works for you.
   Thanks!
 * Kind regards,
   Niklas
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/uncaught-error-in-vouchermodule-php204/#post-16536041)
 * This issue was fixed for the next update, which is expected to be released in
   the coming days.
 * In the meantime, there is a pre-release version available for testing from the
   GitHub repo: [https://github.com/mollie/WooCommerce/releases/tag/7.3.6-beta](https://github.com/mollie/WooCommerce/releases/tag/7.3.6-beta)
 * But as we have not heard back from you in a while, I’m marking this thread as
   resolved.
   If you have any further questions, please feel free to reopen this 
   topic or create a new one. Thanks!
 *  [markussss](https://wordpress.org/support/users/markussss/)
 * (@markussss)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-in-vouchermodule-php204/#post-16634278)
 * Any news about that update to 7.3.6? That error cost me probably about a month
   of desperate troubleshooting, and I never even closely got the idea that this
   could be related to Mollie
 * Our use case was a different one from the OP but in the end, we also tried to
   add/update WooCommerce categories, only that it’s done via a Connector plugin
   to JTL (ERP system)
 * Any update on 7.3.6? What about release date? Any feedback from other users about
   that particular error on 7.3.6?
 * best regards
   Markus
 *  [markussss](https://wordpress.org/support/users/markussss/)
 * (@markussss)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-in-vouchermodule-php204/#post-16636380)
 * The problem obviously is there since 7.3.5 – 24-01-2023. And now it’s April. 
   We urgently need some status about this?!
 *  [markussss](https://wordpress.org/support/users/markussss/)
 * (@markussss)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-in-vouchermodule-php204/#post-16650961)
 * For whoever sees this – it’s a bit disappointing that Mollie is not answering
   in any way about this topic (not here, not via customer support). Because of 
   this error a connector to an ERP did not work for 2 months. We had thousands 
   of entries in the table wp-terms that could only be deleted manually, this all
   goes back to Mollie
 * Today two updates were rolled out 7.3.6. and 7.3.7 – I assume this is fixed now(
   but who knows for real)
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-in-vouchermodule-php204/#post-16651494)
 * Hi [@markussss](https://wordpress.org/support/users/markussss/)
 * The problem reported by [@michael78](https://wordpress.org/support/users/michael78/)
   was resolved in [the latest update](https://wordpress.org/plugins/mollie-payments-for-woocommerce/#developers).
   
   So saving/changing categories should be working fine again.
 * > Fix – Error when creating product category
 * But we must ask you to please create a thread for yourself if you need help, 
   instead of hijacking (resolved) threads from other users. This is not appropriate
   as it will notify them when it’s not needed and the support will not monitor 
   your request.
 * You can [create a new thread](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/#new-topic-0)
   with a link to potentially related other threads. Or you can contact the [Mollie Support Team](https://www.mollie.com/contact/merchants)
   directly for more guidance.
 * Thanks for your understanding!
 * Kind regards,
   Niklas
 *  [markussss](https://wordpress.org/support/users/markussss/)
 * (@markussss)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-in-vouchermodule-php204/#post-16651621)
 * Hi [@niklasinpsyde](https://wordpress.org/support/users/niklasinpsyde/)
 * I understand of course the rules about a separate thread – but on the other hand,
   many things got solved because few people put their heads together (I had this
   many times already in the forum, and email notifications can be handled individually)
 * The Mollie Support team did not reply after I asked 2 or 3 times .. so there 
   is not much left.
 * Good that it is finally solved – it had a big impact on us but we didn’t know
   as we never even closely came up with the idea that Mollie could be the source
   of all problems in that case.
 * best regards
   Markus

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

The topic ‘Uncaught error in VoucherModule.php:204’ is closed to new replies.

 * ![](https://ps.w.org/mollie-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3090580)
 * [Mollie Payments for WooCommerce](https://wordpress.org/plugins/mollie-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mollie-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [markussss](https://wordpress.org/support/users/markussss/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-in-vouchermodule-php204/#post-16651621)
 * Status: resolved