{"action":"created","issue":{"url":"https://api.github.com/repos/pantheon-systems/terminus/issues/910","repository_url":"https://api.github.com/repos/pantheon-systems/terminus","labels_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/910/labels{/name}","comments_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/910/comments","events_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/910/events","html_url":"https://github.com/pantheon-systems/terminus/issues/910","id":133355903,"number":910,"title":"Some pantheon sites seem to return a null value for `site connection-info`","user":{"login":"pirog","id":713424,"avatar_url":"https://avatars.githubusercontent.com/u/713424?v=3","gravatar_id":"","url":"https://api.github.com/users/pirog","html_url":"https://github.com/pirog","followers_url":"https://api.github.com/users/pirog/followers","following_url":"https://api.github.com/users/pirog/following{/other_user}","gists_url":"https://api.github.com/users/pirog/gists{/gist_id}","starred_url":"https://api.github.com/users/pirog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirog/subscriptions","organizations_url":"https://api.github.com/users/pirog/orgs","repos_url":"https://api.github.com/users/pirog/repos","events_url":"https://api.github.com/users/pirog/events{/privacy}","received_events_url":"https://api.github.com/users/pirog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-12T22:11:59Z","updated_at":"2016-02-12T22:25:44Z","closed_at":null,"body":"yoyo, \r\n\r\nWe are getting this reported by a decent subset of Kalabox users. On some sites `site connection-info` returns the following \r\n\r\n```php\r\nPHP Fatal error:  Call to a member function get() on a non-object in phar:///usr/local/bin/terminus/php/Terminus/Models/Environment.php on line 270\r\nPHP Stack trace:\r\nPHP   1. {main}() /usr/local/bin/terminus:0\r\nPHP   2. include() /usr/local/bin/terminus:4\r\nPHP   3. include() phar:///usr/local/bin/terminus/php/boot-phar.php:4\r\nPHP   4. Terminus\\Runner->run() phar:///usr/local/bin/terminus/php/boot-cl.php:26\r\nPHP   5. Terminus\\Runner->_runCommand() phar:///usr/local/bin/terminus/php/Terminus/Runner.php:151\r\nPHP   6. Terminus\\Runner->runCommand() phar:///usr/local/bin/terminus/php/Terminus/Runner.php:185\r\nPHP   7. Terminus\\Dispatcher\\Subcommand->invoke() phar:///usr/local/bin/terminus/php/Terminus/Runner.php:167\r\nPHP   8. call_user_func:{phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/Subcommand.php:117}() phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/Subcommand.php:117\r\nPHP   9. Terminus\\Dispatcher\\CommandFactory::Terminus\\Dispatcher\\{closure}() phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/Subcommand.php:117\r\nPHP  10. call_user_func:{phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/CommandFactory.php:100}() phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/CommandFactory.php:100\r\nPHP  11. Terminus\\Commands\\SiteCommand->connectionInfo() phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/CommandFactory.php:100\r\nPHP  12. Terminus\\Models\\Environment->connectionInfo() phar:///usr/local/bin/terminus/php/Terminus/Commands/SiteCommand.php:366\r\n\r\nFatal error: Call to a member function get() on a non-object in phar:///usr/local/bin/terminus/php/Terminus/Models/Environment.php on line 270\r\n\r\nCall Stack:\r\n    0.0020     255776   1. {main}() /usr/local/bin/terminus:0\r\n    0.0214     775144   2. include('phar:///usr/local/bin/terminus/php/boot-phar.php') /usr/local/bin/terminus:4\r\n    0.0216     785248   3. include('phar:///usr/local/bin/terminus/php/boot-cl.php') phar:///usr/local/bin/terminus/php/boot-phar.php:4\r\n    0.0408    2027136   4. Terminus\\Runner->run() phar:///usr/local/bin/terminus/php/boot-cl.php:26\r\n    0.0572    2734928   5. Terminus\\Runner->_runCommand() phar:///usr/local/bin/terminus/php/Terminus/Runner.php:151\r\n    0.0572    2735112   6. Terminus\\Runner->runCommand() phar:///usr/local/bin/terminus/php/Terminus/Runner.php:185\r\n    0.0575    2735944   7. Terminus\\Dispatcher\\Subcommand->invoke() phar:///usr/local/bin/terminus/php/Terminus/Runner.php:167\r\n    0.0613    2799320   8. call_user_func:{phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/Subcommand.php:117}() phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/Subcommand.php:117\r\n    0.0613    2799384   9. Terminus\\Dispatcher\\CommandFactory::Terminus\\Dispatcher\\{closure}() phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/Subcommand.php:117\r\n    0.5511    4870424  10. call_user_func:{phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/CommandFactory.php:100}() phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/CommandFactory.php:100\r\n    0.5511    4870664  11. Terminus\\Commands\\SiteCommand->connectionInfo() phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/CommandFactory.php:100\r\n    4.1811    5420840  12. Terminus\\Models\\Environment->connectionInfo() phar:///usr/local/bin/terminus/php/Terminus/Commands/SiteCommand.php:366\r\n```\r\n\r\nPresumably the platform doesn't have connection-info populated for every site and terminus is not handling a null result?\r\n\r\nIs there any action we can take before asking for the connection-info that would get the platform to populate or is there something else going on here? If you think this is a terminus bug i would be down to help track it down."},"comment":{"url":"https://api.github.com/repos/pantheon-systems/terminus/issues/comments/183510743","html_url":"https://github.com/pantheon-systems/terminus/issues/910#issuecomment-183510743","issue_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/910","id":183510743,"user":{"login":"TeslaDethray","id":868204,"avatar_url":"https://avatars.githubusercontent.com/u/868204?v=3","gravatar_id":"","url":"https://api.github.com/users/TeslaDethray","html_url":"https://github.com/TeslaDethray","followers_url":"https://api.github.com/users/TeslaDethray/followers","following_url":"https://api.github.com/users/TeslaDethray/following{/other_user}","gists_url":"https://api.github.com/users/TeslaDethray/gists{/gist_id}","starred_url":"https://api.github.com/users/TeslaDethray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeslaDethray/subscriptions","organizations_url":"https://api.github.com/users/TeslaDethray/orgs","repos_url":"https://api.github.com/users/TeslaDethray/repos","events_url":"https://api.github.com/users/TeslaDethray/events{/privacy}","received_events_url":"https://api.github.com/users/TeslaDethray/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T22:25:44Z","updated_at":"2016-02-12T22:25:44Z","body":"@pirog I can't recreate this error. The Environment#connectionInfo() function just about only gets things from itself and a Site instance which it is added via constructor injection. What is the name of one of the sites which has this error? May I please temporarily add myself to the team on it so that I can see the error in action?"}}