Comments (5)
@Jaspur which version of Laravel are you using? Are you loading the BugsnagLaravelServiceProvider?
from bugsnag-laravel.
I get this error as well
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class bugsnag does not exist' in /var/www/staging/foobar/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:776
Stack trace:
#0 /var/www/staging/foobar/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): ReflectionClass->__construct('bugsnag')
#1 /var/www/staging/foobar/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(656): Illuminate\\Container\\Container->build('bugsnag', Array)
#2 /var/www/staging/foobar/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(613): Illuminate\\Container\\Container->make('bugsnag', Array)
#3 /var/www/staging/foobar/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(1231): Illuminate\\Foundation\\Application->make('bugsnag')
#4 /var/www/staging/foobar/laravel/vendor/bugsnag/bugsnag-laravel/src/Bugsnag/BugsnagLaravel/BugsnagExceptionHandler.php(25): Illuminate\\Container\\Container->offsetGet('bugsnag')
#5 /var/www/staging/foobar in /var/www/staging/foobar/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 776
I am using Laravel 5.0.16, I am loading the service provider:
'Bugsnag\BugsnagLaravel\BugsnagLaravelServiceProvider',
And alias:
'Bugsnag' => 'Bugsnag\BugsnagLaravel\BugsnagFacade',
I resolved it by making the vendor folder writable by the web server, but I don't get why that should be necessary.
from bugsnag-laravel.
So I did a little bit more testing, I put the permissions on the vendor folder back (not writable by the web-server). No errors until I did a composer update
, which did not update any packages but it did generate autoload files and optimized class loader.
Update:
Okey I found the problem... My /vendor
folder was not writable, so when I did composer update
the services.json
file was deleted and the system did not have permissions to create a new one.
from bugsnag-laravel.
Glad you solved it (and thanks for letting us know how @HebronNor)!
from bugsnag-laravel.
I'm having the exact same error when running in Google app engine. They require you to run composer update from your environment and then deploying to appEngine. The app engine sandbox makes it so you can't write do disk. IS there a workaround for this? Why does it need to be able to write to disk if its already been composed?
t
from bugsnag-laravel.
Related Issues (20)
- 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
- Unable to create configured logger HOT 6
- 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.
- Support for Laravel 11's Context HOT 1
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.