
Valentino Lauciani - 2010-06-10 11:45:51 -
In reply to message 1 from Valentino Lauciani
Hi
I think I've found the problem:
The lines 383 and 384 are:
if (file_exists(DB_URL_XML)) if (!$xml = @simplexml_load_file(DB_URL_XML)) $this->logError('[all]',0,'fatal','Log file exists, but I couldn\'t read it! Please check file permissions or disk array!');
else $xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?><db_log></db_log>');
Adding compound brackets, It is:
if (file_exists($this->db_url_xml)) {
if (!$xml = @simplexml_load_file($this->db_url_xml)) {
$this->logError('[all]',0,'fatal','Log file exists, but I couldn\'t read it! Please check file permissions or disk array!');
} else {
$xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?><db_log></db_log>');
}
}
that could be (i think) wrong.
I've changed that lines with:
if (file_exists($this->db_url_xml)) {
if (!$xml = @simplexml_load_file($this->db_url_xml)) {
$this->logError('[all]',0,'fatal','Log file exists, but I couldn\'t read it! Please check file permissions or disk array!');
}
} else {
$xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?><db_log></db_log>');
}
And now It works; creating the log file (If not exists) and writing the XML inside.
Let me know If I've wrong.
Thank you.
But I think