Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ssuhat's avatar

Bugsnag Uncaught ReflectionException

Hi,

I tried to install my project using forge. When deploy for first time. It always return me

PHP Fatal error: Uncaught ReflectionException: Class bugsnag does not exist in /home/forge/lookplicate.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:749

I've read few solution on github it says need to change permission on vendor folder https://github.com/bugsnag/bugsnag-laravel/issues/41

I can't install it so can't change the permission folder.

Any solution?

0 likes
2 replies
ejdelmonico's avatar

I use BugSnag on several projects and haven't noticed any issues. Can you post the full stack trace from the BugSnag site? Have you published the bugsnag file to config directory?

ssuhat's avatar

@ejdelmonico I'm using forge when composer install. But return an error like above, so I don't have a chance to try it out.

Right now I'm switching to Sentry, install properly on server.

Please or to participate in this conversation.