Author |
Message |
bobbyg
Worker


Joined: Dec 05, 2007
Posts: 212
Location: Tampa, Florida
|
Posted:
Thu Feb 28, 2008 5:31 pm |
|
If you see my original post for web_links the problem there was with nsn projects. However, nsn projects seems to have a problem when I add the include statement to mainfile.php. I get a white page. Everything is installed but once I add that statement I have the problem.
Since "Work Board" "Work Probe" and "Work Request" installed and runs with no problem, is the NSN Projects needed? |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Feb 28, 2008 6:07 pm |
|
Turn display_errors on if it isn't already. Check your logs to see if there is any information in them. Also, in rnconfig.php, set $loglevel to 1 or 2 and check your rnlogs folder for MySQL errors. |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Thu Feb 28, 2008 6:11 pm |
|
Other than the web_links problem, I am not seeing any problems with Nuke Project on my 2.20 test site. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
bobbyg

|
Posted:
Thu Feb 28, 2008 8:08 pm |
|
Raven wrote: | Turn display_errors on if it isn't already. Check your logs to see if there is any information in them. Also, in rnconfig.php, set $loglevel to 1 or 2 and check your rnlogs folder for MySQL errors. |
Okay, I did that but I do not see anything in the log that identifies the problem.
If I omit the include statement in the mainfile.php and select project I get
It appears that NukeProject(tm) has not been configured correctly. Please contact the site admin and inform them of this error.
and this statement in the log:
February 28, 2008, 8:44 pm SQL was: UPDATE nuke_modules SET custom_title='Projects', view='0', groups='', inmenu='0', mod_group='0' WHERE mid='88'
querycount = 22
If I put the include statement in the mainfile.php I get a white page.
What should the code be in the mainfile.php?
#
#-----[ BEFORE, ADD ]------------------------------------------
#
Patched 2.9 upto some patched 3.1
if(defined('FORUM_ADMIN')) {
include_once("../../../includes/nsnpj_func.php");
} elseif(defined('INSIDE_MOD')) {
include_once("../../includes/nsnpj_func.php");
} else {
include_once("includes/nsnpj_func.php");
}
Patched 3.1b and above
include_once(INCLUDE_PATH."includes/nsnpj_func.php"); |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Fri Feb 29, 2008 12:04 am |
|
You should use the last statement (the one for Patched 3.1b and above) |
_________________ - 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! |
|
|
 |
bobbyg

|
Posted:
Fri Feb 29, 2008 6:23 am |
|
evaders99 wrote: | You should use the last statement (the one for Patched 3.1b and above) |
Okay, you just reaffirmed that I was using the correct statement.
NSN Projects is completely installed except for that statement. If I put that statement in mainfile.php and do a refresh page or just try to access the website I get a white page. So something is being altered elsewhere.
Is this the problem (that was causing problems with web_links) that must be resolved because it is also causing this problem?:
kguske wrote: | Here's the offending code in modules/Project/admin/links.php:
Code:list($title, $admins) = $db->sql_fetchrow($query);
|
Here's the whole file:
Code:<?php
/********************************************************/
/* NukeProject(tm) */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Copyright © 2000-2005 by NukeScripts Network */
/********************************************************/
global $admin_file;
if(!$admin_file OR $admin_file == "") { $admin_file = "admin"; }
if(!defined('ADMIN_FILE')) { die("Illegal Access Detected!!!"); }
$modname = $pj_config['location'];
$aid = substr($aid, 0,25);
$query = $db->sql_query("SELECT `title`, `admins` FROM `".$prefix."_modules` WHERE `title`='$modname'");
list($title, $admins) = $db->sql_fetchrow($query);
$db->sql_freeresult($query);
$query2 = $db->sql_query("SELECT `name`, `radminsuper` FROM `".$prefix."_authors` WHERE `aid`='$aid'");
list($rname, $radminsuper) = $db->sql_fetchrow($query2);
$db->sql_freeresult($query2);
$admins = explode(",", $admins);
$auth_user = 0;
for($i=0; $i < sizeof($admins); $i++) { if($rname == $admins[$i] AND !empty($admins)) { $auth_user = 1; } }
if($radminsuper == 1 || $auth_user == 1) {
adminmenu($admin_file.".php?op=PJMain", _PJ_TITLE, "nukeproject.png");
}
?>
|
Unfortunately, the variable is populated - but isn't used (i.e. it doesn't need to be modified in this file). Still, it's easier to "fix" web_links to avoid this than to try to identify all possible scenarios of additional addons that cause this same problem... |
|
|
|
|
 |
kguske

|
Posted:
Fri Feb 29, 2008 7:30 am |
|
The title problem won't cause a white page. That's either a parsing error or, more likely, security / environment (something related to patches).
I'm not sure why you're seeing that issue as I do not on my RN 2.20 test site running NukeProject. |
|
|
|
 |
bobbyg

|
Posted:
Fri Feb 29, 2008 7:43 am |
|
My stupid mistake --- had language file in wrong place |
Last edited by bobbyg on Fri Feb 29, 2008 8:37 am; edited 1 time in total |
|
|
 |
|