Author |
Message |
MickP
Hangin' Around

Joined: Sep 17, 2003
Posts: 31
Location: Australia
|
Posted:
Fri May 28, 2004 12:34 am |
|
Hi All,
I added sentinel to my site, and when trying to go to the "Your Account" page when logging in, I get "Fatal error: Call to undefined function: nav() in /var/xxxxxxx/xxxx/modules/Your_Account/index.php on line 246"
Any ideas, I remove the includes line for sentinel from mainfile, and the account module works fine.
Thanks
Mick
(ps, i posted this in another forum, but think they were more talking about images)
EDIT: another item I have noticed when sentinel is installed, is only the default theme seems to show (once again is ok when line removed from mainfile) |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri May 28, 2004 4:56 am |
|
Cross Posting huh (I'll delete your other post)
What version of nuke are you running? |
|
|
|
 |
Raven

|
Posted:
Fri May 28, 2004 5:16 am |
|
MickP wrote: | its a modified version 6.5/7.2, I think i have found the problem in mainfile, i had some of the user/theme/admin stuff running on some fancy static stuff, and have reverted it back to what was in 7.2 for those functions. The only other problem i have just found, is while it has already added about 6 ip addresses to the database, it has added nothing to the .htaccess file at all.
In the sentinel admin/config, something that isnt real clear, is the path to .htaccess, is this to be absolute path(/var/xxxxx/xxxx/), or relative (nukeroot/)? as this could be my problem as i have it as absolute. | Make sure your .htaccess file has the correct permissions (666). Relative nukeroot/. |
|
|
|
 |
MickP

|
Posted:
Fri May 28, 2004 5:39 am |
|
sorry about the other post,
ok, permissions are correct, relative nukeroot i may be having probs with, .htaccess is in nukeroot, I have tried nothing, ../ ../../ ../../../ / and none of these work, I guess I may have something else wrong somewhere, or I am just too tired here at the moment and am missing something? |
|
|
|
 |
Raven

|
Posted:
Fri May 28, 2004 5:49 am |
|
|
|
 |
MickP

|
Posted:
Fri May 28, 2004 5:57 am |
|
see, told you I was tired, now why didn't I think of that, many thanks. (looks towards your donate button!)
As a thought, would there be any future addition to this whereby you could place the banned ips in a flatfile somewhere further down the server path (absolute) thereby banning anyone that tries one site on your server, from all sites on the server (I have 8 running various nukes, I could then have them all pulling from the same flatfile), this could also allow those without access to .htaccess, to have the same banning feature.
Just a thought  |
|
|
|
 |
sharlein
Member Emeritus

Joined: Nov 19, 2002
Posts: 322
Location: On the Road
|
Posted:
Fri May 28, 2004 7:32 am |
|
I have encountered this error when I try to run nsnst.phpCode:Parse error: parse error, unexpected T_VARIABLE in /home/xxx/xxx/xxx/html/mainfile.php on line 22
| I have commented out your union fix. Here are the lines: Thank you, Steve
I am running 6.5 |
_________________ Give Me Ambiguity Or Give Me Something Else! |
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Fri May 28, 2004 7:37 am |
|
Try just removing the Hack Alert code completely the comment strings in the code make it a little goofy when you try to comment it out like that . Or leave it intact for now. |
|
|
|
 |
sharlein

|
Posted:
Fri May 28, 2004 8:19 am |
|
Thank you very much, I uncommented it and everything is fine. The only other problem I encountered was Sentinal was not reading the lang/sentinal/lang-english.php file. I copied the contents into the lang/lang-english.php file and that did it. Thanks again, Steve |
|
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Fri May 28, 2004 8:42 am |
|
shouldn't line 20 be:
include("includes/sentinel.php"); |
|
|
|
 |
sharlein

|
Posted:
Fri May 28, 2004 9:04 am |
|
Hmmmmm, it does function (no errors returned) in its present form, however, I will change it. Thank you Chat. |
|
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Fri May 28, 2004 2:18 pm |
|
When you commented out the HackAlert code you didn't get it all commented out so it threw of the number of {'s and }'s that are opened/closed.
If you want to comment out the Hack Alert code you need to comment it out as follows:Code:// Raven http://ravenphpscripts.com
//$queryString = strtolower($_SERVER['QUERY_STRING']);
//if (strstr($queryString,'%20union%20') OR strstr($queryString,'/*')) {
// header("Location: hackattempt.php?$queryString");
// die();
//}
|
|
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|
|
 |
sharlein

|
Posted:
Fri May 28, 2004 3:51 pm |
|
|
|
 |
|