If you are getting the message “ERROR: Failed to load ajax request” on your affiliate dashboard, or it is constantly loading, it is likely something is stopping your ajax requests from working.
To fix this, please try these solutions:
- First, simply try reloading the page – it may be that you cancelled the page loading before it finished.
- Please ensure you are using the latest versions of Coupon Affiliates, WooCommerce, and WordPress core.
- Clear your website cache and try again.
- Check if you have any website “speed” or “optimisation” plugins enabled. If you do, try temporarily disabling it and clearing your cache, then give it another try.
- If any of your performance plugin or hosting settings has an option called “load JavaScript deferred” (or any that sound similar). If so, turn this off, clear your website cache, and give it another try. Alternatively, if available, you could simply disable the optimisation features on just the “affiliate dashboard” page. (If this fixes it, please contact us and we’ll look into implementing a fix to better support your optimisation plugin.)
- On a staging site, try temporarily disabling all other plugins on your website except Coupon Affiliates and WooCommerce. Then see if this resolves the issue. If so, it is likely a conflict with another plugin. Try re-enabling other plugins one-by-one and find out which one is causing the issue.
- If you are using an old version of PHP, try updating this to a newer version (8+).
- If you have not already, try enabling “High-performance order storage” on your website. This will improve performance of the affiliate dashboard, and your WooCommerce site in general.
If the above solutions don’t work you can do one of the following:
- Go to “Plugin Settings > Debug” then disable the option: Enable “Ajax Loading” on Affiliate Dashboard – This however may make it take a long time to load the dashboard page, depending on your hosting, for coupons with lots of orders.
- Contact us and we’ll help you fix it.