Anyone can help me, I caught the errors in laravel.log like below, it happens every minutes on my local sand box, my local is xampp in windows 7 pro, and I did not set up any schetask on my PC, so it's weird to get this Log writer every minutes. My current Laravel version is 5.5. any comments or idea will be thankful.
=============================== [2020-08-18 13:17:57] Local.ERROR: Call to undefined method Illuminate\Log\Writer::setHandlers() {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to undefined method Illuminate\Log\Writer::setHandlers() at Command line code:1) [stacktrace] #0 [internal function]: VscodeLaravelExtraIntellisenseProvider->boot() #1 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(29): call_user_func_array(Array, Array) #2 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container{closure}() #3 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(App\MatrixApp), Array, Object(Closure)) #4 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Container\Container.php(549): Illuminate\Container\BoundMethod::call(Object(App\MatrixApp), Array, Array, NULL) #5 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(792): Illuminate\Container\Container->call(Array) #6 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(775): Illuminate\Foundation\Application->bootProvider(Object(VscodeLaravelExtraIntellisenseProvider)) #7 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation{closure}(Object(VscodeLaravelExtraIntellisenseProvider), 3) #8 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(776): array_walk(Array, Object(Closure)) #9 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\BootProviders.php(17): Illuminate\Foundation\Application->boot() #10 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(213): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(App\MatrixApp)) #11 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(296): Illuminate\Foundation\Application->bootstrapWith(Array) #12 C:\xampp7\htdocs\matrix5\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(119): Illuminate\Foundation\Console\Kernel->bootstrap() #13 Command line code(1): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 {main} "}
I even not sure where the Command Line Code(1) is. But if I disable the below code in bootstrap/app.php, then the errors is stopped. But it should be commented out, because this part is for CLI. Another thing confused me is same code under Linux system no such errors.
Illuminate\Contracts\Console\Kernel::class,
App\Console\Kernel::class
); ```
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire