Title: Uncaught Error: Function name must be a string
Last modified: February 10, 2023

---

# Uncaught Error: Function name must be a string

 *  Resolved [swkf](https://wordpress.org/support/users/swkf/)
 * (@swkf)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/uncaught-error-function-name-must-be-a-string/)
 * Hi,
 * I have a website that uses this plugin, but something weird happens when I update
   a product-category. 
   When I update any product-category, I get a critical error:
   CRITICAL Uncaught Error: Function name must be a string in /content/plugins/mollie-
   payments-for-woocommerce/src/Gateway/Voucher/VoucherModule.php:204
 * Plugin-version: 7.3.5
   WordPress-version: 6.1.1PHP-version: 7.4.33
 * Is there any way to fix this?

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

 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/uncaught-error-function-name-must-be-a-string/#post-16459211)
 * Hi [@swkf](https://wordpress.org/support/users/swkf/),
 * This issue could potentially occur on the latest version when using the Voucher
   gateway. You could temporarily work around this issue with the [previous version 7.3.4](https://downloads.wordpress.org/plugin/mollie-payments-for-woocommerce.7.3.4.zip)
   or by disabling the Voucher gateway.
 * The team is working to resolve this issue with the next update.
 * Kind regards,
   Niklas
 *  Thread Starter [swkf](https://wordpress.org/support/users/swkf/)
 * (@swkf)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/uncaught-error-function-name-must-be-a-string/#post-16465434)
 * Hi,
 * Thank you very much! Disabling indeed works!

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

The topic ‘Uncaught Error: Function name must be a string’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [swkf](https://wordpress.org/support/users/swkf/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/uncaught-error-function-name-must-be-a-string/#post-16465434)
 * Status: resolved