GithubHelp home page GithubHelp logo

Comments (6)

solarsilk avatar solarsilk commented on June 5, 2024

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.

solarsilk avatar solarsilk commented on June 5, 2024

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.

xljones avatar xljones commented on June 5, 2024

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.

solarsilk avatar solarsilk commented on June 5, 2024

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.

xljones avatar xljones commented on June 5, 2024

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.

solarsilk avatar solarsilk commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.