Comments (6)
I believe it's fixed. I tried removing bugsnag and noticed an error: Fatal error: Uncaught ReflectionException: Class "config" does not exist in xxx/src/Illuminate/Container/Container.php:877
. Looked into that and ended up doing php artisan config:cache
which writes the bootstrap/cache/config.php
file. The error went away.
Seems like bugsnag needs that cached config in order to work properly. I never had that issue before. Maybe it's a change in the package??
from bugsnag-laravel.
One more thing: i did a php artisan vendor:publish
and published the bugsnag config file. This also seems to resolve the issue and removes the need to do a config:cache
.
from bugsnag-laravel.
Hey @solarsilk, glad to hear the issue is resolved! For additional config of Bugsnag other than just setting the API key, I would have expected php artisan vendor:publish
to have been run in any case prior to configuration being made during the install. The published config file should then be edited.
from bugsnag-laravel.
Thanks @xander-jones . The installation instructions say "If you’d like to configure Bugsnag further, create and edit" which implies it's optional. Are you saying that publishing the config for this package is a requirement? From my experience above, it seems like it is.
from bugsnag-laravel.
Hey @solarsilk, sorry I wasn't clear whether you were using environment variables to set your Bugsnag configuration, or using the config/bugsnag.php
config file. You don't need to use the config file. But, if you're using environment variables and have previously cached your environment variables, you'll need to keep updating the cache every time you make changes to the .env
file.
Laravel don't suggest that you cache environment variables in a local dev environment, so might be worth running php artisan cache:clear && php artisan config:clear
if you want to continue using environment variables without needing to run php artisan config:cache
each time something changes, or switch to using the configuration file method instead.
from bugsnag-laravel.
thanks @xander-jones I cleared everything and published the config/bugsnag.php
and I think everything is good now. Thanks.
from bugsnag-laravel.
Related Issues (20)
- Session tracker throttling not working with some cache drivers (eg. Redis) HOT 3
- Prepare for Laravel 9 support HOT 5
- Ignore Exceptions in Laravel HOT 2
- Fails composer install for Laravel 9 HOT 2
- Laravel service provider: config is null HOT 5
- Updating minor version HOT 1
- setMetaData doesn't clear between horizon jobs HOT 2
- PHP Fatal error: Declaration of Bugsnag\PsrLogger\BugsnagLogger::log HOT 4
- Vulnerable versions of Akaunting and Bookstack packages are used HOT 2
- Bugsnag Shows js stack trace and php error codes but no php stacktrace. HOT 2
- Delay session delivery to "after the response is sent" HOT 1
- Error with PHP8.1, Laravel 9.x HOT 2
- laravel 10 compatibility HOT 2
- Update to Laravel 10 HOT 1
- Integrate with Pennant feature flags HOT 1
- [OomBootstrapper] BindingResolutionException: Target class [bugsnag] does not exist. HOT 3
- Ability to cancel error notifications before they are sent to Bugsnag HOT 1
- How to set app version automatically? HOT 4
- Exceptions in failed Jobs running in queue worker aren't reported to bugsnag. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugsnag-laravel.