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

PDO error on first run

pdxpdx
edited May 2010 in Vanilla 2.0 - 2.8
Trying to set up vanilla 2 on a shared host. I get the error message: Fatal error: Class 'PDO' not found in
/home//public_html/app/webroot/fc/forum/conf/config-defaults.php on
line 16

I've asked my host and they say that PDO is enabled.

Here's their response:
"PDO is indeed installed on your server, this is the information I was able to
find:

root@ans75 [/home]# php -i | grep PDO
PDO
PDO support => enabled
PDO drivers => sqlite, sqlite2, mysql
PDO Driver for MySQL, client library version => 5.0.90
PDO Driver for SQLite 3.x => enabled

You may want to check the vanillaforums support forums for further information
on this error, it appears that it may be something to do with your PHP code on
line 16 as the error indicates. If you have any further questions, please let
us know."

What is wrong, and can I fix it?

Comments

  • Options
    You may want to report that bug (if it is) here: http://github.com/vanillaforums/Garden/issues
  • Options
    lucluc ✭✭
    @pdx: create a phpinfo page, and check if it's really seen by your php applications.
  • Options
    That is, a page simply containing <?php phpinfo() ?>
  • Options
    Hi, my phpinfo page says:

    Configure Command:
    './configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zip' '--prefix=/usr' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mime-magic' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'

    Which includes '--enable-pdo=shared' and "with-pdo-mysql=shared' " and "with-pdo-sqlite=shared' "

    Do you know what that means, or if that is what its supposed to say? Thanks for your help!
  • Options
    lucluc ✭✭
    Well, not really.

    It's something like that: http://www.jtlnet.com/phpinfo.php

    It gives much more information that what you've just posted.
  • Options
    Well yeah, I know that. I only included the part of the page that said something about pdo.
  • Options
    edited November 2010
    Hi! I'm from Ukraine and I have the same problem as TS. please help me.
    My php info (phpinfo page the same like TS write) http://www.ut.kh.ua/forum/phpinfo.php
    Where PDO is enable in MyPHPAdmin or something else? I'm not so good in linux but i want to have my own forum very much.
    P.S. Hardware: Router D-link Dir-320 DD-WRT v24-sp2 (10/10/09) mini-usb-ftp upgrated by phpMyAdmin 2.6.2 + WWW + MySQL + PERL
  • Options
    LincLinc Detroit Admin
    You must have PDO enabled when PHP is installed. Contact your host for help.
  • Options
    edited November 2010
    my host it's my router D-link dir-320 with USB flash 4GB on a board, so when i go http://192.168.1.1/forum/index.php I recive massage: "Fatal error: Class 'PDO' not found in /opt/share/www/forum/conf/config-defaults.php on line 16". So I can contact only with myself :)
    (PHP is working on my router as you can see at PHP-based search page http://ut.kh.ua/other.htm on my site)
    so where I can enable PDO or what I must to install on my router using telnet? Maybe I have to add some package or something else in my PHP?

    P.S. Hardware: Router D-link Dir-320 DD-WRT v24-sp2 (10/10/09) mini-usb-ftp upgrated by phpMyAdmin 2.6.2 + WWW + MySQL + PERL
  • Options
    LincLinc Detroit Admin
    PHP must be recompiled with PDO enabled. If you don't know how to do this, you need assistance from a server admin.
  • Options
    edited December 2010
    Thanks for the info!
  • Options
    I noticed it.
  • Options
    What ever, My server admin it's me ))) so won't be vanilla 2 at my server.
  • Options
    LincLinc Detroit Admin
    Vanilla 2 won't run on a router. Noted.
Sign In or Register to comment.