Page 1 of 1
Invalid CSRF Storage on file Upload in ubuntu Apache Server
Posted: Tue Apr 23, 2024 5:20 pm
by shahmasumzaman
It shows : Invalid CSRF storage. Use session_start() before instantiating the Guard middleware or provide array storage.
the same codes are working in windows xampp server but not in ubuntu
Re: Invalid CSRF Storage on file Upload in ubuntu Apache Server
Posted: Tue Apr 23, 2024 11:08 pm
by arbei
Make sure PHP session is working properly on your server.
Re: Invalid CSRF Storage on file Upload in ubuntu Apache Server
Posted: Tue Apr 30, 2024 10:57 pm
by shahmasumzaman
Exactly.... How would login have worked if session was not working... Do u any soulution ?
Re: Invalid CSRF Storage on file Upload in ubuntu Apache Server
Posted: Wed May 01, 2024 8:49 am
by arbei
You need to provide more detailed information, just the error message is too brief.
- Which version of PHPMaker are you using?
- How did you do file upload? In which page?
- Make sure cookie is enabled for the site.
- Check your Cookie SameSite setting, if it is "None", make sure you also enable Cookie Secure and use HTTPS on your site.