• Resolved wphelpdeskuk


    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.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mihai Joldis


    Hey @wphelpdeskuk

    It looks like the theme is using a function called shopfront_get_purchase_link() and they would need to update their code/theme to resolve this issue. You can see from the message that the functionality is in the theme files: /themes/shop-front/partials/download-grid.php

    Please reach out to the theme developers and provide them with this error message and they should be able to help you out here.

    Thread Starter wphelpdeskuk


    Apologies for wasting your time. I should have read more of the traceback.

    Thank you very much for your help.

    Plugin Support Mihai Joldis


    Not a problem at all. Hope they get it sorted out soon.


Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.