PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
whiteknight0571
Hangin' Around


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

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

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
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: 15210
Location: Kansas

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

Thanks, and I have made this a sticky!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
whiteknight0571
Hangin' Around


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

PostPosted: Fri Jun 18, 2004 11:29 am Reply with quote Back to top

No problem Raven. I see it is now sticky, just hopefully nobody gets too stuck to it Mr. Green
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ocaspawn
New Member
New Member


Joined: Apr 05, 2005
Posts: 1

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

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: 2363

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

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(
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 Back to top

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 to the forums!
View user's profile Send private message
whiteknight0571
Hangin' Around


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

PostPosted: Fri Apr 15, 2005 3:41 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
flex
New Member
New Member


Joined: Apr 15, 2005
Posts: 6

PostPosted: Fri Apr 15, 2005 3:47 pm Reply with quote Back to top

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 to the forums!
View user's profile Send private message
flex
New Member
New Member


Joined: Apr 15, 2005
Posts: 6

PostPosted: Sat Apr 16, 2005 7:15 am Reply with quote Back to top

..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 to the forums!
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Sat Apr 16, 2005 7:35 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
flex
New Member
New Member


Joined: Apr 15, 2005
Posts: 6

PostPosted: Sat Apr 16, 2005 9:25 am Reply with quote Back to top

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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Sat Apr 16, 2005 9:32 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
flex
New Member
New Member


Joined: Apr 15, 2005
Posts: 6

PostPosted: Sat Apr 16, 2005 11:15 am Reply with quote Back to top

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

Thanks again

FLEX
View user's profile Send private message
jetpil0t
New Member
New Member


Joined: Dec 19, 2006
Posts: 2

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

See my post at
Only registered users can see links on this board!
Get registered or login to the forums!

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

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