snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

php artisan migrate error

Open gertje1978 opened this issue 8 years ago • 6 comments

I upgrade my version from 3.5 to 4.19 Since I ran my last commands 'php artisan migrate' I get errors:

C:\xampp\htdocs\snipe-it>php artisan migrate PHP Fatal error: Uncaught Error: Class 'Log' not found in C:\xampp\htdocs
-it\app\Exceptions\Handler.php:39 Stack trace: #0 C:\xampp\htdocs\snipe-it\vendor\laravel\framework\src\Illuminate\Foundat onsole\Kernel.php(320): App\Exceptions\Handler->report(Object(Symfony\Compo Debug\Exception\FatalThrowableError)) #1 C:\xampp\htdocs\snipe-it\vendor\laravel\framework\src\Illuminate\Foundat onsole\Kernel.php(132): Illuminate\Foundation\Console\Kernel->reportExcepti ject(Symfony\Component\Debug\Exception\FatalThrowableError)) #2 C:\xampp\htdocs\snipe-it\artisan(35): Illuminate\Foundation\Console\Kern andle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Com t\Console\Output\ConsoleOutput)) #3 {main} thrown in C:\xampp\htdocs\snipe-it\app\Exceptions\Handler.php on line 39

Fatal error: Uncaught Error: Class 'Log' not found in C:\xampp\htdocs\snipe pp\Exceptions\Handler.php:39 Stack trace: #0 C:\xampp\htdocs\snipe-it\vendor\laravel\framework\src\Illuminate\Foundat onsole\Kernel.php(320): App\Exceptions\Handler->report(Object(Symfony\Compo Debug\Exception\FatalThrowableError)) #1 C:\xampp\htdocs\snipe-it\vendor\laravel\framework\src\Illuminate\Foundat onsole\Kernel.php(132): Illuminate\Foundation\Console\Kernel->reportExcepti ject(Symfony\Component\Debug\Exception\FatalThrowableError)) #2 C:\xampp\htdocs\snipe-it\artisan(35): Illuminate\Foundation\Console\Kern andle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Com t\Console\Output\ConsoleOutput)) #3 {main} thrown in C:\xampp\htdocs\snipe-it\app\Exceptions\Handler.php on line 39

Also in my browser, I have almost the same error:

Fatal error: Uncaught Error: Class 'Log' not found in C:\xampp\htdocs\snipe-it\app\Exceptions\Handler.php:39 Stack trace: #0 C:\xampp\htdocs\snipe-it\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(314): App\Exceptions\Handler->report(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 C:\xampp\htdocs\snipe-it\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(122): Illuminate\Foundation\Http\Kernel->reportException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #2 C:\xampp\htdocs\snipe-it\public\index.php(58): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #3 {main} thrown in C:\xampp\htdocs\snipe-it\app\Exceptions\Handler.php on line 39

Thanks for helping!

gertje1978 avatar Jan 12 '18 09:01 gertje1978

try do these..

delete the files (not the directory) in bootstrap/cache run composer dump-autoload remove config/aws.php if it exists

imie avatar Jan 16 '18 07:01 imie

See the common issues.

snipe avatar Jan 16 '18 07:01 snipe

Thanks for your answer...The big fault was, that I forgot the use the new ENV file! Now it's up and running! Thanks for your help

gertje1978 avatar Jan 16 '18 08:01 gertje1978

Glad you got it sorted!

snipe avatar Jan 16 '18 08:01 snipe

Please Help $php artisan migrate PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in C:\xampp\htdocs\laravelapp
openlaravel\bootstrap\app.php:14 Stack trace: #0 C:\xampp\htdocs\laravelapp\openlaravel\artisan(18): require_once() #1 {main} thrown in C:\xampp\htdocs\laravelapp\openlaravel\bootstrap\app.php on line 14

Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in C:\xampp\htdocs\laravelapp\openl aravel\bootstrap\app.php:14 Stack trace: #0 C:\xampp\htdocs\laravelapp\openlaravel\artisan(18): require_once() #1 {main} thrown in C:\xampp\htdocs\laravelapp\openlaravel\bootstrap\app.php on line 14

arkarkyaw88 avatar Jun 23 '18 07:06 arkarkyaw88

Hi there - this issue is closed and doesn't seem directly related to your issue. Please create a new issue and fill in all of the questions in the new issue form. (When you reply to old, closed threads, it sends an email notification to everyone who ever participated in it, which can be pretty annoying to have happen on a thread that's been resolved for a while.)

snipe avatar Jun 23 '18 08:06 snipe