PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
MickP
Hangin' Around


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

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

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

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

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 Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


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

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

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/.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MickP
Hangin' Around


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

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

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


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

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

Just use .htaccess
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MickP
Hangin' Around


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

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

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
View user's profile Send private message Visit poster's website
sharlein
Member Emeritus


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

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

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 to the forums!
    Only registered users can see links on this board!
    Get registered or login to the forums!
    = strtolower($_SERVER['QUERY_STRING']);
    Only registered users can see links on this board!
    Get registered or login to the forums!
    (strstr($queryString,'%20union%20') OR strstr($queryString,'/*')) {
Thank you, Steve

I am running 6.5
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

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

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
Member Emeritus


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

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

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
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

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

Quote:
20:"includes/sentinel.php";
21: // Raven
Only registered users can see links on this board!
Get registered or login to the forums!
Only registered users can see links on this board!
Get registered or login to the forums!
= strtolower($_SERVER['QUERY_STRING']);
Only registered users can see links on this board!
Get registered or login to the forums!
(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
Member Emeritus


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

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

Hmmmmm, it does function (no errors returned) in its present form, however, I will change it. Thank you Chat.
View user's profile Send private message
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1043
Location: RedNeck Land (known as Kentucky)

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

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();
//}
View user's profile Send private message Send e-mail Visit poster's website
sharlein
Member Emeritus


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

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

Thank you, Bob
View user's profile Send private message
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.

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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum