Have you tried php artisan clear-compiled?
Apr 28, 2017
5
Level 15
Bugsnag error - Class bugsnag.logger does not exist. Only on production
I am getting this error when setting up Bugsnag but only in production:
PHP Fatal error: Uncaught ReflectionException: Class bugsnag.logger does not exist
Stage and local both fine. Can anyone suggest anything?
I have been following advice on various threads including this one but nothing seems to resolve it
I have checked the following:
- My
Bugsnag\BugsnagLaravel\BugsnagServiceProvider::class,is aboveAppServiceProviderprovider in app.php - I've run php artisan config:cache / composer dump autoload / (edit +) php artisan clear-compiled
- My
BUGSNAG_API_KEYis set correctly in config - I have published a config/bugsnag.php file (although that shouldn't matter I'm told)
- Checked my production vendor directory has the same permissions as stage
So yeah .. a bit stumped - and bruised having just collapsed my client's production site twice :-/
EDIT: Both stage and production are Laravel 5.2 / PHP 7.0 / Digital Ocean
Please or to participate in this conversation.