hepkat63 Posted November 27, 2020 Share Posted November 27, 2020 i have a problem when i try to add a new product, i get the error: The CSRF token is invalid. Please try to resubmit the form. I have the same issue, however I'm not able to 'downgrade' php versions as my other clients use the later version. I downloaded the latest prestashop hoping it would use 7.4 - but no Is there any way i can point prestashop to look for php.ini somewhere else? I.e currently , my server stores this at /etc/php.ini however I have virtualmin and can use downgraded versions of php back to 5.4 if I have too - but need to know whereabouts in prestashop it's configuration files look for the php installation. Can anyone help please? Link to comment Share on other sites More sharing options...
hepkat63 Posted December 1, 2020 Author Share Posted December 1, 2020 anyone ?? Link to comment Share on other sites More sharing options...
hepkat63 Posted December 3, 2020 Author Share Posted December 3, 2020 bueller... beuller... Link to comment Share on other sites More sharing options...
idnovate.com Posted December 14, 2020 Share Posted December 14, 2020 You have to contact your hosting to change PHP version if you can't do it. PrestaShop doesn't "look" for a PHP version. Link to comment Share on other sites More sharing options...
raultamayomate Posted June 5, 2021 Share Posted June 5, 2021 Hi, try this. Create a file in document root where is index.php, called ".env" or if you almost have a file called .env, add a new line whith this content: _TOKEN_=disabled Greetings Link to comment Share on other sites More sharing options...
raultamayomate Posted June 5, 2021 Share Posted June 5, 2021 If this not work, edit the file /src/Core/Feature/TokenInUrls.php change the isDisabled function whith: public static function isDisabled() { //return getenv(self::ENV_VAR) === self::DISABLED; return false; } greetings Link to comment Share on other sites More sharing options...
stefano813 Posted May 25, 2022 Share Posted May 25, 2022 I solved the problem downgrading from PHP 7.4 to 7.3 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now