2011-10-25, 19:04:23
Angryboy Wrote:As much as I love the analysis that this plugin provides, both it and its previous iterations have broken my site, and I don't know why.
Everything works for the first week or so, but then every page (except the admin back end) goes blank, and no-one can visit the site. It is only after I either disable or remove the plugin that things get working again. Am I doing something wrong?
For me on mvlcek.bplaced.net it works without problems so far (besides a timeout with the previous version analyzing too large logs).
The only reason for this problem that I see is the lock file (data/other/hitcount/lock.txt) to prevent simultaneous accesses. Maybe it stays locked when the PHP script crashes or is aborted?
Try deleting it and see if everything works afterwards. If you can't delete it, it's still locked - but by whom?
If you deleted it and still nothing works, try creating it again (empty text file). If creating the file doesn't work (on Linux), some process still holds the file.
According to the PHP documentation all locks will be released on termination of the script. Normally all PHP scripts are aborted after x seconds automatically. So I'm not sure what could cause this problem.