Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) Bug Reports
Author Message
MickP
Hangin' Around



Joined: Sep 17, 2003
Posts: 31
Location: Australia

PostPosted: Fri May 28, 2004 12:34 am Reply with quote

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



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri May 28, 2004 4:56 am Reply with quote

Cross Posting huh Evil or Very Mad Laughing (I'll delete your other post)

What version of nuke are you running?
 
View user's profile Send private message
Raven







PostPosted: Fri May 28, 2004 5:16 am Reply with quote

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







PostPosted: Fri May 28, 2004 5:39 am Reply with quote

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







PostPosted: Fri May 28, 2004 5:49 am Reply with quote

Just use .htaccess
 
MickP







PostPosted: Fri May 28, 2004 5:57 am Reply with quote

Rolling Eyes 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 Smile
 
sharlein
Member Emeritus



Joined: Nov 19, 2002
Posts: 322
Location: On the Road

PostPosted: Fri May 28, 2004 7:32 am Reply with quote

I have encountered this error when I try to run nsnst.php
Code:
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:
    20:"includes/sentinel.php";
    21: // Raven [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ] = strtolower($_SERVER['QUERY_STRING']); [ Only registered users can see links on this board! Get registered or login! ] (strstr($queryString,'%20union%20') OR strstr($queryString,'/*')) {
Thank you, Steve

I am running 6.5

_________________
Give Me Ambiguity Or Give Me Something Else! 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Fri May 28, 2004 7:37 am Reply with quote

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.
 
View user's profile Send private message
sharlein







PostPosted: Fri May 28, 2004 8:19 am Reply with quote

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

PostPosted: Fri May 28, 2004 8:42 am Reply with quote

Quote:
20:"includes/sentinel.php";
21: // Raven [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ] = strtolower($_SERVER['QUERY_STRING']); [ Only registered users can see links on this board! Get registered or login! ] (strstr($queryString,'%20union%20') OR strstr($queryString,'/*')) {


shouldn't line 20 be:
include("includes/sentinel.php");
 
View user's profile Send private message Visit poster's website
sharlein







PostPosted: Fri May 28, 2004 9:04 am Reply with quote

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)

PostPosted: Fri May 28, 2004 2:18 pm Reply with quote

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
http://www.nukescripts.net 
View user's profile Send private message Send e-mail Visit poster's website
sharlein







PostPosted: Fri May 28, 2004 3:51 pm Reply with quote

Thank you, Bob
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) Bug Reports

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 ©