{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/4127","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/4127/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/4127/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/4127/events","html_url":"https://github.com/magento/magento2/issues/4127","id":147831340,"number":4127,"title":"Fatal Call When page.messages block removed from xml","user":{"login":"mstumpf818","id":11161484,"avatar_url":"https://avatars.githubusercontent.com/u/11161484?v=3","gravatar_id":"","url":"https://api.github.com/users/mstumpf818","html_url":"https://github.com/mstumpf818","followers_url":"https://api.github.com/users/mstumpf818/followers","following_url":"https://api.github.com/users/mstumpf818/following{/other_user}","gists_url":"https://api.github.com/users/mstumpf818/gists{/gist_id}","starred_url":"https://api.github.com/users/mstumpf818/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstumpf818/subscriptions","organizations_url":"https://api.github.com/users/mstumpf818/orgs","repos_url":"https://api.github.com/users/mstumpf818/repos","events_url":"https://api.github.com/users/mstumpf818/events{/privacy}","received_events_url":"https://api.github.com/users/mstumpf818/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-12T18:10:16Z","updated_at":"2016-04-12T18:10:16Z","closed_at":null,"body":"Problem\r\n--\r\nA fatal error occurs on /customer/account/edit/ when page.messages block is removed from xml.  \r\nFatal error: Call to a member function setEscapeMessageFlag() on boolean in vendor/magento/module-customer/Controller/Account/Edit.php on line 83\r\n\r\n\r\nSteps to reproduce\r\n--\r\n1. Install stable Magento CE (we're using 2.0.2).\r\n2. Remove page.messages block.  You can do this in the theme xml file app/design/frontend/{Theme Maker}/{Theme}/Magento_Theme/layout/default.xml by adding <referenceBlock name=\"page.messages\" remove=\"true\"/>\r\n3. Create user account on frontend and go to /customer/account/edit/\r\n4. The stack trace occurs if you are in development mode, otherwise you see the white screen of death\r\n\r\nExpected result\r\n--\r\n1. Code doesn't crash and either fails gracefully or creates an empty block dynamically\r\n\r\nActual result\r\n--\r\n1. Fatal error: Call to a member function setEscapeMessageFlag() on boolean in vendor/magento/module-customer/Controller/Account/Edit.php on line 83\r\n"}}