How to get rid of these pdo sqlite errors?

Discussion in 'Apache' started by Anveto, Dec 30, 2011.

  1. #1
    I get this fairly often and I wanted to know what could be causing them, what configuration file I should check to fix these issues?

    [30-Dec-2011 13:56:28] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
    [30-Dec-2011 13:56:28] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
    [30-Dec-2011 13:56:28] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
    [30-Dec-2011 13:56:28] PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
    Code (markup):
    Thanks!
     
    Solved! View solution.
    Anveto, Dec 30, 2011 IP
  2. #2
    you need to edit the php.ini config settings
     
    BigTim3, Dec 30, 2011 IP
  3. amigoserv.com

    amigoserv.com Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is your server is on Cpanel?

    If yes, you can rebuild apache and which contains pdo-sqlite module in it
     
    amigoserv.com, Jan 2, 2012 IP
  4. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #4
    I was simply loading the pdo sqlite extensions twice, there was an magento error that caused me to add extra sql lite, turned out that pdo was not loading in an earlier part of the php.ini files but three other pdo extensions were, so I removed the three extensions from the bottom of the file and the pdo extension from earlier in the file. Problem solved.
     
    Anveto, Jan 2, 2012 IP