I’ve been running it for a month or two now and no corruption yet, I must say my website isn’t too heavily accessed, just about 300-600 pageviews a day.
Yea, thanks for that.. I’m a bit unimpressed with bbclone after I have been using it for a while.. It seems that it somehow finds a way to corrupt it’s own data files and then the whole logging breaks.. Have anyone else had that? When I clear the data files, it works for some time, but then I start to get this error message randomly on my pages:
Parse error: syntax error, unexpected $end, expecting ’)’ in /www/path/to/modx/bbclone/var/last.php on line 109
I looked littlebit of the code that is used to write the data files (mark_page.php) and it looks that they have tried to do some semaphores to that to prevent writing the file more than one times simultaneously, but either it’s not working in my server enviroment or something else is failing with it... anyways, I’m not going to develop this further because of that.
I’ve been looking at Google Analytics and hoping that they do some api to it.. that would rock.
It looks that it’s pretty common issue though.. I did a quick search in their forums and some thread said that it’s about some bug in old php versions, but my server runs 5.2.0 so that can’t be it.. Another thread said that it’s about running it on Windows, but my server runs on linux. So don’t know what that’s about, but I guess it’s some enviroment thing..
I’ve been running it for a month or two now and no corruption yet, I must say my website isn’t too heavily accessed, just about 300-600 pageviews a day.

define("_BBC_PAGE_NAME", "$page_title");
echo $page_title;


$page_title=$modx->documentObject['pagetitle'];
$bbclone_path=$modx->config['$base_path']."PATH_TO_BBCLONE/";
define("_BBC_PAGE_NAME", "$page_title");
define("_BBCLONE_DIR", $bbclone_path);
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER)


