rejemiasz Posted May 30 Share Posted May 30 Hello, i have a fresh instance of prestashop 8.1.5. i get this random error 400 as i click on the page (backend or frontend). i cannot also translate strings because i get undefined error. Tried different versions of php. This is what i get in debug mode: CsrfTokenManager->getToken('ANONYMOUS_USER')in /home/dystrybucja/public_html/hurt.dystrybucjakatolicka.pl/src/PrestaShopBundle/Service/Routing/Router.php (line 64) public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH) { $username = $this->userProvider->getUsername(); // Do not generate token each time we want to generate a route for a user if (!isset($this->tokens[$username])) { $this->tokens[$username] = $this->tokenManager->getToken($username)->getValue(); } $url = parent::generate($name, $parameters, $referenceType); if (TokenInUrls::isDisabled()) { can someone help me with this problem? Link to comment Share on other sites More sharing options...
Nickz Posted May 30 Share Posted May 30 is that similar to https://github.com/PrestaShop/PrestaShop/issues/13577 ???? 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