• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Strange intermittant permission error since 1.2

#1
After upgrading to 1.2 I am intermittently getting the following error:

"You do not have permission to view this page or perform this action."

This is on my own admin account. It happens if I have been idle for a while so I guess it has to do with not being logged in. But I am getting this error on pages that are public, and, I log in with the option to stay logged in.

If I simply reload the page, the error goes away.
 

Jeremy

Well-known member
#3
It may be your CSRF (security) token expiring, which is regenerated on page load. Do you receive this doing an AJAX action (fetching alerts, saving a draft, etc.)?
 
#5
It may be your CSRF (security) token expiring, which is regenerated on page load. Do you receive this doing an AJAX action (fetching alerts, saving a draft, etc.)?
I receive it just when I try to view a new page after not having used it for a while. I also get it if I try to log in after I have been logged out for a while. But I can't make it fail just by logging out and back in.