Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.6.x
Author Message
FireATST
RavenNuke(tm) Development Team



Joined: Jun 12, 2004
Posts: 654
Location: Ohio

PostPosted: Sun Nov 07, 2010 5:58 pm Reply with quote

2 sites that I run are displaying the following error message in the logs:

[07-Nov-2010 12:30:35] PHP Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for abuse/abuse_default.tpl in /XXXXXX/XXXXXX/public_html/XXXXXX/includes/nukesentinel.php on line 1056 [07-Nov-2010 12:30:35] PHP Warning: fread(): supplied argument is not a valid stream resource in /XXXX/XXXXX/public_html/XXXXXX/includes/nukesentinel.php on line 1056

I placed the XXXXX's in to remove info. Any ideas what maybe causing this?
 
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Nov 07, 2010 9:10 pm Reply with quote

Does the file exist?

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
FireATST







PostPosted: Sun Nov 07, 2010 9:57 pm Reply with quote

yes it is there and correct size on both sites. I will try re-uploading it again.
 
FireATST







PostPosted: Wed Nov 10, 2010 6:58 am Reply with quote

It appears that when I receive an email about a ban being made, one of these notices appears in the logs. I have checked and even re-uploaded the file to make sure it does exist. I have went into the Nuke admin panel, clicked on NS icon, and then clicked on template menu. From the drop down box I have chosen to view the abuse_default template and it then takes me to that page, so it is there
 
Palbin







PostPosted: Wed Dec 01, 2010 11:04 pm Reply with quote

Sorry for the late reply, but could your try this to see if it resolves your problem?

lines 1055-1056
Code:


  $filename = "abuse/".$template;
  if(!file_exists($filename)) { $filename = "abuse/abuse_default.tpl"; }

Change to:
Code:


   $filename = NUKE_BASE_DIR . 'abuse/' . $template;
   if(!file_exists($filename)) { $filename = NUKE_BASE_DIR . 'abuse/abuse_default.tpl'; }
 
FireATST







PostPosted: Thu Dec 09, 2010 8:13 pm Reply with quote

Just got back from an nice long vacation and warmer weather. Will try this over the next few days when I get caught up and let you know what happens.....thanks!
 
FireATST







PostPosted: Fri Dec 10, 2010 3:35 pm Reply with quote

I have made the above changes and will wait now to see if it stops the reporting of error message.
 
FireATST







PostPosted: Mon Dec 13, 2010 11:27 am Reply with quote

The changes seem to have correct the issue.....Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.6.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 ©