PHP Warings in Error Log [Pease Help]


(dseawel) #1

I just opened my error log and these two errors have been constantly writing to the log for the past 30 days every few seconds:

[09-Apr-2009 12:53:46] PHP Warning: Module ‘PDO’ already loaded in Unknown on line 0
[09-Apr-2009 12:53:46] PHP Warning: Module ‘pdo_mysql’ already loaded in Unknown on line 0
[09-Apr-2009 12:53:55] PHP Warning: Module ‘PDO’ already loaded in Unknown on line 0
[09-Apr-2009 12:53:55] PHP Warning: Module ‘pdo_mysql’ already loaded in Unknown on line 0
[09-Apr-2009 12:53:56] PHP Warning: Module ‘PDO’ already loaded in Unknown on line 0
[09-Apr-2009 12:53:56] PHP Warning: Module ‘pdo_mysql’ already loaded in Unknown on line 0

How can I stop this from happening?


(xsir317) #2

i think ,you should check your php.ini and search this:
extension=php_pdo_mysql.dll

and this

extension=php_pdo.dll

these lines should in the php.ini and appears only once.


(dseawel) #3

[quote=xsir317 @ Apr 10 2009, 02:47 AM]i think ,you should check your php.ini and search this:
extension=php_pdo_mysql.dll

and this

extension=php_pdo.dll

these lines should in the php.ini and appears only once.[/quote]

I noticed that I did not have ‘extension=php_pdo_mysql.dll’ and ‘extension=php_pdo.dll’ listed within my php.ini file (in my Piwik folder) so I added these to the very bottom of the php.ini file. However, as soon as I did this, I began receiving the following error:

[14-Apr-2009 13:43:50] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdo_mysql.dll’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[14-Apr-2009 13:43:50] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdo.dll’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdo.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[14-Apr-2009 13:43:50] PHP Warning: Module ‘PDO’ already loaded in Unknown on line 0
[14-Apr-2009 13:43:50] PHP Warning: Module ‘pdo_mysql’ already loaded in Unknown on line 0
[14-Apr-2009 13:43:50] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdo_mysql.dll’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[14-Apr-2009 13:43:50] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdo.dll’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdo.dll: cannot open shared object file: No such file or directory in Unknown on line 0

I am new to this level of website support so naturally I am a little confused. Any help would be appreciated.


(dseawel) #4

Okay, I think I am getting closer to my problem. Where should the php.ini file live within my environment? Apparently my provider moved my php.ini folder into my Piwik folder for some reason on 3/11/09 (the same day this problem started). As a result, I do not believe my instance of Piwik knows where the ‘php_pdo_mysql.dll’ and ‘php_pdo.dll’ files live (I don’t either).


(dseawel) #5

Problem solved, both of these extensions were listed twice within the php.ini file in completely separate locations. I don’t know how that happened but it is corrected now. Sorry for my stupidity.