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™ v2.5.x
Author Message
gunnyjd
New Member
New Member


Joined: Apr 24, 2006
Posts: 4

PostPosted: Tue Jul 25, 2006 9:40 pm Reply with quote

After installing everything, I get this warning that a Invalid argument supplied for foreach() in /usr/home/includes/nukesentinel.php on line 1110. There was one other error on line 1128 but fixed that by adding a "$" in front of fwrite. Can anyone come up with a solution for this issue.
 
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Tue Jul 25, 2006 10:31 pm Reply with quote

That would turn fwrite into a variable and disable the function of fwrite, Which I believe in sentinel is to write to the .htaccess.

Something all should remember is that a host can disable any function within php they like.

I believe your host may have disabled fwrite or you did not chmod the .htaccess correctly.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
gunnyjd
PostPosted: Wed Jul 26, 2006 6:09 pm Reply with quote

ok ...I took out the $ in front of fwrite and it went back to error in line 1128. I chmod everything correctly. Think if I just reinstall instead of updating it will resolve this issue? and place the original .htaccess during initial install?
 
gregexp
PostPosted: Wed Jul 26, 2006 6:13 pm Reply with quote

Ask your host if fwrite is allowed. The host using safe mode can disable preset functions but also they can disable ANY function
 
gunnyjd
PostPosted: Wed Jul 26, 2006 7:27 pm Reply with quote

thanks ...I'll check with them, more likely they are for now due to server move to different location.
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Aug 13, 2006 8:25 am Reply with quote

Is this a warning or a fatal error? That block starts out
Code:


  foreach($floodarray as $floodwrite){
    if(!strstr($floodwrite, $floodarray[$floodcount-10]))
    fputs($floodopen, $floodwrite);
  }


For some reason, $floodarray is not being read as an array here
Code:


$floodarray = file($ab_config['ftaccess_path']);


So either.. the ftaccess file doesn't exist, the file function is not allowed to access it, or the file contents is not an array.

On a seperate issue, fputs may not be allowed by your server. Putting an @ symbol in front of fputs (@fputs) may suppress the error... but of course, the functionality of ftaccess file won't work.

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
gunnyjd
PostPosted: Sun Aug 13, 2006 2:43 pm Reply with quote

Thanks for the input, I got it corrected by suppressing with "@"
 
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™ v2.5.x

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 ©