[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 94Any help, including a quick bug fix, to solve this issue would be greatly appreciated.
Thanks,
Dominic
