Solve error: No encoder has been configured for account “Application\Sonata\UserBundle\Entity\User”

Do you get this error No encoder has been configured for account "Application\Sonata\UserBundle\Entity\User" when you trying to install Sonata? In this tutorial I will explain to you how you can solve this error.

Open your security.yml file and you must add a new encoder:

security:
encoders:
Symfony\Component\Security\Core\User\User: plaintext
Application\Sonata\UserBundle\Entity\User: sha512

In this way you will solve this error.









Leave a Comment