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

[Bug] - Fatal error: Uncaught Error: Class "Illuminate\Database\Capsule\Manager" not found #7

Open
richard015ar opened this issue Apr 17, 2024 · 2 comments
Assignees

Comments

@richard015ar
Copy link

richard015ar commented Apr 17, 2024

From one Open Source user:

Hi Steel!

Hope you're well. It was quite a bumpy start, but meanwhile I am working on the H5P rendering which BCCampus would like to see in Pressbooks. I have created a package and hooked it up to some minimal web frontend for demonstration purposes (https://snordian.de/bccampus-poc/)

I'd now want to use this package in Pressbooks, but I cannot get my local copy running despite having run just fine before. Unfortunately, since I myself don't have a paid Slack account, I lost access to your Slack channel after 90 days and now can't ask you there. Hopefully, this is a small issue that you could help me via email as well.

I am running the latest version of lando and pulled the latest version of the pressbooks repository.

When I now fire up 'lando start', then the tests that it runs fail. The local server that is set up seems to have an issue. The tests fails with a 500 HTTP error, and when I open the local start page to check, I am greeted with

Fatal error: Uncaught Error: Class "Illuminate\Database\Capsule\Manager" not found in /app/web/app/plugins/pressbooks/inc/class-serviceprovider.php:88 Stack trace: #0 /app/web/app/plugins/pressbooks/hooks.php(35): Pressbooks\ServiceProvider::init() #1 /app/web/app/plugins/pressbooks/pressbooks.php(114): require('/app/web/app/pl...') #2 /app/web/wp/wp-settings.php(462): include_once('/app/web/app/pl...') #3 /app/web/wp-config.php(9): require_once('/app/web/wp/wp-...') #4 /app/web/wp/wp-load.php(55): require_once('/app/web/wp-con...') #5 /app/web/wp/wp-blog-header.php(13): require_once('/app/web/wp/wp-...') #6 /app/web/index.php(5): require('/app/web/wp/wp-...') #7 {main} thrown in /app/web/app/plugins/pressbooks/inc/class-serviceprovider.php on line 88

Trying lando composer update or lando composer install yields

Fatal error: Uncaught Error: Class "Seld\Signal\SignalHandler" not found in /app/vendor/composer/composer/src/Composer/Console/Application.php:109
Stack trace:
#0 /app/vendor/composer/composer/bin/composer(93): Composer\Console\Application->__construct()
#1 /app/vendor/bin/composer(119): include('/app/vendor/com...')
#2 {main}
thrown in /app/vendor/composer/composer/src/Composer/Console/Application.php on line 109

To me as a PHP tool chain novice, this looks like something is missing that should be installed, but I cannot pinpoint this.

If you have any idea, please let me know. Otherwise I'll just give a clean install another shot.

Best,
Oliver

@richard015ar
Copy link
Author

I was able to install it and make it work, but I could not replicate that experience.
I submitted a PR: #8

@cmurtagh
Copy link
Contributor

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