Title: Error when creating invoice
Last modified: May 5, 2021

---

# Error when creating invoice

 *  [tomdemeyer](https://wordpress.org/support/users/tomdemeyer/)
 * (@tomdemeyer)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-when-creating-invoice-2/)
 * Hello!
 * Since the last update, I get this error on the invoice when I create one:
 * `Fatal error: Uncaught ArgumentCountError: Too few arguments to function Mollie_WC_Helper_GatewaySurchargeHandler::
   setHiddenOrderId(), 3 passed in /customers/3/4/4/juwelou.be/httpd.www/wp-includes/
   class-wp-hook.php on line 292 and exactly 4 expected in /customers/3/4/4/juwelou.
   be/httpd.www/wp-content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/
   Helper/GatewaySurchargeHandler.php:28 Stack trace: #0 /customers/3/4/4/juwelou.
   be/httpd.www/wp-includes/class-wp-hook.php(292): Mollie_WC_Helper_GatewaySurchargeHandler-
   >setHiddenOrderId(209, Object(WC_Order_Item_Product), Object(Automattic\WooCommerce\
   Admin\Overrides\Order)) #1 /customers/3/4/4/juwelou.be/httpd.www/wp-includes/
   class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #2 /customers/3/4/4/
   juwelou.be/httpd.www/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #
   3 /customers/3/4/4/juwelou.be/httpd.www/wp-content/plugins/woocommerce-pdf-invoices/
   includes/abstracts/abstract-invoice.php(445): do_action('woocommerce_ord...',
   209, Object(WC_Order_Item_Product), in /customers/3/4/4/juwelou.be/httpd.www/
   wp-content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Helper/GatewaySurchargeHandler.
   php on line 28`
 * What is wrong?
 * Thank you!

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

 *  [cengelberts](https://wordpress.org/support/users/cengelberts/)
 * (@cengelberts)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-when-creating-invoice-2/#post-14410400)
 * Hi Tom,
 * Since the new update of Mollie to 6.3.0 all our customers using Mollie have been
   getting errors. We have already been in contact with Mollie about this, and we
   are now working together too fix these errors as soon as possible.
    In the meantime
   you can download Mollie version 6.2.2 that I will link below. This version still
   works with our plugin.
 * Let me know if this works for you or if you encounter any problems.
 * [https://wordpress.org/plugins/mollie-payments-for-woocommerce/advanced/](https://wordpress.org/plugins/mollie-payments-for-woocommerce/advanced/)
   
   To download Mollie 6.2.2 go to the link above and scroll all the way down, there
   you will find a dropdown menu to select Mollie version 6.2.2`
 *  [discfactor](https://wordpress.org/support/users/discfactor/)
 * (@discfactor)
 * [5 years ago](https://wordpress.org/support/topic/error-when-creating-invoice-2/#post-14457575)
 * Hi, same issue here.. Hope this will be fixed asap.

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

The topic ‘Error when creating invoice’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices/assets/icon-128x128.png?rev=1128583)
 * [Invoices for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [discfactor](https://wordpress.org/support/users/discfactor/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/error-when-creating-invoice-2/#post-14457575)