Admin-ajax.php issue
-
Hello, I am having an issue with the plugin and admin-ajax.php
My site uses admin-ajax for loading ajax loaders or showing more products on pages etc.
When I for instance press the “more products button”, where products load over admin-ajax, nothing happens. The loader keeps loading infinitely.
Then I checked the browser console, and I saw admin-ajax.php is returning 401.When I clear the plugin cache, everything starts working again, but after some hours, admin-ajax again is 401, and consequently, all loaders that rely on it don’t work, keep loading forever as I mentioned.
I’ve already whitelisted the path on the plugin settings, and it didn’t work.
Then, I made a last check, deactivating the plugin, and finally, I could see it was a plugin issue, as the error disappears completely, and things load properly when admin-ajax is called.Why is that so?
I love the plugin, I don’t want to stop using it.
What I also don’t understand is why when I clear plugin cache, admin-ajax works properly, and shortly after (some hours), it starts again returning 401 on the browser console.Note: This issue never happens on the backend, when I am logged in as admin.
How can I solve it?
Thank you!
- The topic ‘Admin-ajax.php issue’ is closed to new replies.