Error when upgrading to 5.2 - 'Class log does not exist'

Posted 3 years ago by wturrell

I believe I've corrected followed the upgrade instructions, but when I run 'composer update' I get the following (and the same error for any subsequent page views or artisan commands.)

(This is a very basic application that doesn't use auth, ORM, a database etc.)

Any ideas?

Thanks…

> php artisan optimize
PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class log does not exist' in /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:736
Stack trace:
#0 /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php(736): ReflectionClass->__construct('log')
#1 /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('log', Array)
#2 /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('log', Array)
#3 /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php(845): Illuminate\Foundation\Application->make('Psr\\Log\\LoggerI...')
#4 /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php(800): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /home/vagrant in /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 736

Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' in /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 736

ReflectionException: Class log does not exist in /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 736

Call Stack:
    0.0003     226264   1. {main}() /home/vagrant/homestead/rssmaker/artisan:0
    0.1202    2076480   2. Illuminate\Foundation\Console\Kernel->handle() /home/vagrant/homestead/rssmaker/artisan:36
    0.1818    2652720   3. Illuminate\Foundation\Console\Kernel->reportException() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:109
    0.1818    2652768   4. Illuminate\Container\Container->offsetGet() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:250
    0.1818    2652768   5. Illuminate\Foundation\Application->make() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:1168
    0.1818    2652904   6. Illuminate\Container\Container->make() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:674
    0.1818    2653016   7. Illuminate\Container\Container->build() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:631
    0.1818    2653016   8. Illuminate\Container\Container->Illuminate\Container{closure}() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:733
    0.1818    2653064   9. Illuminate\Foundation\Application->make() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:230
    0.1818    2653064  10. Illuminate\Container\Container->make() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:674
    0.1818    2653152  11. Illuminate\Container\Container->build() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:631
    0.1892    2701968  12. Illuminate\Container\Container->getDependencies() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:771
    0.1926    2716056  13. Illuminate\Container\Container->resolveClass() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:800
    0.1926    2716144  14. Illuminate\Foundation\Application->make() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:845
    0.1926    2716280  15. Illuminate\Container\Container->make() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:674
    0.1927    2716360  16. Illuminate\Container\Container->build() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:631
    0.1927    2716576  17. ReflectionClass->__construct() /home/vagrant/homestead/rssmaker/vendor/laravel/framework/src/Illuminate/Container/Container.php:736

Script php artisan optimize handling the post-update-cmd event returned with an error

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.