Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\PackageManifest' not found #3

Closed
mephiroth opened this issue Nov 22, 2017 · 4 comments

Comments

@mephiroth
Copy link

when i run php composer.phar install it shows that as below:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files

php artisan clear-compiled
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\PackageManifest' not found in /home/work/Code/adserver-master/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:181
Stack trace:
#0 /home/work/Code/adserver-master/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(151): Illuminate\Foundation\Application->registerBaseBindings()
#1 /home/work/Code/adserver-master/bootstrap/app.php(15): Illuminate\Foundation\Application->__construct('/home/wor...')
#2 /home/work/Code/adserver-master/artisan(18): require_once('/home/wor...')
#3 {main}
thrown in /home/work/Code/adserver-master/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 181
Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255

@andytriboletti
Copy link
Member

andytriboletti commented Nov 22, 2017

When I run this command, I don't get an error:

vagrant@homestead:~/Code/adserver$ php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
> php artisan clear-compiled
The compiled services & packages files have been removed.
> php artisan optimize

I Googled this error and found this possible solution: https://stackoverflow.com/a/30904936

Can you let me know if that works?

@rafailml
Copy link

What works for me was:

  1. Deleting composer.lock and vendor dir
  2. composer update --no-scripts

@andytriboletti
Copy link
Member

@mephiroth Did this fix your issue?

@andytriboletti
Copy link
Member

There is now a setup.sh script that fixes this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants