I’m getting this strange issue. Everything was working fine last day. Now suddenly none of my ajax requests work. The problem is (i found that in firebug console):
failed to load resource : ……/wp-admin/admin-ajax.php
So somehow the request to the admin-ajax.php
file isn’t successful. I have cross checked these things:
-
the url to
admin-ajax.php
is correct and no issues there -
its not just ‘my own scripts’ which doesn’t work, i’ve buddypress installed and all ajax requests from buddypress also give the same error
-
i directly typed in the url of
admin-ajax.php
into browser and instead of getting 0 (the expected output), google chrome says ‘no data received’.
Is it some configuration on server end?? If yes then what do i say to the hosting support guys?
BTW, if it matters, the site is hosted on wpengine..
Any help is really appreciated
UPDATE :
the browser dev tools screenshot :
Yes finally the problem was that the hosting provider had blocked the admin-ajax.php file saying that this file was receiving too many request, and requests to this file bypasses cache , hence it was causing problems on server 🙂
So now i’ll have to ‘convince’ them to turn it back on.
Thank you all for helping..