Cannot instantiate non-existent class (I've looked around)

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Cannot instantiate non-existent class (I've looked around)
UltimateZero
CZ Newbie
UltimateZero has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jan 17, 2006
0.00 posts per day
Posts: 1
Points: 50
   
Now, before I go on, I would like to mention that I have read multiple help files in FAQs and help directories, as well as forum posts here and elsewhere. I keep feeling like it may be something I have overlooked, because as far as I can see the code looks like it should be.




I'm sure you've seen this error before:
In: http://www.epicenvy.com/modules/Forums/admin/index.php

Fatal error: Cannot instantiate non-existent class: sql_db in /home2/envious1/public_html/db/db.php on line 94


Now, lines 93-95 in db.php are:
93:
94: $db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
95: if(!$db->db_connect_id) {


Looking above at what I've seen from other help areas, it is looking at this chunk of code, of 54-58:
54: switch($dbtype) {
55:
56: case 'MySQL':
57: include("".$the_include."/mysql.php");
58: break;


Also, as seen before these lines seem to be of importance, coming from my config.php:
$dbhost = "localhost";
$dbuname = "xxxxxxx";
$dbpass = xxxxxxx";
$dbname = "envious1_phpnuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "xxxxxxxxxxxxxxxxxxxxxxxx";
$gfx_chk = 7;
$subscription_url = "";
$admin_file = "admin";
$advanced_editor = 0;


Aaaannd... what was the last piece... oh yes. My mysql.php file, which is linked so, set as .txt
[ Register or login to view links on this board.]

Anybody have any ideas what I could possibly be missing? This has driven me nuts for almost an hour now...








EDIT!
Oh well, that's odd. I was using the extra security feature, one where you use a config.php file with just this inside:
<?php include("../config.php"); ?>

Which of course lets you bump the config out of the web directory. However,the phpBB board that came with phpNuke must not be compatible with that redirect, because while it would detect the file being there, it wouldn't read out of it.

So I guess I fixed my own problem after a little jimmying the file locations. What still confuses me though is why would phpNuke read the file correctly, but phpBB would detect it, but not read? Its standard php code, it should work for anything under any circumstances. Can anyone enlighten me?


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum