{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8429","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8429/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8429/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8429/events","html_url":"https://github.com/yiisoft/yii2/issues/8429","id":76634631,"number":8429,"title":"Debug panel catches errors but the application itself doesn't display it.","user":{"login":"dbsparkle","id":417757,"avatar_url":"https://avatars.githubusercontent.com/u/417757?v=3","gravatar_id":"","url":"https://api.github.com/users/dbsparkle","html_url":"https://github.com/dbsparkle","followers_url":"https://api.github.com/users/dbsparkle/followers","following_url":"https://api.github.com/users/dbsparkle/following{/other_user}","gists_url":"https://api.github.com/users/dbsparkle/gists{/gist_id}","starred_url":"https://api.github.com/users/dbsparkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbsparkle/subscriptions","organizations_url":"https://api.github.com/users/dbsparkle/orgs","repos_url":"https://api.github.com/users/dbsparkle/repos","events_url":"https://api.github.com/users/dbsparkle/events{/privacy}","received_events_url":"https://api.github.com/users/dbsparkle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:to%20be%20verified","name":"status:to be verified","color":"fbca04"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:bug","name":"type:bug","color":"e102d8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-05-15T07:40:51Z","updated_at":"2015-05-16T07:16:52Z","closed_at":"2015-05-15T16:07:45Z","body":"I spotted a log message of error level in debug panel, but my application was running and not throwing errors in the browser:\r\n![display_errors](https://cloud.githubusercontent.com/assets/417757/7648694/b2a756ac-fb20-11e4-97fe-ebbc12bcbb5f.png)\r\n\r\nSo to test it, I tried:\r\n```\r\n<?php\r\ndefined('YII_DEBUG') or define('YII_DEBUG', true);\r\ndefined('YII_ENV') or define('YII_ENV', 'dev');\r\n\r\nrequire(__DIR__ . '/../vendor/autoload.php');\r\nrequire(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');\r\nrequire(__DIR__ . '/../common/config/bootstrap.php');\r\nrequire(__DIR__ . '/config/bootstrap.php');\r\n\r\n$config = yii\\helpers\\ArrayHelper::merge(\r\n    require(__DIR__ . '/../common/config/main.php'),\r\n    require(__DIR__ . '/../common/config/main-local.php'),\r\n    require(__DIR__ . '/config/main.php'),\r\n    require(__DIR__ . '/config/main-local.php')\r\n);\r\necho 'display_errors1 = ' . ini_get('display_errors') . \"\\n\";\r\n$application = new yii\\web\\Application($config);\r\n\r\necho 'display_errors2 = ' . ini_get('display_errors') . \"\\n\";\r\n$application->run();\r\n```\r\nAnd got the results:\r\n**display_errors1 = 1**\r\n**display_errors2 = \" \"** !\r\n\r\nIs it a normal behavior or a possible bug in the framework?\r\n\r\n `yii\\base\\ErrorHandler` sets `display_errors` to `false` and `yii\\WEB\\errorHandler`\r\nswitches it to `true`... I also suspect that my issue may be somehow related to: #7616"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/102582695","html_url":"https://github.com/yiisoft/yii2/issues/8429#issuecomment-102582695","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8429","id":102582695,"user":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T07:16:52Z","updated_at":"2015-05-16T07:16:52Z","body":"@dbsparkle having a missing translation category isn't the thing that should result in app crash. That's intentional.\r\n\r\nHaving `display_errors` on won't add this error to the screen because, in fact, it's logging directly using Yii log component in this case, not causing error.\r\n\r\nAlso `display_errors` on will affect our exception page in case of fatals. If it's turned on there's no way to get rid of standard PHP message and render our nice exception with source, stacktrace etc."}}