Framework: Laravel 5.2: Class log does not exist in /vendor/laravel/framework/src/Illuminate/Container/Container.php:734

Created on 13 Jun 2019  路  3Comments  路  Source: laravel/framework

  • Laravel Version: 5.2
  • PHP Version: 7.0
  • Database Driver & Version: Mysql

Description:

I had to clear config and cache, I ran into the following exception :

PHP Fatal error: Uncaught ReflectionException: Class log does not exist in html/project/bootstrap/cache/compiled.php:1355

I removed bootstrap/compiled.php and ran php artisan clear-compiled, Then the exception got changed a little bit.

Class log does not exist in /html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php:734

Steps i took to solve it :

  • Checked env for spaces and syntax errors, Which had a blank space and i removed it, but still my php artisan commands are not working.

  • Ran composer update | Still not working

  • Some people associate the error with mbstring and php-mysql extensions which i both have.

  • Tried composer dumpautoload

What am i missing, How should be done ?

Most helpful comment

In the vast majority of cases, the cause of this error is syntax errors in config files.

All 3 comments

Hey there,

Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? We'll help you out and re-open this issue if so.

Thanks!

In the vast majority of cases, the cause of this error is syntax errors in config files.

Thanks @devcircus, actually helped.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PhiloNL picture PhiloNL  路  3Comments

JamborJan picture JamborJan  路  3Comments

SachinAgarwal1337 picture SachinAgarwal1337  路  3Comments

iivanov2 picture iivanov2  路  3Comments

RomainSauvaire picture RomainSauvaire  路  3Comments