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

Fatal error: Uncaught Error: Class 'PDO' not found in /var/www/spotweb/lib/dbeng/dbeng_pdo_mysql.php #14

Closed
fryelectro opened this issue Apr 9, 2019 · 9 comments

Comments

@fryelectro
Copy link

Hi,

When creating the container, all works but after stopping and starting the docker container, I get the following error:

Fatal error: Uncaught Error: Class 'PDO' not found in /var/www/spotweb/lib/dbeng/dbeng_pdo_mysql.php:25 Stack trace: #0 /var/www/spotweb/lib/Bootstrap.php(117): dbeng_pdo_mysql->connect(‘x.x.x.x’, 'spotweb', ‘xxxxx’, 'spotweb') #1 /var/www/spotweb/lib/Bootstrap.php(34): Bootstrap->getDaoFactory() #2 /var/www/spotweb/index.php(18): Bootstrap->boot() #3 {main} thrown in /var/www/spotweb/lib/dbeng/dbeng_pdo_mysql.php on line 25

anyone knows what causes this?

@jgeusebroek
Copy link
Owner

Hi, I cannot reproduce this problem.

Can you have look what image ID you are using?
docker inspect --format='{{.Image}}' spotweb

@fryelectro
Copy link
Author

fryelectro commented Apr 9, 2019 via email

@jgeusebroek
Copy link
Owner

That is in fact the latest image. Are you overriding the php.ini, or any other custom settings / custom volume mounts?

@fryelectro
Copy link
Author

fryelectro commented Apr 10, 2019 via email

@jgeusebroek
Copy link
Owner

I don't think it should matter, but what docker version are you using, and what is the host operating system?

Sorry, I don't have a solution for you. I tried replicating the issue but I simply can't.

@fryelectro
Copy link
Author

fryelectro commented Apr 10, 2019 via email

@jgeusebroek
Copy link
Owner

It's missing the PDO PHP extention. It is however installed in the docker image.

Try running: docker exec -ti spotweb php -m | grep -i pdo. It should say:

PDO
pdo_mysql
pdo_pgsql

@fryelectro
Copy link
Author

fryelectro commented Apr 15, 2019 via email

@jgeusebroek
Copy link
Owner

Sorry, I am going to close this as it's very specific to your environment. I cannot reproduce.

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