PHP Warning: PHP Startup: PDO: Unable to initialize module

My error logs are filling up with the data shown underneath. I updated to 1.4.2-RC1 to see if that would help - during the update I given the following warnings:

PHP PDO_MySQL support [is not installed]
PHP PDO_SQLite support [is not installed]

Just checking because I suspect it's a problem at my hosting provider rather than Zenphoto. They updated PHP in the last few weeks (not sure exactly when)

Zenphoto version 1.4.2-RC1 [8674] (Official Build)
Current locale setting: en_US.UTF8
PHP version: 5.3.8
Graphics support: PHP GD library bundled (2.0.34 compatible)
PHP memory limit: 96M (Note: Your server might allocate less!)
MySql version: 5.1.56

Mike

[30-Dec-2011 21:58:32] PHP Warning: PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
[30-Dec-2011 21:58:32] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
[30-Dec-2011 21:58:32] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: undefined symbol: php_set_error_handling in Unknown on line 0
[30-Dec-2011 21:58:32] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/lib/libmysqlclient.so.16: version `libmysqlclient_15' not found (required by /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so) in Unknown on line 0
[30-Dec-2011 21:58:32] PHP Warning: PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0

Comments

  • Yes, this is an issue with the configuration of PHP on your server. Zenphoto does not require either the `pdo_mysql` or the `pdo-sqlite` modules (but will use them if present and if you choose to activate them in setup.)

    But as Setup has said the support is not installed, we can presume that the site has botched the PHP configuration/installation.

    So far as I know, Zenphoto would not be causing those messages as they appear to be happening when PHP initializes itself.
  • Indeed it was a problem on my server.

    "Thank you for writing in!

    We could see that PDO extension was not properly configured in your php.ini file. We have corrected this issue for you. You can verify the same from the following URL:"

    And problem now solved.

    Thank you.

    Mike
Sign In or Register to comment.