{"action":"created","issue":{"url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/3","labels_url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/3/comments","events_url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/3/events","html_url":"https://github.com/Cotya/magento-composer-installer/issues/3","id":64352960,"number":3,"title":"3.0? Broke my site. Why are you changing Mage.php?","user":{"login":"tim-reynolds","id":1260709,"avatar_url":"https://avatars.githubusercontent.com/u/1260709?v=3","gravatar_id":"","url":"https://api.github.com/users/tim-reynolds","html_url":"https://github.com/tim-reynolds","followers_url":"https://api.github.com/users/tim-reynolds/followers","following_url":"https://api.github.com/users/tim-reynolds/following{/other_user}","gists_url":"https://api.github.com/users/tim-reynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/tim-reynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim-reynolds/subscriptions","organizations_url":"https://api.github.com/users/tim-reynolds/orgs","repos_url":"https://api.github.com/users/tim-reynolds/repos","events_url":"https://api.github.com/users/tim-reynolds/events{/privacy}","received_events_url":"https://api.github.com/users/tim-reynolds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-25T19:28:20Z","updated_at":"2015-03-25T21:51:58Z","closed_at":null,"body":"So, like a fool, I had \"*\" in my composer.json file for a module. Today when I went to push some changes out my site broke. The installer failed. \r\n\r\nThen when I went and fixed the composer.json to specify the exact version I wanted (2.1.1) I found my site still didn't work. \r\n\r\nThe issue was this code rewriting (incorrectly) the Mage.php file, throwing in all these bootstrap files that weren't working. \r\n\r\nPHP Fatal error:  Class 'MagentoHackathon\\Composer\\Magento\\ModmanParser' not found in /var/www/vendor/magento-hackathon/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Installer/MagentoInstallerAbstract.php on li                                                                                                 ne 543\r\n\r\nFatal error: Class 'MagentoHackathon\\Composer\\Magento\\ModmanParser' not found in                                                                                                  /var/www/vendor/magento-hackathon/magento-composer-installer/src/Mag                                                                                                 entoHackathon/Composer/Magento/Installer/MagentoInstallerAbstract.php on line 543\r\n\r\n\r\nThe error I was getting when trying to run the site is: \r\nPHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /var/www/app/Mage.php on line 2\r\n\r\nThe encoding for those files looked wrong. \r\n\r\nSo what is going on here? Why did this suddenly change today? I did a few deploys this morning without any issues, then suddenly you're changing core Magento files?"},"comment":{"url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/comments/86229334","html_url":"https://github.com/Cotya/magento-composer-installer/issues/3#issuecomment-86229334","issue_url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/3","id":86229334,"user":{"login":"danemacmillan","id":4390491,"avatar_url":"https://avatars.githubusercontent.com/u/4390491?v=3","gravatar_id":"","url":"https://api.github.com/users/danemacmillan","html_url":"https://github.com/danemacmillan","followers_url":"https://api.github.com/users/danemacmillan/followers","following_url":"https://api.github.com/users/danemacmillan/following{/other_user}","gists_url":"https://api.github.com/users/danemacmillan/gists{/gist_id}","starred_url":"https://api.github.com/users/danemacmillan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danemacmillan/subscriptions","organizations_url":"https://api.github.com/users/danemacmillan/orgs","repos_url":"https://api.github.com/users/danemacmillan/repos","events_url":"https://api.github.com/users/danemacmillan/events{/privacy}","received_events_url":"https://api.github.com/users/danemacmillan/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T21:51:58Z","updated_at":"2015-03-25T21:51:58Z","body":"I got the same thing, but fortunately I was testing my build process locally before I ever ran it in production. Here's an excerpt from the logs on my local:\r\n\r\n```\r\n[25-Mar-2015 20:14:04 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:14:04 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:14:04 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:47:44 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:47:44 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:47:44 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:47:46 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:47:46 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:47:46 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:47:47 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:47:47 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:47:47 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:48:06 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:48:06 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:48:06 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:48:06 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:48:06 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:48:06 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:48:07 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:48:07 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:48:07 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:48:07 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:48:07 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:48:07 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:48:07 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:48:07 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:48:07 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:48:07 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:48:07 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:48:07 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:49:01 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:49:01 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:49:01 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:49:11 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:49:11 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:49:11 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:49:12 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:49:12 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:49:12 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:49:30 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:49:30 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:49:30 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:53:21 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:53:21 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:53:21 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:53:22 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:53:22 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:53:22 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:53:22 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:53:22 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:53:22 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:53:23 UTC] PHP Parse error:  syntax error, unexpected ''/bootstrap.php;' (T_ENCAPSED_AND_WHITESPACE) in /vagrant/sites/develop.vagrant.dev/app/Mage.php on line 2\r\n[25-Mar-2015 20:53:23 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:53:23 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:01 UTC] PHP Warning:  require(/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php): failed to open stream: No such file or directory in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:01 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:01 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:01 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:01 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n[25-Mar-2015 20:54:01 UTC] PHP Fatal error:  require(): Failed opening required '/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:01 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:01 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:01 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:01 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n[25-Mar-2015 20:54:02 UTC] PHP Warning:  require(/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php): failed to open stream: No such file or directory in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:02 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:02 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:02 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:02 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n[25-Mar-2015 20:54:02 UTC] PHP Fatal error:  require(): Failed opening required '/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:02 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:02 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:02 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:02 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n[25-Mar-2015 20:54:03 UTC] PHP Warning:  require(/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php): failed to open stream: No such file or directory in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:03 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:03 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:03 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:03 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n[25-Mar-2015 20:54:03 UTC] PHP Fatal error:  require(): Failed opening required '/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:03 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:03 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:03 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:03 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n[25-Mar-2015 20:54:03 UTC] PHP Warning:  require(/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php): failed to open stream: No such file or directory in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:03 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:03 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:03 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:03 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n[25-Mar-2015 20:54:03 UTC] PHP Fatal error:  require(): Failed opening required '/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:03 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:03 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:03 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:03 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n[25-Mar-2015 20:54:03 UTC] PHP Warning:  require(/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php): failed to open stream: No such file or directory in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:03 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:03 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:03 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:03 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n[25-Mar-2015 20:54:03 UTC] PHP Fatal error:  require(): Failed opening required '/vagrant/sites/develop.vagrant.dev/appMage.bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /vagrant/sites/develop.vagrant.dev/app/bootstrap.php on line 2\r\n[25-Mar-2015 20:54:03 UTC] PHP Stack trace:\r\n[25-Mar-2015 20:54:03 UTC] PHP   1. {main}() /vagrant/sites/develop.vagrant.dev/index.php:0\r\n[25-Mar-2015 20:54:03 UTC] PHP   2. require_once() /vagrant/sites/develop.vagrant.dev/index.php:69\r\n[25-Mar-2015 20:54:03 UTC] PHP   3. require() /vagrant/sites/develop.vagrant.dev/app/Mage.php:2\r\n```\r\nSome things to note:\r\n- `Mage.bootstrap.php` has no `<?php` tags.\r\n- `bootstrap.php`'s path is incorrect. It's missing a forward slash, which without, results in the errors above."}}