FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


phpBB gives error - Help needed urgently





mephisto73
When trying to access the phpBB forum administration module I get the following message (I use phpNuke 7.8 with the bundeled phpBB):

Code:
Fatal error: Cannot instantiate non-existent class: sql_db in /home/mephisto/domains/ww2modeler.frih.net/public_html/db/db.php on line 94


The offending line looks like this:

Code:
$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);



The lines before and after looks like this:

Code:
case 'db2':
      include("".$the_include."/db2.php");
      break;

}

$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
    die("<br><br><center><img src=images/logo.gif><br><br><b>There seems to be a problem with the MySQL server, sorry for the inconvenience.<br><br>We should be back shortly.</center></b>");
xorcist
Did you make a database for the phpNuke and did you write the database name in there where it says
Code:
$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
Type in the database details there where it ask's for it. That should work
mephisto73
Well the $dbhost, $dbuname, $dbpass, $dbname is set in config.php and works throughout the site with this exception. Also, forum works fine when accessed as a normal user.

However, I will try entering the db info directly to see if that helps.

Thanks for the input.
Related topics
phpBB2 ERROR PLEASE HELP
phpBB : Critical Error Could not connect to the database
Problem during PhpBB installation, please help
Decryption of text excrypted using md5() and crypt() tags
PHPBB help needed
Help needed!!! urgently
Big Help needed .
phpBB Critical Error when viewing and posting in forums
Help Needed with phpBB overall_header.tpl
Regarding Bookmarking of Sites..Help Needed urgently!!
Urchin and GA!! Help Needed Urgently.
No icons on backend??
500 Internal Server Error
phpBB : Critical Error Events
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.