Author |
Message |
whiteknight0571
Hangin' Around

Joined: May 05, 2004
Posts: 38
Location: PA USA
|
Posted:
Wed Jun 16, 2004 9:48 pm |
|
Hello Raven and everyone else. Maybe someone will want to sticky this, or add it to a faq or something
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
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.  |
_________________ Only registered users can see links on this board! Get registered or login! Reviews always appreciated Only registered users can see links on this board! Get registered or login! |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Jun 18, 2004 6:02 am |
|
Thanks, and I have made this a sticky! |
|
|
|
 |
whiteknight0571

|
Posted:
Fri Jun 18, 2004 11:29 am |
|
No problem Raven. I see it is now sticky, just hopefully nobody gets too stuck to it  |
|
|
|
 |
ocaspawn
New Member


Joined: Apr 05, 2005
Posts: 1
|
Posted:
Tue Apr 05, 2005 5:44 pm |
|
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 |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Tue Apr 05, 2005 7:14 pm |
|
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 |
|
|
 |
flex
New Member


Joined: Apr 15, 2005
Posts: 6
|
Posted:
Fri Apr 15, 2005 1:40 pm |
|
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
FLEX
flex@ew.kicks-ass.net |
|
|
|
 |
whiteknight0571

|
Posted:
Fri Apr 15, 2005 3:41 pm |
|
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

|
Posted:
Fri Apr 15, 2005 3:47 pm |
|
ok... here is wat my line 233 looks like:
function get_lang($module) {
i guess there is something wrong with this line?
FLEX
flex@ew.kicks-ass.net |
|
|
|
 |
flex

|
Posted:
Sat Apr 16, 2005 7:15 am |
|
..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
flex@ew.kicks-ass.net |
|
|
|
 |
Raven

|
Posted:
Sat Apr 16, 2005 7:35 am |
|
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  |
|
|
|
 |
flex

|
Posted:
Sat Apr 16, 2005 9:25 am |
|
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

|
Posted:
Sat Apr 16, 2005 9:32 am |
|
I understand frustration, believe me! I am glad you resolved the issues. And, you're not a problem - yet 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

|
Posted:
Sat Apr 16, 2005 11:15 am |
|
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


Joined: Dec 19, 2006
Posts: 2
|
Posted:
Tue Dec 19, 2006 4:13 am |
|
|
|
 |
|