-
Notifications
You must be signed in to change notification settings - Fork 28
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
Comments
Hi, I cannot reproduce this problem. Can you have look what image ID you are using? |
That is :
docker inspect --format='{{.Image}}' spotweb
sha256:64b3341137d6be2c9577566ee66b0febdef06eb8f37d71de7362c546b255e19d
… On 9 Apr 2019, at 16:49, Jeroen Geusebroek ***@***.***> wrote:
Hi, I cannot reproduce this problem.
Can you have look what image ID you are using?
docker inspect --format='{{.Image}}' spotweb
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#14 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABxsqig9oCuQxdjGzjdFujajWZy0ozOqks5vfKh7gaJpZM4ckLkz>.
|
That is in fact the latest image. Are you overriding the php.ini, or any other custom settings / custom volume mounts? |
This is how I start the image. The only custom mount is the /var/wwww/spotweb/cache but I had the problem already before this.
docker run --restart=always -d -p 8011:80 \
--hostname=spotweb \
--name=spotweb \
-v /share/Container/appdata/spotweb/config:/config:rw \
-v /share/Container/appdata/spotweb/cache:/var/www/spotweb/cache:rw \
-e TZ='Europe/Brussels' \
-e SPOTWEB_DB_TYPE=pdo_mysql \
-e SPOTWEB_DB_HOST=x.x.x.x \
-e SPOTWEB_DB_NAME=spotweb \
-e SPOTWEB_DB_USER=spotweb \
-e SPOTWEB_DB_PASS=xxxxx \
-e 'SPOTWEB_CRON_RETRIEVE=*/15 * * * *' \
-e 'SPOTWEB_CRON_CACHE_CHECK=10 */1 * * *' \
jgeusebroek/spotweb
… On 10 Apr 2019, at 07:41, Jeroen Geusebroek ***@***.***> wrote:
That is in fact the latest image. Are you overriding the php.ini, or any other custom settings / custom volume mounts?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#14 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABxsqnnwXQ0QawtFFYs_n_z2sGs9AUcuks5vfXlwgaJpZM4ckLkz>.
|
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. |
HI,
I understand. Is there a way to check what this error is causing? What does it mean, not being a php/mysql specialist.
# docker version
Client:
Version: 17.09.1-ce
API version: 1.32
Go version: go1.8.3
Git commit: 0a5102e
Built: Wed Nov 28 10:48:56 2018
OS/Arch: linux/amd64
Server:
Version: 17.09.1-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: 0a5102e
Built: Wed Nov 28 10:48:56 2018
OS/Arch: linux/amd64
Experimental: false
OS = Qnap firmware 4.3.6.0895 with Container station 1.9.3590
thx
… On 10 Apr 2019, at 10:20, Jeroen Geusebroek ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#14 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABxsqky6jA3DiXhjCgaB3oG6Og1tLGsVks5vfZ7BgaJpZM4ckLkz>.
|
It's missing the PDO PHP extention. It is however installed in the docker image. Try running: PDO |
Indeed, when I run this, no pdo modules found:
[~] # docker exec -ti spotweb php -m | grep -i pdo
[~] #
Any idea how to edit the container to re-add these? Since you can’t reproduce this issue, it must has to be related to the fact I use the container on te qnap docker implementation.
However, I add the container using the following command:
docker run --restart=always -d -p 8011:80 \
--hostname=spotweb \
--name=spotweb \
-v /share/Container/appdata/spotweb/config:/config:rw \
-v /share/Container/appdata/spotweb/cache:/var/www/spotweb/cache:rw \
-e TZ='Europe/Brussels' \
-e SPOTWEB_DB_TYPE=pdo_mysql \
-e SPOTWEB_DB_HOST=xxxx \
-e SPOTWEB_DB_NAME=spotweb \
-e SPOTWEB_DB_USER=spotweb \
-e SPOTWEB_DB_PASS=xxx \
-e 'SPOTWEB_CRON_RETRIEVE=*/15 * * * *' \
-e 'SPOTWEB_CRON_CACHE_CHECK=10 */1 * * *' \
jgeusebroek/spotweb
… On 10 Apr 2019, at 22:15, Jeroen Geusebroek ***@***.***> wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#14 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABxsqmc-pFHrt-NMsOL3lG0miYUcCMgEks5vfkZugaJpZM4ckLkz>.
|
Sorry, I am going to close this as it's very specific to your environment. I cannot reproduce. |
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?
The text was updated successfully, but these errors were encountered: