failed to load wp-admin/admin-ajax.php

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:

  1. the url to admin-ajax.php is correct and no issues there

  2. 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

  3. 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 :
enter image description here

1
1

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..

Leave a Comment