Support » Plugin: WooCommerce » GRANT ACCESS wheel spins forever

  • Resolved squilib


    Since my host provider made a mess between and, I was forced in replacing all my digital items in (fantasy name)
    This time I appended the strings to the file names.

    The site works perfectly, customers can buy and download their digital items
    when I try to GRANT ACCESS to an extra digital item in any order (just to make a gift to my customers, the item is in the database), the filename is added to the field but when I hit the button “Grant access” the wheel spins forever and the access in not granted.

    Checking the Logs in the Woocommerce Status, I see:

    CRITICAL Uncaught Error: Call to a member function get_quantity() on null in /home/customer/www/
    Stack trace:
    #0 /home/customer/www/ WC_AJAX::grant_access_to_download('')
    #1 /home/customer/www/ WP_Hook->apply_filters('', Array)
    #2 /home/customer/www/ WP_Hook->do_action(Array)
    #3 /home/customer/www/ do_action('wp_ajax_woocomm...')

    #4 {main}
    thrown in /home/customer/www/ on line 808

    Can you HELP?

    • This topic was modified 1 year, 4 months ago by squilib.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Gabriel F. a11n


    Hi there đź‘‹

    This kind of problem is usually caused by a conflict with your theme or with another plugin.
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Before you start

    1. First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    2. Second, I would suggest installing a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without affecting your current site visitors.

    I hope that helps 🙂

    Thread Starter squilib


    I did all steps in a staging copy (without caching and with caching):

    I temporarily switched to Twenty Twenty-one.
    The “Grant access” wheel continues spinning.

    I deactivated all plugins
    The “Grant access” wheel continues spinning.

    I deactivated and reactivated Woocommerce
    The “Grant access” wheel continues spinning.

    I deactivated the strings appended to file names.
    I created a new digital item without appended string.
    I tried to add the new item to an order but
    The “Grant access” wheel continues spinning.

    The names of the products are always added to the field,
    but the wheel spins forever and the access is not granted.

    I still have the same CRITICAL error.
    Please HELP.

    Plugin Support Gabriel F. a11n


    That’s strange! Let’s check if there is an error on the WooCommerce Logs. So please, provide us the following:

    • System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
    • Error log: share a copy of the fatal error log found under WooCommerce > System Status > Logs (if available)

    Thank you!

    Thread Starter squilib


    With the new release of WooCommerce version 5.2.2. the issue has been fixed.

    Please NOTE: I reported another BUG that is still UNRESOLVED:

    Thank you

    Plugin Support Gabriel F. a11n


    Glad to know that the update has fixed it 🙂

    Great! If you have any further questions, you can start a new thread.


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘GRANT ACCESS wheel spins forever’ is closed to new replies.