Jump to content

Bad request error 400 in presta 8


rejemiasz

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...