Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™
Author Message
whiteknight0571
Hangin' Around


Joined: May 05, 2004
Posts: 38
Location: PA USA

PostPosted: Wed Jun 16, 2004 9:48 pm Reply with quote

Hello Raven and everyone else. Maybe someone will want to sticky this, or add it to a faq or something Very Happy

I just wanted to let everyone know that if they are using the OSC2Nuke full install or the module plugin, that they will need to tweak the Sentinel Include php to make sure that the tep_session_is_registered() or it will return the following error:

Code:
[16-Jun-2004 23:36:24] PHP Fatal error: Call to undefined function: tep_session_is_registered() in D:\Business\Website Design\sanderspcplus\nuked\mainfile.php on line 233 


It's a simple fix, just open up include/sentinel.php and look for the following code:

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 = "";
}


Just replace it with the following, and all will work just fine Wink

Code:
// Load required scripts

if ($forum_admin == 1) {
    require_once("../../../config.php");
    require_once("../../../db/db.php");
    require_once("../../../includes/application_top.php");   
    $lang_dir = "../../../";
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
    require_once("../../admin/modules/oscnuke/init.php");    $lang_dir = "../../";
} else {
    require_once("config.php");
    require_once("db/db.php");
    require_once("admin/modules/oscnuke/init.php");   
    $lang_dir = "";
}


Just thought I'd pass this along so that those with the e-commerce solution module could make Sentinel work. Wouldn't want to deprive that sector of the Nuke community from the added security from Sentinel. Smile

_________________
Only registered users can see links on this board! Get registered or login! Reviews always appreciated Surprised Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Fri Jun 18, 2004 6:02 am Reply with quote

Thanks, and I have made this a sticky!
 
View user's profile Send private message
whiteknight0571
PostPosted: Fri Jun 18, 2004 11:29 am Reply with quote

No problem Raven. I see it is now sticky, just hopefully nobody gets too stuck to it Mr. Green
 
ocaspawn
New Member
New Member


Joined: Apr 05, 2005
Posts: 1

PostPosted: Tue Apr 05, 2005 5:44 pm Reply with quote

Fatal error: Cannot redeclare get_lang() in C:\xampp\htdocs\forums\PHP-Nuke-Platinum-7.6\html\mainfile.php on line 233

PHP-Nuke-Platinum-7.6.0 forum admin page left index shows the error above as i see u fixed this error b4 i wondering if u know how to fix it here ? thx
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

PostPosted: Tue Apr 05, 2005 7:14 pm Reply with quote

What does your Nuke-Sentinel mainfile.php includes lines look like?
Does it use include or include_once ? If its just include try include_once(

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
flex
New Member
New Member


Joined: Apr 15, 2005
Posts: 6

PostPosted: Fri Apr 15, 2005 1:40 pm Reply with quote

hi guys.. im new to PHP and i have set up a decent site. i run into this error:

Fatal error: Cannot redeclare get_lang() in mainfile.php on line 233

i'm using PHP-NUKE 7.6 Platinum

i really need to fix this, because i am not able to access the admin panel for my forums

please help me Smile

FLEX Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
whiteknight0571
PostPosted: Fri Apr 15, 2005 3:41 pm Reply with quote

Flex, just like six implies in his answer, you need to look at the include line and see if it's include, or include_once. Open up mainfile.php and look at line 233. If it says include only, then change it to include_once.
 
flex
PostPosted: Fri Apr 15, 2005 3:47 pm Reply with quote

ok... here is wat my line 233 looks like:

function get_lang($module) {

i guess there is something wrong with this line?

FLEX Only registered users can see links on this board! Get registered or login!
 
flex
PostPosted: Sat Apr 16, 2005 7:15 am Reply with quote

..hmm, ok lock down my other posts.. but im really NOT getting help in this thread either..

this is wat the lines in the area of the error look like:


function get_lang() { < --- Thats line 233
global $currentlang, $language;
if (file_exists("modules/$module/language/lang-".$currentlang.".php")) {
if ($module == admin) {
include_once("admin/language/lang-".$currentlang.".php");
} else {
include_once("modules/$module/language/lang-".$currentlang.".php");
}
} else {
if ($module != "Forums") {
if ($module == admin) {
include_once("admin/language/lang-".$currentlang.".php");
} else {
include_once("modules/$module/language/lang-".$language.".php");
}
}
}
}


i cant see an error since each command is 'include once'..

FLEX Only registered users can see links on this board! Get registered or login!
 
Raven
PostPosted: Sat Apr 16, 2005 7:35 am Reply with quote

First of all, your thread was locked because you posted in 6 different forums! Secondly, this thread is for OS2Nuke and NukeSentinel(tm) and you are using Nuke Platinum. Are even using NukeSentinel(tm)? Lastly, people are attempting to help. The last response to you was at 4:47pm yesterday. It hasn't even been 24 hours. There are many people, like yourself, who need help and not everyone can be serviced at the same time. In addition, people sleep and are in different time zones. Since this does concern NukePlatinum, have you tried posting at their site for help also? Alienating the very community that is trying to help you, with this behavior, will definitely not get you help Wink
 
flex
PostPosted: Sat Apr 16, 2005 9:25 am Reply with quote

im sorry raven.. i didnt mean to be a problem.. i was just really frustrated.. i dropped down a version, tweaked some stuff and the forums work now..

thanks everyone for your time

FLEX
 
Raven
PostPosted: Sat Apr 16, 2005 9:32 am Reply with quote

I understand frustration, believe me! I am glad you resolved the issues. And, you're not a problem - yet ROTFL Just had a few startup "bumps". In the future, just post once in the appropriate forum and this community is very good at trying to answer all questions ASAP.
 
flex
PostPosted: Sat Apr 16, 2005 11:15 am Reply with quote

yep thank you raven, i will def. pass your site on to all the people i know that design with PHP.

Thanks again

FLEX
 
jetpil0t
New Member
New Member


Joined: Dec 19, 2006
Posts: 2

PostPosted: Tue Dec 19, 2006 4:13 am Reply with quote

See my post at Only registered users can see links on this board! Get registered or login!
for details on how to get this working if you are running later versions of osc2nuke, phpNuke and NukeSentinel.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™

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 ©