-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laravel 5.6 causes " Call to undefined method Monolog\Logger::listen()" #6
Comments
Getting the same with this. |
I'm not able to reproduce it. Could anyone give me a stack trace of this error? |
Unfortunately that's the extent of the error it gives me (1 line stack trace). I'll try digging in a little more over the next day or so. |
@antonioribeiro: I experienced the same error, and managed to locate the error to something with debugbar and this plugin. I can reproduce the error on a completely new Laravel 5.6 installation with debugbar and this repo.
then install debugbar:
The application should still work. Now install this package using:
if you go to the frontpage
I hope this helps debugging. EDIT: I would like to draw your attention to the answer by @kylescousin: barryvdh/laravel-debugbar#812 (comment) From the 5.6 upgrade guide https://laravel.com/docs/5.6/upgrade: |
Yeah this package causes the error if installed with the debug bar. Removing either package seems to resolve it. |
Anyone had success resolving this? |
It's almost certainly just Laravel Debugbar – see my quick fix here. |
Steps to reproduce on a clean Laravel install.
In AppServiceProvider::boot() add dd([
'LogManager' => get_class($this->app['log']),
'Driver' => get_class($this->app['log']->driver())
]); Run
Install this package (or the standard one) Run
I can't figure out what's causing it but for some reason the log driver gets changed when this package is installed. |
was a fine workaround for me. |
As per #6 (comment) worked fine on local env. However, I'm still getting same error on prd where it's supposed there would be no conflict with
|
Have the same problem as @alariva on production. |
I installed it on Laravel 5.6. It gives "Call to undefined method Monolog\Logger::listen()" error
error on this line
return $this->driver()->$method(...$parameters);
The text was updated successfully, but these errors were encountered: