php on line 21 error was gone and worked normally. phar update friendsofsymfony/ user- bundle. Add the line use FOS\ UserBundle\ FOSUserBundle( ), to AppKernel. Fatal error: Class ' FOS \ JsRoutingBundle \ FOSJsRoutingBundle' not found. Yep, extending FOS\ UserBundle\ Entity\ User is deprecated, Extend FOS\ UserBundle\ Model\ User directly. Just in case someone gets the same issue as I did, i found out where the problem came from : I' m using a Mac but didn' t want to. Basically, I had to remove MAMP and upgrade my Mac PHP so I could use it together with Symfony. namespace Acme\ UserBundle; use Symfony\ Component\ HttpKernel\ Bundle\ Bundle; class AcmeUserBundle extends Bundle { }. Fatal error: Class ' CoreSphere\ ConsoleBundle\ CoreSphereConsoleBundle' not found in C: \ wamp64\ www\ Vanessa\ Application\ app\ AppKernel. new FOS\ UserBundle\ FOSUserBundle( ), ) ;. I get the following error message.