Support Forum

Access denied – ajax nonce check failed

BL Bluedrake42
Bluedrake42
Member

Access denied – ajax nonce check failed

Do you need to log in? (Log in)

Randomly started getting this error whenever trying to do anything with the forums. Can’t seem to edit or create any forums, or make any changes. It just kicks me out to the home page every time I try to do anything.

12 Answers

New Answer

BL Bluedrake42
Bluedrake42
Member

Its it just possible to purchase an install? We’re having so many issues with this installation of Simple:Press, it seems like one break after another. I’d very much like someone to reinstall it properly, and ensure all the SP components are working, than to just keep tinkering with bugs like this one at a time.

YS Yellow Swordfish
Yellow Swordfish
Member

Before going down that route – which we could do but most probably is not necessary.

This is not a bug. It’s just a pain and a nuisance. It is WordPress being, well… WordPress. If you leave your WP  administration on any page or panel that is filled by Ajax calls too long,  and then come back to use it without refreshing the whole page, then you will get some sort of nonce or permission error. Imagine the nonce is a security key – after a while it runs out and is no longer valid. It happens to us all.

After such ,a pause what you need to do is to reload the whole page – that is use the WordPress Admin menu over on the left to reload whatever you are using. This will be the case for most SP Admin panels bit also other plugins where similar constructs are used – like tabbed forms for example.

BL Bluedrake42
Bluedrake42
Member

Well keep it in mind, because a full reinstall might fix some of the other issues we’ve been having (still can’t send private messages properly, and tagging doesn’t seem to work correctly either)

So I don’t understand, is there a quick fix for this then? How do you pause? Not sure if I comprehend.

MP Mr Papa
Mr Papa
Member

you would have to ask wp… the nonces are theirs and they have a limited life (few hours)…

not sure I understand the pause question… what do you want to pause?

Andy was saying that if you have been sitting on a page for a long time (overnight or while you ate dinner), the wp nonce may have expired hence the message…  if you are saying you just get it between two subsequent page loads or actions, then something odd would be happening…

do you have any custom login plugins or actions?  do you run any kind of security plugin? what about mod_security on your server?  any caching?

how long has the forum been going?  a full reinstall would of course wipe any existing data…

BL Bluedrake42
Bluedrake42
Member

Yeah I’ve been getting it every time for two entire days now.

“After such ,a pause what you need to do is to reload the whole page”

Maybe I misunderstood, I saw that and thought maybe pause meant something.

However yeah, its not one or two page loads. Its happening to every single admin we have, no matter if I log out, refresh, or anything.

MP Mr Papa
Mr Papa
Member

for some reason wp is confused, it seems… that is their message… of course, we create the nonces using wp api…

and my other questions?  mod_security on server?  cache? plugins that deal with members, logins, etc??

if you want to provide access to us, we can take a look…  pm the details for temp wp admin and sp admin account to Andy, Ike and Mr Papa…  make sure to link back to this topic so we know what its about…  include url to your site of course too…

BL Bluedrake42
Bluedrake42
Member

Sure thing, I’ll give you my account. Because right now I can’t give anyone admin to SP haha since its not letting me access the backend correctly.

MP Mr Papa
Mr Papa
Member

okay, I have to run out after lunch – woot, afternoon/night out with the wife… but will try to take a quick look…  Andy/Ike may have more time…

MP Mr Papa
Mr Papa
Member

was able to take a quick look before I have to run out… there is something wrong with your wp…  most of your wp admin page are throwing errors…  not just sp pages… even the wp dashboard…

you are getting a bunch of network errors and 500 internal server errors…  most of the time is coming from the wp admin load-scripts.js file…  seems related to whenever you have an ajax response on pages..

might be worth turning off script concatenation in admin by adding

define(‘CONCATENATE_SCRIPTS’, false);

to your wp-config.php file and see if that does anything…  seems to be fair number of reports of this causing issue in wp…

BL Bluedrake42
Bluedrake42
Member

Welp, that’s frustrating but not entirely surprising.

Do you have a recommendation on someone I could hire to fix this for me? My own developers have good intentions, but they’re not entirely sure of what they’re doing most of the time.

BL Bluedrake42
Bluedrake42
Member

Alright so, we just reinstalled the entire WP core and that fixed it lol

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry to be a bit slow getting back to you here. But… sounds like good news.