{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/11887","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/11887/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/11887/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/11887/events","html_url":"https://github.com/yiisoft/yii2/issues/11887","id":163706143,"number":11887,"title":"Error in mailer under console, but it work in backend","user":{"login":"skvarovski","id":11178969,"avatar_url":"https://avatars.githubusercontent.com/u/11178969?v=3","gravatar_id":"","url":"https://api.github.com/users/skvarovski","html_url":"https://github.com/skvarovski","followers_url":"https://api.github.com/users/skvarovski/followers","following_url":"https://api.github.com/users/skvarovski/following{/other_user}","gists_url":"https://api.github.com/users/skvarovski/gists{/gist_id}","starred_url":"https://api.github.com/users/skvarovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skvarovski/subscriptions","organizations_url":"https://api.github.com/users/skvarovski/orgs","repos_url":"https://api.github.com/users/skvarovski/repos","events_url":"https://api.github.com/users/skvarovski/events{/privacy}","received_events_url":"https://api.github.com/users/skvarovski/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":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-04T16:17:18Z","updated_at":"2016-07-05T08:32:49Z","closed_at":"2016-07-05T08:32:49Z","body":"### What steps will reproduce the problem?\r\ni have subscription in console and backend for mailing for test.\r\nin template i use inserting php tag :\r\n\r\n<? foreach ($a as $v) : ?>\r\n.....\r\nhtml + <?= $v->id  ?>\r\n...\r\n<? endforeach; ?>\r\n\r\n### What is the expected result?\r\nsend email\r\n\r\n### What do you get instead?\r\nerror  in console \r\nPHP Notice 'yii\\base\\ErrorException' with message 'Undefined variable: v'\r\nin  .... site.loc/common/mail/subscription_mail.php:50\r\n... in backend it work..\r\nThis error appeared after updating PHP (5.4 -> 5.6) and Yii (2.0.7->2.0.8)\r\n\r\n### Additional info\r\n| Q                | A\r\n| ---------------- | ---\r\n| Yii version      |  2.0.8\r\n| PHP version      |  5.6\r\n| Operating system | Debian 7\r\n"}}
{"actor":{"display_login":"samdark"}}