Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Fatal error: Class 'PDO' not found

edited September 2010 in Vanilla 2.0 - 2.8
I've successfully been using Vanilla (here: http://www.theartstudent.com/forum/) for some time, until today, when attempting to access the forum I'm greeted by the following:

Fatal error: Class 'PDO' not found in /home/jonhill/public_html/artstudent/forum/conf/config-defaults.php on line 16

I have contacted my host (A Small Orange), who tell me that PDO is enabled, and they are otherwise unaware of why this might have happened.

Heres the phpinfo: http://theartstudent.com/phpinfo.php
It's running on Linux, php version 5.2.14

I have tried a clean, new install elsewhere on the sever, and experience similar issues. I wonder if anyone has any suggestions as to what may be causing this. Again, the forum had been working wonderfully before this.
Tagged:

Comments

  • TimTim Operations Vanilla Staff
    Your hosting company is a liar. My phpinfo() (locally, with a working forum) has the following sections:

    image

    Yours does not.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • ithcyithcy New
    edited September 2010
    Looks like PDO is compiled into your PHP (you can see it in the Configure Command section of your phpinfo) but it's just not enabled in your php.ini. (/home/jonhill/php.ini) In that file should be some lines like extension=pdo.so extension=pdo_mysql.so ...
    Chances are they're either not there or they're commented out. They need to be added or uncommented and then your webserver needs to be restarted.

    See http://php.net/manual/en/pdo.installation.php for details.
  • Issue sorted. Seems as though it related to the php.ini file, which for some reason apparently did not include:

    extension=pdo_mysql.so

    Thanks for your help. Really appreciate and value the whole Vanilla package.
  • edited June 2011
    I am now waiting for my ISP to add the pdo_mysql module, but can anyone answer whether or not Vanilla2 can install onto Windows Server as I'm getting the following error: Fatal error: Class 'PDO' not found in \conf\config-defaults.php on line 16
    This after I renamed the htaccess file in root - before the rename I got IISPassword Error
Sign In or Register to comment.