PHP Fatal error when saving product category

[ad_1]

Versions

PHP version: 8.1.17
WordPress version: 6.2
Theme: Storefront 4.2.0
WooCommerce version: 7.5.1
Mollie Payments for WooCommerce version: 7.3.5

Steps to reproduce

Go to the WooCommerce product categories. Add a new category (or save an existing one).

What I expect

Product category changes to be saved

What happens

Product category changes are actually saved but in this process the website encounters a fatal PHP error.

[29-Mar-2023 20:32:26 UTC] PHP Fatal error: Uncaught Error: Array callback must have exactly two elements in /Users/barry/Sites/pokemonworld/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/Voucher/VoucherModule.php:204
Stack trace:

0 /Users/barry/Sites/pokemonworld/wp-includes/class-wp-hook.php(310): Mollie\WooCommerce\Gateway\Voucher\VoucherModule->voucherTaxonomyCustomMetaSave(126)

1 /Users/barry/Sites/pokemonworld/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)

2 /Users/barry/Sites/pokemonworld/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

3 /Users/barry/Sites/pokemonworld/wp-includes/taxonomy.php(2600): do_action('create_product_…', 126, 126, Array)

4 /Users/barry/Sites/pokemonworld/wp-admin/includes/ajax-actions.php(1081): wp_insert_term('Elite Trainer B…', 'product_cat', Array)

5 /Users/barry/Sites/pokemonworld/wp-includes/class-wp-hook.php(308): wp_ajax_add_tag('')

6 /Users/barry/Sites/pokemonworld/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)

7 /Users/barry/Sites/pokemonworld/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

8 /Users/barry/Sites/pokemonworld/wp-admin/admin-ajax.php(188): do_action('wp_ajax_add-tag')

9 /Users/barry/.composer/vendor/laravel/valet/server.php(250): require('/Users/barry/Si…')

10 {main}

thrown in /Users/barry/Sites/pokemonworld/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/Voucher/VoucherModule.php on line 204

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer