Question

Can't solve a 503 Admin.ajax GET error with my Wordpress Website.

Having issues with a form submission that uses Ajax and can’t figure out what it is, I keep getting a 503 error (https://imgur.com/a/24kJx). I’ve been told from the plugin developer it’s a host issue but my log files are clean and using gravity forms with ajax works just fine.

Wondering if anyone can help me make sense of the error and the code that’s flagging the error (or at least I think it’s the right code). The plugin is from iHomefinder (Optima Express) so I have a hard time believing it’s an issue with them as they have thousands of people most likely with it installed and Im sure they would be aware of it.


(function(){
	var a=function(){
		var c=jQuery("#ihf-main-container #ihf-main-container");
		c.each(function(){
			var e=jQuery(this);
			var d=e.children();
			d.insertBefore(e);e.remove()})};
	var b=function(){
		jQuery("[data-ihf-remote-submit=true]:not([data-ihf-remote-submit-bound])").each(function(){
			var c=jQuery(this);
			c.attr("data-ihf-remote-submit-bound",true);
			var d=c.find("form").addBack("form");
			d.on("submit",function(g){
				g.preventDefault();
				var e=jQuery(this);
				var i=e.find("button[type=submit]");
				i.attr("disabled",true);
				var f=e.attr("action");
				var j=e.attr("method");
				var h=e.serializeArray();
				jQuery.ajax({
					url:f,type:j,data:h,success:function(k){
						c.replaceWith(k);a()
					},
					error:function(){
						c.replaceWith("Error 988a")
					}
				})
			})
		})
	};
				b();jQuery(document).on("ready",function(){b()})})();

From my understanding this error has to do with to many requests being sent to Admin-ajax.php. Im using serverpilot for this and checked the nginx, apache, and php error logs and they were empty.

other things I’ve tried include the following:

  • Changing themes (no change)
  • disabling all plugins with the exception of Optima Express (no change)
  • Rebooted my server (no change)
  • Rebooted PHP (no change)
  • Increased memory limit (no change)
  • Installed the heartbeat plugin (no change)

I have the site on Cloudflare as well but have enabled development mode and cleared the cache with no notable change.

Hoping some fresh eyes can give me some ideas on what else I can try.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi,

I have the same error and I can’t figure it out whats wrong. The plugin is working in any other Wordpress site but not in this server, even not working in a new fresh installation with a random theme and no plugins.

Take a look at the plugin running: http://mercedescanoapp.com/grafica-conconcreto/ And here is where the issue is: http://www2.conconcreto.com/test/?page_id=8

In this same server are running so many sites and there is any error with admin-ajax.php on those sites.

Thanks for your help!

Figured it out,

This was an issue with some Page Rules and Cloudflare. In the past I’ve setup rules to protect the Wordpress admin but this specific plugin was being blocked by Cloudflare.