Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual Install #1

Open
sarahk opened this issue May 17, 2018 · 3 comments
Open

Manual Install #1

sarahk opened this issue May 17, 2018 · 3 comments

Comments

@sarahk
Copy link

sarahk commented May 17, 2018

For those of us stuck in the dark ages...

I've updated core and bootstrap

I've got your file in app/Vendor

I've got the bugsnag files in app/Vendor/bugsnag

but I'm getting errors like this:

Fatal error: Class 'Bugsnag\Client' not found in /var/www/www.mysite.com/public_html/subfolder/app/Vendor/BugsnagErrorHandler.php on line 40

Fatal error: Class 'Bugsnag\Client' not found in /var/www/www.mysite.com/public_html/subfolder/app/Vendor/BugsnagErrorHandler.php on line 57

Line 40 is:
$bugsnag = Bugsnag\Client::make(Configure::read('bugsnag_api_key'));

What else should I be doing?

@garbit
Copy link
Owner

garbit commented May 17, 2018

Hey Sarah,

Could you confirm if you have an app/vendors folder (lowercase) with the BugsnagErrorHandler.php file inside?

From your include error it looks like you've placed the BugsnagErrorHandler.php file in your Vendors folder.

Fatal error: Class 'Bugsnag\Client' not found in /var/www/www.mysite.com/public_html/subfolder/app/**Vendor**/BugsnagErrorHandler.php on line 40

It looks like you've edited the bootstrap.php to use the Vendors folder. Your bootstrap file needs to look like:

// Bugsnag API
Configure::write('bugsnag_api_key', YOUR_BUGSNAG_API_KEY_HERE);
// Add these two lines at the bottom of your bootstrap.php file
App::import('Vendor', array('file' => 'autoload'));
App::import('vendors', array('file' => 'BugsnagErrorHandler'));

Andy

@sarahk
Copy link
Author

sarahk commented May 17, 2018

Hi

I didn't pick up on the lowercase vendors, I've changed that to Vendor.

Looking through the composer.json file I can see that it has lots of dependancies too. Off to sort those out.

@sarahk
Copy link
Author

sarahk commented May 17, 2018

I've got all the dependancies in there now, but getting the same errors

Fatal error: Class 'Bugsnag\Client' not found in /var/www/wwwmysite.com/public_html/subfolder/vendors/BugsnagErrorHandler.php on line 40

Fatal error: Class 'Bugsnag\Client' not found in /var/www/wwwmysite.com/public_html/subfolder/vendors/BugsnagErrorHandler.php on line 57

I used php-download.com instead of composer, made my life easier. I put the other packages into vendors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants