Fatal Error when running PHP 7.4

[ad_1]

When updating to version 3, we get the following fatal error when displaying the products:

[19-Oct-2022 12:48:22 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function EDD\Gateways\PayPal\maybe_enable_buy_now_js(), 1 passed in /home/***/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in /home/***/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/buy-now.php:94
Stack trace:
#0 /home/***/wp-includes/class-wp-hook.php(307): EDD\Gateways\PayPal\maybe_enable_buy_now_js(25342)
#1 /home/***/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#2 /home/***/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#3 /home/***/wp-content/themes/shop-front/includes/edd-functions.php(499): do_action('edd_purchase_li...', 25342)
#4 /home/***/wp-content/themes/shop-front/partials/download-grid.php(46): shopfront_get_purchase_link(Array)
#5 /home/***/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/buy-now.php on line 94

Any help, including a quick bug fix, to solve this issue would be greatly appreciated.

Thanks,
Dominic

 

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