Тогда лучше саму функцию подрезать - файл /manager/includes/document.parser.class.inc.php , строка 1280 (это в MODx версии 0.9.6) или 1286 (версия MODx 0.9.5).
Было примерно так:
function logEvent($evtid, $type, $msg, $source= 'Parser') {
$msg= mysql_escape_string($msg);
$source= mysql_escape_string($source);
$evtid= intval($evtid);
if ($type < 1) {
$type= 1;
}
elseif ($type > 3) {
$type= 3; // Types: 1 = information, 2 = warning, 3 = error
}
$sql= "INSERT INTO " . $this->getFullTableName("event_log") . " (eventid,type,createdon,source,description,user) " .
"VALUES($evtid,$type," . time() . ",'$source','$msg','" . $this->getLoginUserID() . "')";
$ds= @mysql_query($sql);
if (!$ds) {
echo "Error while inserting event log into database.";
exit();
}
}
Должны получить такое:
function logEvent($evtid, $type, $msg, $source= 'Parser') {
$msg= mysql_escape_string($msg);
$source= mysql_escape_string($source);
$evtid= intval($evtid);
if ($type < 1) {
$type= 1;
}
elseif ($type > 3) {
$type= 3; // Types: 1 = information, 2 = warning, 3 = error
}
/*$sql= "INSERT INTO " . $this->getFullTableName("event_log") . " (eventid,type,createdon,source,description,user) " .
"VALUES($evtid,$type," . time() . ",'$source','$msg','" . $this->getLoginUserID() . "')";
$ds= @mysql_query($sql);
if (!$ds) {
echo "Error while inserting event log into database.";
exit();
}*/
}
Т.е. тупо закомментировали блок, отвечающий за обращение к БД, если он снова понадобится, то раскомментируем и снова работаем.