Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


Fatal error: Class 'PDO' not found

edited September 2010 in Questions
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 Lord of Servers 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 Senior Developer [GitHub, Twitter, About.me]

  • 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.