Installation, Configuration, & Upgrades  :: 
unable to load database driver
 Top

  • New error message. Okay I flipped 3 successfully but when I went to move Daytimetv.net I got this error
    Parse error: parse error in /home/daytimet/public_html/config.php on line 46
    ADONewConnection: Unable to load database driver ''
    Fatal error: Call to a member function on a non-object in /home/daytimet/public_html/includes/pnAPI.php on line 489

    I take it this means my database is corrupt?

    I did the same thing as before went into phpMyAdmin exported the database and then connected them together.

    Thank you for your help in advance. I'm really learning through this.

    Shawnee
  • what's on line 46 of your config.php? my .750 install has:

    $pnconfig['dbuname'] = 'blahblahblah';

    ..if it is the same..make sure the syntax is correct.

    -IR

    --
    http://www.invalidresponse.com
  • I checked here is a little bit more information I'm using Post nuke version 0.7.2.6-1, server is midphase.com,
    the new error i get is
    Parse error: parse error in /home/daytimet/public_html/config.php on line 46

    ADONewConnection: Unable to load database driver ''

    Fatal error: Call to a member function on a non-object in /home/daytimet/public_html/includes/pnAPI.php on line 489



    $pnconfig['dbtype'] = 'mysql';
    $pnconfig['dbtabletype'] = 'myisam';
    $pnconfig['dbhost'] = 'localhost;
    $pnconfig['dbuname'] = 'daytimet_daytime';

    $pnconfig['dbpass'] = 'password here=';
    $pnconfig['dbname'] = 'daytimet_daytime2';
    $pnconfig['system'] = '0';
    $pnconfig['prefix'] = 'nuke';
    $pnconfig['encoded'] = '0';


    I'm lost and not sure what to try next. Please help.

    Shawnee
  • does your database password look to be encoded or does it read exactly as the password is?

    if it's encoded you need to change:

    $pnconfig['encoded'] = '0';

    to:

    $pnconfig['encoded'] = '1';


    -IR

    --
    http://www.invalidresponse.com
  • it reads exactly what the password is. I didn't encode anything as I don't know how to do that.
    to recap what i did so far I imported the database from phpMyAdmin.
    Loaded it to the server and now i'm stuck. Was I wrong for downloading the old database?

    Shawnee
  • Quote


    Was I wrong for downloading the old database?

    ..did you upgrade or just move servers?


    what is on line 46 of your config.php?

    if you moved to a new host you may need to ask them for the new DB info..

    -IR

    --
    http://www.invalidresponse.com
  • we moved to a new server company from influx to midphase.
    On line 46 is $pnconfig['dbuname'] = 'daytimet_daytime';

    and on line 489 is $dbh = $dbconn->Connect($dbhost, $dbuname, $dbpass, $dbname);

    Thank your help,
    Shawnee
  • ..there's an apostrophe missing..

    $pnconfig['dbhost'] = 'localhost;
    $pnconfig['dbuname'] = 'daytimet_daytime';

    should be:

    $pnconfig['dbhost'] = 'localhost';
    $pnconfig['dbuname'] = 'daytimet_daytime';


    ..usually errors will point to the line below the issue.. as in this case.. strange we didn't see that :wink:

    take care..
    -IR

    --
    http://www.invalidresponse.com
  • Okay fixed now this is what I see http://66.225.255.3/~daytimet/

    Shawnee
  • ..double and triple check that your database name and DB password are correct..

    I know that when I upgraded MySQL on one of my servers from 3.x to 4.x.. all sites that required a DB connection could not connect.. after a few hours of pulling my hair out and speed reading every tidbit of info I could find.. I created a second user to the same database and instead of "localhost" as the host.. I entered .* .. meaning all types of connections. and it worked.. this probably has very little to do with your situation.. but all these "cannot connect" posts are giving me flashbacks.. ;)

    -IR

    --
    http://www.invalidresponse.com
  • Having a similiar issue on a new install

    Code

    ADONewConnection: Unable to load database driver ''


    Fatal error: Call to a member function on a non-object in /home/kurtsmit/public_html/includes/pnAPI.php on line 489


    I have checked the config.php and it's still 0kb after running the install 3 times. I double checked the CHMOD to 666 and I am officially stuck at this point.

    Thoughts?
  • I think that would indicate a server side configuration issue.
This list is based on the users active over the last 60 minutes.