[pmwiki-users] totalcounter error

adam overton a at plus1plus1plus.org
Wed Apr 22 04:12:23 CDT 2009


... and as one more final observation (after a fruitless evening of  
trouble-shooting), it appears it might have something to do with the  
filesize of totalcounter.stat or something... moving/deleting the  
file allows it to roll along as before, except the history is lost.  
putting the original totalcounter.stat back where it belonged causes  
it to begin erring again.

the filesize is currently reads as 924.5 KB

any ideas as to how to get it to continue working?
perhaps it's logging unnecessary pages?

thanks in advance for suggestions...
adam



> hi
> to be more specific
> the last bit of code at the bottom of totalcounter 1.9.1 seems to  
> be the problem
>
> 	function dblock_remove_stale($wp) {
> 		$t=filemtime("$wp.l");
> 		// 75 minutes - to make absolutely sure we're not tricked by  
> Daylight
> 		// Savings on Windows - see http://www.php.net/manual/en/ 
> function.stat.php#58404
> 		if( $t+(75*60) < time())
> 			@unlink("$wp.l");
> 	}
>
> i'm not sure what $wp.l is supposed to be referring to.
> ideas ?
> thanks,
> adam
>
>
>
>
>
>> Message: 8
>> Date: Mon, 20 Apr 2009 17:20:01 -0700
>> From: adam overton <a at plus1plus1plus.org>
>> Subject: [pmwiki-users] totalcounter error
>> To: pmwiki-users <pmwiki-users at pmichaud.com>
>> Message-ID: <7F695EFE-311B-46E1-BEFB-0208B1E0FBA3 at plus1plus1plus.org>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> hi
>> i'm not sure what's going on with totalcounter 1.9.1 on my site. it's
>> been running fine for almost a year, and today i get the following  
>> msg:
>>
>> Warning: filemtime() [function.filemtime]: stat failed for wiki.d/
>> totalcounter.stat.l in /home/mysite/public_html/pmwiki/cookbook/
>> totalcounter_1_9_1.php on line 1193
>>
>> Warning: Cannot modify header information - headers already sent by
>> (output started at /home/mysite/public_html/pmwiki/cookbook/
>> totalcounter_1_9_1.php:1193) in /home/mysite/public_html/pmwiki/
>> pmwiki.php on line 1079
>>
>> any ideas for how to fix this?
>> many thanks!
>> adam
>>
>



More information about the pmwiki-users mailing list