We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Every time I save I get this - "Error: This form has expired. Please refresh and try again."

How Do I?

bijan's avatar
bijan
16 posts
4 years ago
bijan's avatar bijan

Hi all, every time I make a change to my site I get redirected to this error page. I then have to refresh make my changes again and save. Then if I save another change, I get the error again.

Does anyone else get this problem or is there any way to fix it?

       
vw000's avatar
vw000
482 posts
4 years ago
vw000's avatar vw000

That error is related to the token form that is required on POST submissions. The reason is the token has expired and does not match what EE expects while submitting the form.

Do you get this on a form in your website or while saving something from inside the control panel?

       
bijan's avatar
bijan
16 posts
4 years ago
bijan's avatar bijan

It happens every time I save a template. It can be the smallest change in css/html and it will happen.

       
vw000's avatar
vw000
482 posts
4 years ago
vw000's avatar vw000

What version are you running? Did you check the server logs? Or EE logs for any errors?

       
bijan's avatar
bijan
16 posts
4 years ago
bijan's avatar bijan

I am on version 6.0.6 and the only logs I have are myself logging in, there are no errors. The only error I get is on that page I get redirected to.

       
vw000's avatar
vw000
482 posts
4 years ago
vw000's avatar vw000

Who maintains the web server for you? If there are no error logs in Expression Engine, I would start checking the web server logs and PHP logs. It seems like some session time out issue, which can or could be caused by a misconfiguration in your server settings.

What settings do you have as a session in your EE settings? Try changing that setting and see if it works.

Settings > Security & Privacy > Settings

Check the Session Type. If you have some browser setting that is erasing or blocking cookies, and you have the cookies option set, that might also potentially cause issues. Try testing a different browser as well, just in case.

Try disabling EE Add-ons. If you are sure this is not an issue with your browser and EE sessions, then its almost very likely a misconfiguration in how PHP is storing sessions in your server.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.