{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/2738","repository_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/2738/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/2738/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/2738/events","html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/issues/2738","id":298598621,"number":2738,"title":"error on login page Call to a member function has() on null","user":{"login":"fecou","id":8345396,"avatar_url":"https://avatars0.githubusercontent.com/u/8345396?v=4","gravatar_id":"","url":"https://api.github.com/users/fecou","html_url":"https://github.com/fecou","followers_url":"https://api.github.com/users/fecou/followers","following_url":"https://api.github.com/users/fecou/following{/other_user}","gists_url":"https://api.github.com/users/fecou/gists{/gist_id}","starred_url":"https://api.github.com/users/fecou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fecou/subscriptions","organizations_url":"https://api.github.com/users/fecou/orgs","repos_url":"https://api.github.com/users/fecou/repos","events_url":"https://api.github.com/users/fecou/events{/privacy}","received_events_url":"https://api.github.com/users/fecou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-20T13:44:42Z","updated_at":"2018-02-20T20:51:39Z","closed_at":null,"author_association":"NONE","body":"I just made a composer update and have now a problem I can't resolve.\r\nIn my composer.json I have \"friendsofsymfony/user-bundle\": \"~2.0\", and the version of fosUser is v2.1.1 (with symfony 2.8)\r\n\r\nI overrided the login and login_content.html.twig, but the structure is exactly the same as the original. I also overrided the securityController, but I didn't redefined the loginAction.\r\n\r\nI have an exception on login page : Call to a member function has() on null\r\n\r\nThe stacktrace is as follows :\r\n```\r\nin vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 184  -\r\n\r\n         */\r\n        public function render($view, array $parameters = array(), Response $response = null)\r\n        {\r\n            if ($this->container->has('templating')) {\r\n                return $this->container->get('templating')->renderResponse($view, $parameters, $response);\r\n            }\r\n\r\nat Controller ->render ('@FOSUser/Security/login.html.twig', array('last_username' => 'felix', 'error' => null, 'csrf_token' => 'lb1EhD4hiVtgohonlic2Q6OcnChpSvrQXDVdtCYtv5k'))\r\nin vendor/friendsofsymfony/user-bundle/Controller/SecurityController.php at line 98  +\r\nat SecurityController ->renderLogin (array('last_username' => 'felix', 'error' => null, 'csrf_token' => 'lb1EhD4hiVtgohonlic2Q6OcnChpSvrQXDVdtCYtv5k'))\r\nin vendor/friendsofsymfony/user-bundle/Controller/SecurityController.php at line 74  +\r\nat SecurityController ->loginAction (object(Request))\r\nin vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 135  +\r\nat HttpKernel ->handleRaw (object(Request), '1')\r\nin vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 57  +\r\nat HttpKernel ->handle (object(Request), '1', true)\r\nin vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 67  +\r\nat ContainerAwareHttpKernel ->handle (object(Request), '1', true)\r\nin vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 183  +\r\nat Kernel ->handle (object(Request))\r\nin web/app_dev.php at line 36  +\r\n```\r\n\r\nAs it used to work perfectly before, I don't know if the problem is mine or not. "},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/comments/367114943","html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/issues/2738#issuecomment-367114943","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/2738","id":367114943,"user":{"login":"xabbuh","id":1957048,"avatar_url":"https://avatars0.githubusercontent.com/u/1957048?v=4","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T20:51:39Z","updated_at":"2018-02-20T20:51:39Z","author_association":"MEMBER","body":"looks like a duplicate of #2737"}}
{"actor":{"display_login":"xabbuh"}}