Support

Home Forums Event Espresso Premium admin-ajax.php 404 and messages to refresh page during checkout

admin-ajax.php 404 and messages to refresh page during checkout

Posted: August 23, 2016 at 3:05 pm


keynoteevents

August 23, 2016 at 3:05 pm

I’m running WordPress 4.6, EE 4.9.8.p with barcode scanner (1.0.9.p), promotion (1.0.8.p), stripe gateway (1.0.14.p) and ticketing (1.0.4.p).

We’re getting lots of errors where the users are told: This registration step could not be completed. Please refresh the page and try again.

This happens after they select their tickets, put in their name and email and then click Proceed to Payment Options. Sometimes it’ll also appear after they’ve submitted their payment via Stripe and then the users ends up submitting payment twice thinking the first time didn’t go through.

I’ve sourced the help forums but can’t seem to get this figured out. I’ve set the max_input_vars to 5000 and memory_limit to 256M. I’ve tried with and without other plugins running.

I have iThemes Security running and it’s showing a large number of 404 errors coming from /wp-admin/admin-ajax.php and the referrer is our checkout page http://www.savoursuperior.com/registration-checkout/ and the Host is my server IP address.

My error_log file isn’t showing anything and turning on wp_debug also shows nothing. I’m at a loss as to what else to try so I can resolve these issues finally.


Josh

  • Support Staff

August 23, 2016 at 3:40 pm

Can you check your iThemes Security settings and make sure it’s not set to block logged out users from admin-ajax.php?


keynoteevents

August 24, 2016 at 6:21 am

The problem occurs with or without iThemes Security activated.

Where exactly is that setting in iThemes? I don’t recall seeing it anywhere. I’m using their free version, not the Pro version.


Josh

  • Support Staff

August 24, 2016 at 7:34 am

There used to be (and still may be) a setting to hide the wp-admin. There’s also a setting that makes the admin unavailable for specific periods of time. In either case, if the wp-admin folder gets restricted by a security plugin or by the result of an edit to an .htaccess file (which security plugins will do) then you’ll see the admin-ajax.php 404 error.

You can troubleshoot this further if you can FTP into the site and check the .htaccess file in the root directory and see if theres an .htaccess file in the wp-admin directory.

Generally there should be some code in the root .htaccess file that works with the WordPress permalinks settings, but there may be some code in there or in a /wp-admin/.htaccess filethat’s designed to block access to wp-admin/admin-ajax.php.


keynoteevents

August 24, 2016 at 10:18 am

This is what’s in my root folder’s .htaccess file. There is no .htaccess file in the wp-admin directory.

# BEGIN rlrssslReallySimpleSSL rsssl_version[2.3.12]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
# END rlrssslReallySimpleSSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

I’ve tried disabling ReallySimpleSSL, I’ve tried with disabling iThemes, running the site with JUST the event esspresso plugins running and no other plugins.

8/10 times that you try to register for an event, you get the error message asking you to refresh the page. The odd time it works without any issues.


Josh

  • Support Staff

August 24, 2016 at 10:26 am

Are you logged into the site when it works without any issues?


keynoteevents

August 24, 2016 at 10:52 am

No, when I’m testing I’m usually logged into the system. It happens both when I’m logged in and when I’m logged out. None of the people purchasing tickets would ever be logged in. Some are able to purchase no problem but most of them get the error about refreshing the page.


Josh

  • Support Staff

August 24, 2016 at 11:05 am

You might check with your host to see if they can investigate why wp-admin/admin-ajax.php is 404’ing. Maybe they have some rate limiting set up.


keynoteevents

August 24, 2016 at 12:30 pm

If I try to view http://www.savoursuperior.com/wp-admin/admin-ajax.php, the page loads up, showing a 0. I refreshed the page about 150 times and only once did it do a 404 error.


keynoteevents

August 24, 2016 at 12:32 pm

If I try to view http://www.savoursuperior.com/wp-admin/admin-ajax.php, the page loads up, showing a 0. I refreshed the page about 150 times and only once did it do a 404 error.

I’m seeing no errors in mod_security coming from the site. My hosting is with LiquidWeb. Admins say they’re not seeing anything in the server logs that would cause the issue. I have other WordPress sites running on this server and none of them are having issues with admin-ajax.php. This is the only site running Event Espresso though.


Josh

  • Support Staff

August 24, 2016 at 1:54 pm

If everything was working correctly, should it have 404’d even that one time?

The support post ‘admin-ajax.php 404 and messages to refresh page during checkout’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso