Can't modify or add a new product. When click on Save, i've this message: The CSRF token is invalid. Please try to resubmit the form.
Thanks for opening this issue! We will help you to keep its state consistent
Hi @hamus1 ,
Please, send your request in English.
English is the norm on GitHub
Thank you!
Had same issue, found a fix on the prestashop forums
in your php.ini file try increasing max_input_vars to more than it is now.
Increased mine to 1500 and it fixed it.
Not sure if this helps you, but on prestashop forum more people had success with this.
@mfnew thanks for the comment :)
@hamus1 don't forget to check if you meet all system requirements : https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/
@hamus1 I'll close your issue as you are not using our template properly.
I've edit my message, please reopen @florine2623
in your php.ini file try increasing max_input_vars to more than it is now.
Increased mine to 1500 and it fixed it.
We recommend to set 20000 : https://devdocs.prestashop.com/1.7/scale/optimizations/
@Matt75 Same problem
i've add this in my php.ini
memory_limit = 128M
max_execution_time = 300;
max_input_time = -1;
post_max_size = 25M;
upload_max_filesize = 20M;
max_input_vars = 10000;
suhosin.get.max_vars = 10000;
suhosin.post.max_vars = 10000;
my php.ini is in this path according to php.info:
/Applications/MAMP/bin/php/php7.4.2/conf/php.ini
Try to disable opcache or improve opcache configuration.
Check all requirements https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/
Yes make sure it's not cached, always clear og disable cache while debugging