{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8018","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8018/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8018/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8018/events","html_url":"https://github.com/yiisoft/yii2/issues/8018","id":67079461,"number":8018,"title":"ErrorException is rendered incorrectly","user":{"login":"robsch","id":2900992,"avatar_url":"https://avatars.githubusercontent.com/u/2900992?v=3","gravatar_id":"","url":"https://api.github.com/users/robsch","html_url":"https://github.com/robsch","followers_url":"https://api.github.com/users/robsch/followers","following_url":"https://api.github.com/users/robsch/following{/other_user}","gists_url":"https://api.github.com/users/robsch/gists{/gist_id}","starred_url":"https://api.github.com/users/robsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robsch/subscriptions","organizations_url":"https://api.github.com/users/robsch/orgs","repos_url":"https://api.github.com/users/robsch/repos","events_url":"https://api.github.com/users/robsch/events{/privacy}","received_events_url":"https://api.github.com/users/robsch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:need%20more%20info","name":"status:need more info","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-08T08:44:27Z","updated_at":"2015-04-08T12:16:18Z","closed_at":null,"body":"Please, look into the screenshot. \r\n\r\nIn the second entry you see the highlighted line is an empty one. That is because the wrong code was displayed. It is line 131 of another class (not CiController) that has caused the error (caused by `$x = $this->material`). The third entry is then okay again. Only the second entry shows the wrong source. \r\n\r\nUsing Yii 2.0.3.\r\n\r\n![snapshot_yii_error_error](https://cloud.githubusercontent.com/assets/2900992/7041674/add3845a-dddb-11e4-9279-8f74ef007d7a.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/90895292","html_url":"https://github.com/yiisoft/yii2/issues/8018#issuecomment-90895292","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8018","id":90895292,"user":{"login":"robsch","id":2900992,"avatar_url":"https://avatars.githubusercontent.com/u/2900992?v=3","gravatar_id":"","url":"https://api.github.com/users/robsch","html_url":"https://github.com/robsch","followers_url":"https://api.github.com/users/robsch/followers","following_url":"https://api.github.com/users/robsch/following{/other_user}","gists_url":"https://api.github.com/users/robsch/gists{/gist_id}","starred_url":"https://api.github.com/users/robsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robsch/subscriptions","organizations_url":"https://api.github.com/users/robsch/orgs","repos_url":"https://api.github.com/users/robsch/repos","events_url":"https://api.github.com/users/robsch/events{/privacy}","received_events_url":"https://api.github.com/users/robsch/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T12:16:18Z","updated_at":"2015-04-08T12:16:18Z","body":"I tried to find it out by myself. I didn't know what to post here.\r\n\r\nOkay, what I found out so far is that this wrong entry is caused by function xdebug_get_function_stack() in constructor of class yii\\base\\ErrorException. Here is the array that I've got for this exception. The wrong file is already in that array:\r\n\r\n    [\r\n        'function' => '{main}',\r\n        'file' => '/var/www/html/misc/c3integration/web/index.php',\r\n        'line' => 0,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'run',\r\n        'type' => 'dynamic',\r\n        'class' => 'yii\\\\base\\\\Application',\r\n        'file' => '/var/www/html/misc/c3integration/web/index.php',\r\n        'line' => 7,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'handleRequest',\r\n        'type' => 'dynamic',\r\n        'class' => 'yii\\\\web\\\\Application',\r\n        'file' => '/var/www/html/misc/c3integration/vendor/yiisoft/yii2/base/Application.php',\r\n        'line' => 375,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'runAction',\r\n        'type' => 'dynamic',\r\n        'class' => 'yii\\\\base\\\\Module',\r\n        'file' => '/var/www/html/misc/c3integration/vendor/yiisoft/yii2/web/Application.php',\r\n        'line' => 83,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'runAction',\r\n        'type' => 'dynamic',\r\n        'class' => 'yii\\\\base\\\\Controller',\r\n        'file' => '/var/www/html/misc/c3integration/vendor/yiisoft/yii2/base/Module.php',\r\n        'line' => 455,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'runWithParams',\r\n        'type' => 'dynamic',\r\n        'class' => 'yii\\\\base\\\\InlineAction',\r\n        'file' => '/var/www/html/misc/c3integration/vendor/yiisoft/yii2/base/Controller.php',\r\n        'line' => 151,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'call_user_func_array:{/var/www/html/misc/c3integration/vendor/yiisoft/yii2/base/InlineAction.php:55}',\r\n        'file' => '/var/www/html/misc/c3integration/vendor/yiisoft/yii2/base/InlineAction.php',\r\n        'line' => 55,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'actionResult',\r\n        'type' => 'dynamic',\r\n        'class' => 'app\\\\controllers\\\\CiController',\r\n        'file' => '/var/www/html/misc/c3integration/vendor/yiisoft/yii2/base/InlineAction.php',\r\n        'line' => 55,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'storePlateDataIntoDB',\r\n        'type' => 'dynamic',\r\n        'class' => 'app\\\\models\\\\CiResumeSession',\r\n        'file' => '/var/www/html/misc/c3integration/controllers/CiController.php',\r\n        'line' => 206,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => '__get',\r\n        'type' => 'dynamic',\r\n        'class' => 'yii\\\\base\\\\Component',\r\n        'file' => '/var/www/html/misc/c3integration/controllers/CiController.php',\r\n        'line' => 131,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'getMaterial',\r\n        'type' => 'dynamic',\r\n        'class' => 'app\\\\models\\\\CiSession',\r\n        'file' => '/var/www/html/misc/c3integration/vendor/yiisoft/yii2/base/Component.php',\r\n        'line' => 130,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => 'handleError',\r\n        'type' => 'dynamic',\r\n        'class' => 'yii\\\\base\\\\ErrorHandler',\r\n        'file' => '/var/www/html/misc/c3integration/vendor/yiisoft/yii2/base/Component.php',\r\n        'line' => 158,\r\n        'params' => [],\r\n    ],\r\n    [\r\n        'function' => '__construct',\r\n        'type' => 'dynamic',\r\n        'class' => 'yii\\\\base\\\\ErrorException',\r\n        'file' => '/var/www/html/misc/c3integration/vendor/yiisoft/yii2/base/ErrorHandler.php',\r\n        'line' => 140,\r\n        'params' => [],\r\n    ],\r\n\r\nError occured on Fedora 20 with Xdebug 2.2.7, PHP 5.5.23, Apache 2.4.10 (and Phusion_Passenger 4.0.42 if this has anything to do with it).\r\n\r\nSo it is not Yii problem."}}