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, 60 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - bbtonuke 2.0.14 => 2.0.15 ... cannot access Admin panel [ ]
 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
Crius
Nuke Cadet
Nuke Cadet


Joined: May 10, 2005
Posts: 1


PostPosted: Tue May 10, 2005 3:53 am Reply with quoteBack to top

I recently upgraded Nuke Sentinel to 2.2.1 and BBtoNuke 2.0.15, and now when I try to access my admin panel I get these errors:

Code:
Warning: main(db/mysql.php): failed to open stream: No such file or directory in /home/meuonet/public_html/db/db.php on line 67

Warning: main(): Failed opening 'db/mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/meuonet/public_html/db/db.php on line 67

Fatal error: Cannot instantiate non-existent class: sql_db in /home/meuonet/public_html/db/db.php on line 100


I'm using Platinum Nuke 7.6.0 but it seems like techgfx is down atm. mysql.php does exist in the db folder. My suspicion is that there is an error here:

Code:
global $forum_admin;
if ($forum_admin == 1) {
    $the_include = "../../../db";
} elseif ($inside_mod == 1) {
    $the_include = "../../db";
} else {
    $the_include = "db";
}


.. and it's looking at the wrong dir. I don't want to play around with the files so I'm asking you before I edit them.
Find all posts by CriusView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Tue May 10, 2005 9:31 pm Reply with quoteBack to top

Pretty sure BBToNuke 2.0.15 requires the Patched files, I don't know if Platinum is updated on the latest ones.

_________________
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
Anubis_The_Jackal
Nuke Soldier
Nuke Soldier


Joined: Aug 10, 2003
Posts: 12


PostPosted: Sat Jun 11, 2005 9:59 pm Reply with quoteBack to top

Code:
global $forum_admin;
if (defined('FORUM_ADMIN')) {
    $the_include = "../../../db";
} elseif ($inside_mod == 1) {
    $the_include = "../../db";
} else {
    $the_include = "db";
}


try this
Find all posts by Anubis_The_JackalView user's profileSend private message
Xyberian
Colonel
Colonel


Joined: Mar 14, 2004
Posts: 1921

Location: Behind you

PostPosted: Sat Jun 11, 2005 10:42 pm Reply with quoteBack to top

change all the following codes
Code:

if ($forum_admin == 1) {
....


to

Code:

if (defined('FORUM_ADMIN')) {
....


The reason of why you must change in the above way is that 7.7+ does not use $forum_admin variable anymore. Instread, it defines a macro.

So, if you have old version of BB2Nuke (less than 2.0.15), then you will find no $forum_admin. This is another disaster to those BB2Nuke users who installed old versions of ported MODs. For instance, phpnuke variants (such as platinum) includes old versions of ported MODs and $forum_admin, then it doesn't work with BB2Nuke2.0.15 anymore.

So, is there another way to work with BB2Nuke 2.0.15? Yes, there is. Open your common.php file and add $admin_forum = 1. But this is not good idea to keep phpbb2 security (not php-nuke security). This will make your old ported MODs working, though.

_________________
NukeKorea Dev. Network.
NukeKorea Laboratories
Find all posts by XyberianView user's profileSend private messageVisit poster's website
devilbird
Nuke Soldier
Nuke Soldier


Joined: Apr 15, 2003
Posts: 16


PostPosted: Thu Sep 15, 2005 10:05 am Reply with quoteBack to top

I'm running PHP-Nuke 7.6 and BBtoNuke 2.0.17, and I'm getting this same error. I tried swapping out the code in db.php as instructed above, and it just created more errors because my copy of common.php still includes the old references to

Code:
if ($forum_admin == 1)


I thought I had swapped for the newer patched files as I went through the upgrades from 2.14 onward, but maybe not. Is it feasible to just replace the current Forum directory with a newer version of all the BBtoNuke files, or will the forum no longer work with 7.6 at that point?

Would it be better to use Xyberian's trick in the common.php page? I don't have any mods to the forum, unless you count a slightly reworked theme.
Find all posts by devilbirdView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Thu Sep 15, 2005 12:48 pm Reply with quoteBack to top

Use the Patched files, make sure your files use
Code:

if (defined('FORUM_ADMIN')) {

_________________
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
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
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.404 Seconds - 185 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::