etsy / 411

An Alert Management Web Application
https://demo.fouroneone.io
MIT License
969 stars 112 forks source link

Errors upgrading from 1.0.1 to 1.1.0 #78

Closed profilernz closed 7 years ago

profilernz commented 7 years ago

bin/migration.php except [NONE] Errno 2: "require(/var/www/411/vendor/autoload.php): failed to open stream: No such file or directory" at [/var/www/411/phplib/411bootstrap.php:57] 0:[require() called at [/var/www/411/phplib/411bootstrap.php:57]] 1:[require_once() called at [/var/www/411/bin/migration.php:7]] PHP Fatal error: require(): Failed opening required '/var/www/411/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/411/phplib/411bootstrap.php on line 57

profilernz commented 7 years ago

/usr/local/bin/composer update Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1

PS: Setup.md lists PHP 5.5 as the minimum version...

profilernz commented 7 years ago

After upgrading to PHP 7:

/usr/local/bin/composer update --no-dev Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1

kiwiz commented 7 years ago

Whoops, I forgot to update the upgrade docs. PHP 5.5 is still supported. Just run composer update --no-dev --optimize-autoloader and you should be good to go. (phan is a dev dependency)

profilernz commented 7 years ago

I did use --no-dev as per my 3rd post, and was still getting errors... so: composer install --no-dev --optimize-autoloader works fine when you are first installing but then: composer update --no-dev --optimize-autoloader doesn't: Your requirements could not be resolved to an installable set of packages. Problem 1

kiwiz commented 7 years ago

I think I misunderstood what install and update do. I think composer install should be sufficient to get all dependencies?

profilernz commented 7 years ago

Yeah, for my fresh PHP 7 setup, "install" worked fine. It's just that I noticed that "update" wouldn't work on PHP 5.6, and then that it wouldn't also work on 7.0 post-upgrade. I running 411 with no problems, just thought I'd highlight this issue.

kiwiz commented 7 years ago

Coolbeans. Thanks for the note and apologies for the trouble. Update the docs and will close this out!