0
I have the following error, after running a command to install a versioned project.
Script php Artisan clear-Compiled Handling the pre-update-cmd Event returned with an error
[Runtimeexception]
Error Output: PHP Fatal error: Class 'Illuminate Foundation Application' n
ot found in [PASTA_DO_PROJETO]/bootstrap/app.php on line
14
Composer file:
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "laravel/framework": "5.0.*", "pagarme/pagarme-php": "dev-master", "guzzlehttp/guzzle": "~5.0", "lucadegasperi/oauth2-server-laravel": "~4.0" }, "require-dev": { "phpunit/phpunit": "~4.0", "phpspec/phpspec": "~2.1", "barryvdh/laravel-debugbar": "^2.0" }, "autoload": { "classmap": [ "database" ], "psr-4": { "App\\": "app/" } }, "autoload-dev": { "classmap": [ "tests/TestCase.php" ] }, "scripts": { "post-install-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "post-update-cmd": [ "php artisan optimize" ], "pre-update-cmd": [ "php artisan clear-compiled" ], "post-create-project-cmd": [ "php -r \"copy('.env.example', '.env');\"", "php artisan key:generate" ] }, "config": { "preferred-install": "dist" } }
Try to make a Dump-autoload and try again.
– Evert
I’ve done it, I’ve also run Composer install --no-scripts and nothing yet
– Fbor
Remove vendor folder, check your php app. in /bootstrap, try Dump-autoload and Composer install again and see if it goes back to normal... because this fault is in the app.php file that starts the application it just reads the Application of Laravel.
– Evert
I did as recommended, <pre> Laravel/framework v5.0.9 requires ext-mcrypt * -></pre>, would have to enable php mycrpt but it is already enabled I have other projects with Laravel and they work perfectly
– Fbor
At least you found the Application. Now it’s mcrypt... see if your . env already has a key to access the system.
– Evert
It does not let me create the key, nor run any Artisan PHP Fatal error: Class 'Illuminate Foundation Application' not found in /Users/emiddev/Code/Farmin-payment/bootstrap/app.php on line 14
– Fbor
Same mistake... =( Sorry I can’t help... really don’t know what to suggest....
– Evert
'Cause I’ve already reviewed the internet and I can’t find anything, I’ve even installed it on another machine and the same mistake happens
– Fbor