PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Cirque
Hangin' Around


Joined: Oct 10, 2004
Posts: 35

PostPosted: Fri Mar 04, 2005 9:59 am Reply with quote Back to top

I am using Nuke 7.4, upgraded the forums BBtoNuke from 2.0.11 to 2.0.12 then 2.0.13 then added the latest Chatserve 2.9 patch, put back in the things like Sentinel's required edits to mainfile, and a couple other basics.

Everything seems great, until I try to goto the forum admin and all I get is a blank page. The forums seem to be there, I just can not admin them.

Anyone have an idea whats going on?
View user's profile Send private message
Mesum
Useless


Joined: Aug 23, 2002
Posts: 213
Location: Chicago

PostPosted: Fri Mar 04, 2005 12:39 pm Reply with quote Back to top

Hmm, 2.9 disable the path errors, I think you need to look at chatserv's post about edits you need to make if you are using 2.9 and Sentinel in Sentinel forums section.
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

PostPosted: Fri Mar 04, 2005 4:40 pm Reply with quote Back to top

In includes/sentinel.php find:
Code:
// Load required scripts
if ($forum_admin == 1) {
  require_once("../../../config.php");
  require_once("../../../db/db.php");
  $lang_dir = "../../../";
} elseif ($inside_mod == 1) {
  require_once("../../config.php");
  require_once("../../db/db.php");
  $lang_dir = "../../";
} else {
  require_once("config.php");
  require_once("db/db.php");
  $lang_dir = "";
}

Change to:
Code:
// Load required scripts
if (defined('FORUM_ADMIN')) {
  require_once("../../../config.php");
  require_once("../../../db/db.php");
  $lang_dir = "../../../";
} elseif (defined('INSIDE_MOD')) {
  require_once("../../config.php");
  require_once("../../db/db.php");
  $lang_dir = "../../";
} else {
  require_once("config.php");
  require_once("db/db.php");
  $lang_dir = "";
}


and on mainfile.php find:
Code:
   if ($forum_admin == 1) {
       include_once("../../../includes/sentinel.php");
   } elseif ($inside_mod == 1) {
       include_once("../../includes/sentinel.php");
   } else {
       include_once("includes/sentinel.php");
   }

Change to:
Code:
if (defined('FORUM_ADMIN')) {
   include("../../../includes/sentinel.php");
} elseif (defined('INSIDE_MOD')) {
   include("../../includes/sentinel.php");
} else {
   include("includes/sentinel.php");
}
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

PostPosted: Fri Mar 04, 2005 4:42 pm Reply with quote Back to top

No need to add a @ in front of the include and require lines, 2.9's mainfile.php will silence errors anyway.
View user's profile Send private message Visit poster's website
montego
Moderator


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Fri Mar 04, 2005 5:57 pm Reply with quote Back to top

chatserv wrote:
No need to add a @ in front of the include and require lines, 2.9's mainfile.php will silence errors anyway.


Chat, does this comment also then apply to modules and blocks that are run under the nuke structure (i.e., someone isn't trying to call them directly)?

I am working on a module and block and was wondering if I needed to change all my includes and requires to have the @ sign in front. So are you saying that as long as a higher level include/require has the @ in front that any subsequently included/required scripts will by inheritance be "silenced"?

TIA,
montego
View user's profile Send private message Visit poster's website
Cirque
Hangin' Around


Joined: Oct 10, 2004
Posts: 35

PostPosted: Fri Mar 04, 2005 6:09 pm Reply with quote Back to top

Thanks, that solved it.
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

PostPosted: Fri Mar 04, 2005 6:20 pm Reply with quote Back to top

Yes montego, the line basically turns off display_errors, if you still want to silence all includes and requires do go ahead, no harm in doing so and it'll benefit anyone not running Nuke Patched.
View user's profile Send private message Visit poster's website
montego
Moderator


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Fri Mar 04, 2005 8:25 pm Reply with quote Back to top

Great. Thanks!
View user's profile Send private message Visit poster's website
montego
Moderator


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Sat Mar 05, 2005 10:08 am Reply with quote Back to top

chatserv wrote:
it'll benefit anyone not running Nuke Patched.


That is what I call *unprotected Nukin'* and should be avoided by ALL. Remember, if you don't *protect* you had better *abstain*!

ROTFL
View user's profile Send private message Visit poster's website
pappadee
New Member
New Member


Joined: Aug 04, 2005
Posts: 5
Location: London, UK

PostPosted: Thu Aug 04, 2005 10:44 am Reply with quote Back to top

Guys I wonder if someone can help me out here, I thought this thread was going to provide me with the solution but it doesn't as I'm guessing this solution applys to chatserv 2.9 when installed.

I have a 7.4 nuke site with then 2.0.11 phpbb which i think was the standard version. So after some research I found that version 2.0.17 appears to be the most current release.

I also found out that i have to apply each version between 11 to 17 as the patches are not bundled together to supersede the previous patch.

Now i patch 2.0.12, 13 ok no problems infact 14,15,16 and 17 all go ok with no problems. Except that at some point and i think this point is about 13 or 14 I seem to have lost the forums admin screen i.e when i select it from the the admin link at bottom of forums screen i get a blank white screen. very odd. So i try the forums icon in the admin menuunder nuke administraton and the same thing.

So i notice this thread and try the change to the sentinal file no joy and then i try the mainfile.php file and i then notice the info to look for in my mainfile.php isnt the same as pasted by chatserv. In fact when the change is made my whole site brings up a white blank page. So i reversed this action. I do run sentinel btw.

So guys Im stuck now with what appears to be an ok running site still web is running ok and forums are running ok, but I am not able to look at the forum admin section anymore just get the white screen.

I knwo this happened around 2.0.13 - 2.0.14 because i noticed a new warning line appear at the bottom of the forum screen when in admin mode warning me of a more up to date version and i think the last number i saw there was 2.0.14

Any help is greatly appreciated guys.

Cheers.
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

PostPosted: Thu Aug 04, 2005 11:02 am Reply with quote Back to top

Add $forum_admin = 1; to pagestart.php, if you can access the forum's admin section you need to patch a vulnerability that relates to $forum_admin, do a search for it on this site.
View user's profile Send private message Visit poster's website
pappadee
New Member
New Member


Joined: Aug 04, 2005
Posts: 5
Location: London, UK

PostPosted: Fri Aug 05, 2005 3:09 am Reply with quote Back to top

thanks for the reply chartserv, you need to be a little gentle with me here chartserv m8, my php code skills are basic.

I think i have found the pagestart.php file in the modules/Forums/admin/ but i do not know where abouts to place that code in the file.

I have also done a search as you suggested and I am currently reading through the results.

it appears that sentinel is the root of this issue, Im guessing. What is the best way to remove sentinel so i have a working site and then i can re-exmine installing an updated version of sentienl later.

Sorry for sounding a little thick here.

Cheers.
View user's profile Send private message
pappadee
New Member
New Member


Joined: Aug 04, 2005
Posts: 5
Location: London, UK

PostPosted: Fri Aug 05, 2005 3:45 am Reply with quote Back to top

ok an update with some progress made, i found a thread with some good info that seemed to fix my forums admin issue here...
Only registered users can see links on this board!
Get registered or login to the forums!


But i still have a problem of not being able to use the messages section all i get on a white page is

Code:
You can't access this file directly...


Is there another file i need to edit in relation to the messgae section working.?

Any ideas guys, please.
View user's profile Send private message
pappadee
New Member
New Member


Joined: Aug 04, 2005
Posts: 5
Location: London, UK

PostPosted: Fri Aug 05, 2005 3:54 am Reply with quote Back to top

i found and tried this suggestion but no luck.
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

PostPosted: Fri Aug 05, 2005 9:35 am Reply with quote Back to top

These errors basically mean you are not using Nuke Patched so open the messages index file and change:
Code:
if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}

to:
Code:
if (!stristr($_SERVER['PHP_SELF'], "modules.php")) {
    die ("You can't access this file directly...");
}
View user's profile Send private message Visit poster's website
pappadee
New Member
New Member


Joined: Aug 04, 2005
Posts: 5
Location: London, UK

PostPosted: Fri Aug 05, 2005 9:51 am Reply with quote Back to top

wow, chatserv you are a star m8. I small donation for your troubles on it's way.

thanks very much it appears to be working now with your code change.

Cheers,

Pappa
View user's profile Send private message
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 2205
Location: near Albany NY

PostPosted: Sun Sep 11, 2005 11:40 am Reply with quote Back to top

Had the same problems and found this thread essential in solving them. Here's a couple of other gotcha's:

In Mainfile.php there is this code referencing forum_admin also:

Code:
if ($forum_admin != 1) {
    if (isset($newlang) AND !eregi("\.","$newlang")) {
   if (file_exists("language/lang-".$newlang.".php")) {
       setcookie("lang",$newlang,time()+31536000);
       include("language/lang-".$newlang.".php");
       $currentlang = $newlang;


I believe this should also be change to the "if defined" code. Note the negation on the condition cause I didn't at first and it causes some strange problems. In other words you want "if (!defined ...)".

Also in db.php there is a "if ($forum_admin = 1)" statement that needs to be changed.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum