{"action":"created","issue":{"url":"https://api.github.com/repos/studio24/wordpress-multi-env-config/issues/21","repository_url":"https://api.github.com/repos/studio24/wordpress-multi-env-config","labels_url":"https://api.github.com/repos/studio24/wordpress-multi-env-config/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/studio24/wordpress-multi-env-config/issues/21/comments","events_url":"https://api.github.com/repos/studio24/wordpress-multi-env-config/issues/21/events","html_url":"https://github.com/studio24/wordpress-multi-env-config/issues/21","id":268727342,"number":21,"title":"New WP-cli issue","user":{"login":"newtlabs","id":715549,"avatar_url":"https://avatars1.githubusercontent.com/u/715549?v=4","gravatar_id":"","url":"https://api.github.com/users/newtlabs","html_url":"https://github.com/newtlabs","followers_url":"https://api.github.com/users/newtlabs/followers","following_url":"https://api.github.com/users/newtlabs/following{/other_user}","gists_url":"https://api.github.com/users/newtlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/newtlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newtlabs/subscriptions","organizations_url":"https://api.github.com/users/newtlabs/orgs","repos_url":"https://api.github.com/users/newtlabs/repos","events_url":"https://api.github.com/users/newtlabs/events{/privacy}","received_events_url":"https://api.github.com/users/newtlabs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-10-26T11:41:11Z","updated_at":"2018-04-06T10:38:47Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi, now that new features have been added to master I'm having issues when trying to activate something via wp-cli, I have also tried adding --env=<environment> to the command but no avail.\r\n\r\nErrors:\r\n\r\n```\r\nPHP Notice:  Undefined variable: argv in /wp-config.load.php on line 23\r\nPHP Warning:  Invalid argument supplied for foreach() in /wp-config.load.php on line 23\r\nPHP Notice:  Undefined index: HTTP_HOST in /wp-config.load.php on line 42\r\nPHP Fatal error:  Uncaught Exception: Cannot determine current environment via WP_ENV or hostname in /wp-config.load.php:46\r\nStack trace:\r\n#0 /wp-config.load.php(122): s24_load_environment_config()\r\n#1 phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(964) : eval()'d code(14): require_once('/var/www/h...')\r\n#2 phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(964): eval()\r\n#3 phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(927): WP_CLI\\Runner->load_wordpress()\r\n#4 phar:///usr/local/bin/wp/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\\Runner->start()\r\n#5 phar:///usr/local/bin/wp/php/bootstrap.php(75): WP_CLI\\Bootstrap\\LaunchRunner->process(Object(WP_CLI\\Bootstrap\\BootstrapState))\r\n#6 phar:///usr/local/bin/wp/php/wp-cli.php(23): WP_CLI\\bootstrap()\r\n#7 phar:///usr/local/bin/wp/php/boot-phar.php(8): include('phar:///usr/loc...')\r\n#8 /usr/local/bin/wp(4): include('phar:///usr/loc...')\r\n#9 {main}\r\n  thrown in /wp-config.load.php on line 46\r\n```"},"comment":{"url":"https://api.github.com/repos/studio24/wordpress-multi-env-config/issues/comments/379216214","html_url":"https://github.com/studio24/wordpress-multi-env-config/issues/21#issuecomment-379216214","issue_url":"https://api.github.com/repos/studio24/wordpress-multi-env-config/issues/21","id":379216214,"user":{"login":"newtlabs","id":715549,"avatar_url":"https://avatars1.githubusercontent.com/u/715549?v=4","gravatar_id":"","url":"https://api.github.com/users/newtlabs","html_url":"https://github.com/newtlabs","followers_url":"https://api.github.com/users/newtlabs/followers","following_url":"https://api.github.com/users/newtlabs/following{/other_user}","gists_url":"https://api.github.com/users/newtlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/newtlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newtlabs/subscriptions","organizations_url":"https://api.github.com/users/newtlabs/orgs","repos_url":"https://api.github.com/users/newtlabs/repos","events_url":"https://api.github.com/users/newtlabs/events{/privacy}","received_events_url":"https://api.github.com/users/newtlabs/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T10:38:47Z","updated_at":"2018-04-06T10:38:47Z","author_association":"CONTRIBUTOR","body":"Any chance of taking another look at this? Am snowed under with 50 WP sites to look after and being able to use WP-CLI would be a massive help."}}
{"actor":{"display_login":"newtlabs"}}