Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6 Bugs/Fixes
Author Message
SPJeff69
Regular
Regular



Joined: Oct 25, 2004
Posts: 53

PostPosted: Tue Jul 26, 2005 11:48 am Reply with quote

I updated bbtonuke 2.0.12 to nuke 2.0.17 today. I downloaded each update of bbtonuke, uploaded the files, then ran the upgrade script. I repeated this until I'd upgraded ot 2.0.17.

Everything is fine except I can't access my forum administration page, it comes up blank

any ideas?
 
View user's profile Send private message
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Tue Jul 26, 2005 1:37 pm Reply with quote

Open modules/Forums/admin/pagestart.php and add under the file credits:
Code:
$forum_admin = 1;

then try going to the forum's admin section, if it becomes visible you are running a vulnerable Nuke site in which case you can do a search for $forum_admin or FORUM_ADMIN in these forums for the fix.
 
View user's profile Send private message Visit poster's website
tracey
Hangin' Around



Joined: Oct 03, 2004
Posts: 25

PostPosted: Fri Aug 12, 2005 7:29 pm Reply with quote

chatserv ... help! i did a search for both $forum-admin and FORUM_ADMIN and it came back with so many results which didn't really seem to apply.

i have the same problem described above .. nuke 7.6 .. bbtonuke upgrade .. on a few sites .. and can't do forum admin .. added the line you said, and it works .. so what's my vulnerability?? help!

thank you kindly!!
tracer
 
View user's profile Send private message
chatserv







PostPosted: Sat Aug 13, 2005 1:09 am Reply with quote

http://www.nukefixes.com/ftopict-1242-forumadmin.html
 
tracey







PostPosted: Sat Aug 13, 2005 6:59 am Reply with quote

THANK YOU!! that was it .. I had 2 of the 5 mentioned files referecning $forum_admin instead of the required 'FORUM_ADMIN' ... WAHOO!!

Thanks chatserv .. you rock.

tracer
 
arif2k
New Member
New Member



Joined: Oct 07, 2006
Posts: 2

PostPosted: Sat Oct 07, 2006 8:03 am Reply with quote

Sorry, this Module isn't active! shows the link
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Oct 09, 2006 10:21 am Reply with quote

Looks like chatserv activated it again

Just for reference, this post from the thread



Here are the changes that were applied to the patch:

File: mainfile.php - db/db.php - includes/prune.php - modules/Forums/common.php
Find:
Code:
if ($forum_admin == 1) {

Change to:
Code:
if (defined('FORUM_ADMIN')) {


Delete File: modules/Forums/admin/common.php

File: modules/Forums/admin/pagestart.php
Find:
Code:
$forum_admin = 1;

Change to:
Code:
define('FORUM_ADMIN', true);

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
thebishop
Worker
Worker



Joined: Aug 30, 2005
Posts: 244
Location: Flying to close to the sun

PostPosted: Wed Nov 22, 2006 9:03 am Reply with quote

ok i had my Forums/admin/index.php working fine and had already created some forums/posts, then i went to create another catagory and im now getting a blank page at "http://www.mysite.com/modules/Forums/admin/index.php" .

i did a search and found some posts dealing with this but the fixes were for after an upgrade, my forums had already been working.
running Nuke7.6-3.3/ bbtonuke 2.0.21NP with full NS.
Ill keep searching. Sad
 
View user's profile Send private message
thebishop







PostPosted: Wed Nov 22, 2006 10:30 am Reply with quote

evaders99, I do not have "if ($forum_admin == 1) {" in either my mainfile.php or the pagestart.php.

if i add "if (defined('FORUM_ADMIN')) {" at the start of my mainfile.php, my sites home page is then blank.

at this point it's time to get out a very large hammer...


BTW, why are many parts of chatservs site not available.
i go there and it a ghost town.
 
evaders99







PostPosted: Thu Nov 23, 2006 8:30 pm Reply with quote

Well if your site is using 7.6 with the Patched 3.3 files, it should be fine. Any error messages?

Yea I noticed chatserv's sites being down randomly too. Weird
 
thebishop







PostPosted: Thu Nov 23, 2006 11:05 pm Reply with quote

Nope there were no error messages at all just a blank forums/admin page.
I'm thinking this had something to do with the 'YourAccount/index.php' because its one of the core file edits for Nuke Sentinel's latest version.
The problem is i had just installed Arnolds Approve membership module which overwrites the 'YourAccount/index.php' therefore all my NS edits were set back to default. LOL.

i just made sure to do the NS core edits to the YourAccount/index.php which came with the approve membership module and everything seems to be good now.


[edit] now im thinking this also may be related to the "your forums are not up to date, there are updates for your forums" notice.

i was doing some testing and before i ran the newinstall61.php for the approve membership module, i tried to access the forums/admin and it took forever for the forums admin panel to appear and when it did it said,
"phpbb was not able to connect to the server". In other words it could not tell what version of phpbb i was running.

now im assuming it was trying to connect to the server to confirm what version of phpbb i had installed but couldn't and therefore it didn't load the forums/admin panel. I had always wondered how phpbb knew my forums were not up to date.

i then ran the newinstall61.php file and bingo, the forums/admin page loaded completely. I hope this makes sense to somebody. hehe
 
thebishop







PostPosted: Sat Nov 25, 2006 1:40 pm Reply with quote

Ok this is really starting to drive me crazy.

this bug has popped up yet again i am getting a blank forums admin.php page. I have searched and searched these forums and cannot find and answer to whatever is causing this. I mean im hear all day everyday searching. rofl.

my site has been running very well for the past 48 hours, so today i thought i would make some additions to the site and make a few posts ect.
I added the nuke_howto & nuke_tools modules and also Vin_dsl's bandwidth module.

then i made a few posts and i needed to create another forum so i went to the admin.php and clicked on Forums and nothing but ablank page came up. I then uninstalled everything i had installed backtracking to see if i could access the forums/admin. no luck.

Raven or evaders99 if and when you have a moment, will you take a look at this for me. thanks.
 
thebishop







PostPosted: Sat Nov 25, 2006 5:27 pm Reply with quote

Ok i found the answer to my problem, it was the fact that i had the config.php outside the root directory and was calling it from within the root directory with another config.php. here is the post i found my fix at.

"Forum Admin page is blank... (new issue?)"
http://www.ravenphpscripts.com/posts6038-highlight-forums+blank.html

Here are two other links that deal with the same problem but didn't fix my issue.
maybe they will help fix someone elses problem.

Forum Admin Section Blank
http://www.ravenphpscripts.com/posts7562-highlight-forums+forum.html

Forum Admin Blank
http://www.ravenphpscripts.com/posts3858-highlight-forums+forum.html

in this last post i link, raven talks about having the config.php file in the root our outside of the root. so i guess having my config.php outside of the root was somehow making the mainfile.php get called too many times which in turn created the blank Forums/admin page thingamajigger to happen. LOL. Very Happy
 
evaders99







PostPosted: Sat Nov 25, 2006 6:28 pm Reply with quote

I recommend not moving the config.php
It gives a false sense of security. Really the only thing it protects is if PHP goes down and your .php scripts are revealed as plain text.

The other option is to put the full path
/path/to/config.php
 
thebishop







PostPosted: Sat Nov 25, 2006 7:58 pm Reply with quote

evaders99 wrote:
I recommend not moving the config.php
It gives a false sense of security. Really the only thing it protects is if PHP goes down and your .php scripts are revealed as plain text.

The other option is to put the full path
/path/to/config.php


You mean put the full path to the real config in the fake config.php, right.

i first did it because i had all of my nuke files in the root folder but the site was not active and if a person visited my sites url they could see my config.php. so i moved it one folder up. for safe keeping.
then i thought i would just leave it there. little did i know i would have this problem. live and learn. Wink
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6 Bugs/Fixes

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©