nova-framework / framework

Demo application using Nova - this is an extensive playground, use "app" repository for real applications.
http://novaframework.com/
MIT License
418 stars 210 forks source link

Getting 500 Error #2061

Closed flrrrhoffpauir closed 6 years ago

flrrrhoffpauir commented 6 years ago

I have a site that has been running on the nova framework 3.78.20 for a while just fine. I keep all of the updates in github, and today I had to download a zip from an older commit and now after running composer install I get a 500 error in chrome and I see this error in the php error logs:

[27-Mar-2018 15:25:09 America/Chicago] PHP Fatal error:  Uncaught Nova\Container\BindingResolutionException: Target [Nova\Foundation\Contracts\ExceptionHandlerInterface] is not instantiable. in /Applications/MAMP/htdocs/fb_test/fb/vendor/nova-framework/system/src/Container/Container.php:626
Stack trace:
#0 /Applications/MAMP/htdocs/fb_test/fb/vendor/nova-framework/system/src/Container/Container.php(548): Nova\Container\Container->build('Nova\\Foundation...', Array)
#1 /Applications/MAMP/htdocs/fb_test/fb/vendor/nova-framework/system/src/Foundation/Application.php(459): Nova\Container\Container->make('Nova\\Foundation...', Array)
#2 /Applications/MAMP/htdocs/fb_test/fb/vendor/nova-framework/system/src/Exception/Handler.php(190): Nova\Foundation\Application->make('Nova\\Foundation...')
#3 /Applications/MAMP/htdocs/fb_test/fb/vendor/nova-framework/system/src/Exception/Handler.php(100): Nova\Exception\Handler->getExceptionHandler()
#4 /Applications/MAMP/htdocs/fb_test/fb/vendor/nova-framework/system/src/Exception/Handler.php(117): Nova\Exception\Handler->handleExceptio in /Applications/MAMP/htdocs/fb_test/fb/vendor/nova-framework/system/src/Container/Container.php on line 626
LuckyCyborg commented 6 years ago

Most likely the error happens because the composer got an Kernel from the current 4.0.x series.

You have to stuck in a compatible kernel (system), editing in composer.json like

"nova-framework/system": "3.78.*",

instead of

"nova-framework/system": "^3.0",

Anyway, bear in mind that the application and the kernel should match always.

flrrrhoffpauir commented 6 years ago

Ah yes, that did the trick. Thank you!