You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 313 guest(s) and 16 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Error message on forum administration page [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
AnaT
Nuke Cadet
Nuke Cadet


Joined: Jul 08, 2004
Posts: 8


PostPosted: Thu Jul 08, 2004 7:28 am Reply with quoteBack to top

Hi,

I installed PHPNuke 6.9 some time ago and everything works just fine. But: when I click on "Forums" on the Administration page, I get the following error message:
Fatal error: Cannot instantiate non-existent class: sql_db in XXX/nuke/html/db/db.php on line 86.

Line 86 is the following one:
$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);

Does anybody know what's wrong here? The file mysql.php seems to define the class sql_db (I'm running a MySQL-Database).
My PHP is ok so far, but I've got to admit that I'm not really very good at everything concerning classes... ;-(.

I really would appreciate your help!

Thanx a lot,
AnaT
Find all posts by AnaTView user's profileSend private message
telli
Support Mod
Support Mod


Joined: Aug 21, 2003
Posts: 335


PostPosted: Thu Jul 08, 2004 10:05 am Reply with quoteBack to top

Do you have your config.php outside of your server path?

_________________
[img]http://www.codezwiz.com/extern.php?get=sig[/img]
http://www.codezwiz.com
PHPNuke Themes
$3.99 500 MB Storage & 20 GIG Trans w/ NO limit MYSQL
Click Me
Find all posts by telliView user's profileSend private message
AnaT
Nuke Cadet
Nuke Cadet


Joined: Jul 08, 2004
Posts: 8


PostPosted: Thu Jul 08, 2004 11:18 am Reply with quoteBack to top

No, it's located in the folder nuke/html/ which is inside the server path.

It should probably be located outside because of database-password, right?

But I don't see the connection to the class-problem... *help*
Find all posts by AnaTView user's profileSend private message
telli
Support Mod
Support Mod


Joined: Aug 21, 2003
Posts: 335


PostPosted: Thu Jul 08, 2004 12:43 pm Reply with quoteBack to top

Ah sorry did'nt even see that part. I can't recall if that is part of the new sql_layer or not. Did you install any mods in your Forums preferbly ones that you had to edit the admin files?

_________________
[img]http://www.codezwiz.com/extern.php?get=sig[/img]
http://www.codezwiz.com
PHPNuke Themes
$3.99 500 MB Storage & 20 GIG Trans w/ NO limit MYSQL
Click Me
Find all posts by telliView user's profileSend private message
AnaT
Nuke Cadet
Nuke Cadet


Joined: Jul 08, 2004
Posts: 8


PostPosted: Thu Jul 08, 2004 12:49 pm Reply with quoteBack to top

no, I didn't change anything. I couldn't even enter the forum administration page once and I didn't edit the files. That's why I really don't see where the problem can be...
Find all posts by AnaTView user's profileSend private message
telli
Support Mod
Support Mod


Joined: Aug 21, 2003
Posts: 335


PostPosted: Thu Jul 08, 2004 1:17 pm Reply with quoteBack to top

Ok so this problem has been there since you started? If this is the case try reuploading the admin/modules/forums.php

_________________
[img]http://www.codezwiz.com/extern.php?get=sig[/img]
http://www.codezwiz.com
PHPNuke Themes
$3.99 500 MB Storage & 20 GIG Trans w/ NO limit MYSQL
Click Me
Find all posts by telliView user's profileSend private message
AnaT
Nuke Cadet
Nuke Cadet


Joined: Jul 08, 2004
Posts: 8


PostPosted: Mon Jul 12, 2004 12:59 am Reply with quoteBack to top

thanx for your answer and sorry for not responding earlier - I was away for the weekend...

Yes, the problem has been there since I started. I tried reuploading the admin/modules/forums.php as well as the /modules/Forums-folder, but nothing changed...
Find all posts by AnaTView user's profileSend private message
AnaT
Nuke Cadet
Nuke Cadet


Joined: Jul 08, 2004
Posts: 8


PostPosted: Mon Jul 12, 2004 2:23 am Reply with quoteBack to top

I just noticed that of course the config.php is not inside the server path, only the referring config.php which contains the include-command to include the "real" config.php which is of course outside the server path...

But I don't think this has anything to do with my problem, does it???
Find all posts by AnaTView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Mon Jul 12, 2004 2:29 pm Reply with quoteBack to top

Update to the latest BBToNuke 2.08

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
verbaljo
Private
Private


Joined: Jul 01, 2004
Posts: 41


PostPosted: Mon Jul 12, 2004 11:06 pm Reply with quoteBack to top

This sounds like the same thing I went through.

See http://www.nukecops.com/postitle31078-0-0-verbaljo.html and Evader's code insertion given about 3/4 of the way down the thread. It did the trick for me.

-john
Find all posts by verbaljoView user's profileSend private messageVisit poster's website
AnaT
Nuke Cadet
Nuke Cadet


Joined: Jul 08, 2004
Posts: 8


PostPosted: Tue Jul 13, 2004 8:43 am Reply with quoteBack to top

hi verbaljo,

first of all, thanks for your hint - yes, sound exactly like the same problem.

But unfortunately I wasn't able to solve it with the code snippet given by Evaders99.
First of all, just like you, I didn't really know where to put it. I tried putting it in the same place you did - mainfile.php, but .... what did you mean by "replacing ONLY the require_once line for the Forums case"? The part that seems to be the right one in mainfile.php looks like this - at least in my mainfile.php:

Code:

if ($forum_admin == 1) { 
    require_once("../../../config.php");
    require_once("../../../db/db.php");
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
} else {
    require_once("config.php");
    require_once("db/db.php");
    /* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
    /* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
    require_once("includes/sql_layer.php");
    $dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
}


I tried replacing all three require_once-lines, but then I get the following error message:

Fatal error: main(): Failed opening required '../../../../config.php' (include_path='.:/usr/local/lib/php') in /homepages/xx/xxx/htdocs/xxx/nuke/html/mainfile.php on line 88

Which config.php should be targeted in these require_once-lines? I got one "pseudo-config" referring only to the real one which I placed outside the server path. If it's the real one that should be targeted, I would have to add the corresponding path (I put in in /pincs/phpnuke/ on my account, which should correspond to /homepages/xx/xxx/htdocs/pincs/phpnuke/ on the "real" server). But I already tried adding the pincs/phpnuke-path, it didn't work either...

Thanks again for every help...

Ana.T
Find all posts by AnaTView user's profileSend private message
AnaT
Nuke Cadet
Nuke Cadet


Joined: Jul 08, 2004
Posts: 8


PostPosted: Tue Jul 13, 2004 11:24 am Reply with quoteBack to top

Hi Evaders99,

I just finished the update to BBToNuke 2.08 - doesn't change anything... The error message is just the same... Well, at least now I've got an updated system... Wink.

Any other idea? How about the code snippet you provided for verbaljo? I also tried this but had some problems (as described in my previous post in this thread). Could you maybe help me with this????

Thanks for your help,
AnaT
Find all posts by AnaTView user's profileSend private message
verbaljo
Private
Private


Joined: Jul 01, 2004
Posts: 41


PostPosted: Thu Jul 15, 2004 7:32 am Reply with quoteBack to top

I will reply tonite when I get home and check my code.

My situation is slightly changed now as I have installed Admin Secure, which includes the setPath fix. Also, I am in the process of moving to a new host, so I should really wait until I know my set-up works before offering you advice Shocked

-vj
Find all posts by verbaljoView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Thu Jul 15, 2004 4:58 pm Reply with quoteBack to top

I'm not sure I understand the problem.

If you've moved your real config.php file out of your Nuke's installation folder, then use the code I provided to create a config.php file to point to your real config.php file. That's all the code was designed to do.

If there's something else with your set up, please give us the error messsages and the details your setup, so we can check it out.

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
AnaT
Nuke Cadet
Nuke Cadet


Joined: Jul 08, 2004
Posts: 8


PostPosted: Fri Jul 16, 2004 12:31 pm Reply with quoteBack to top

THANKS A LOT!!
That was exactly the information I was missing - as I said, I didn't know where to put the code snippet your provided. I now replaced my "pseudo"-config.php with your code and after some adaptations to my file structure, it's working!!!

I even solved the "You are not authorised to administer this board"-problem, so it seems now I can start creating forums!!!!

THANKS AGAIN! It took me some time to understand what you meant, but you really helped me a lot!!!!
Find all posts by AnaTView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.104 Seconds - 279 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::