Hi I'm using RSS Import 3.0.1 with the latest version of Evolution.
But it's giving me this error:
Fatal error: Cannot redeclare Log() in /public_html/assets/snippets/rss/includes/phx.parser.class.inc.php on line 385
I've opened up that file and here is the log code including line 385 in there too:
// Event logging (debug)
function createEventLog() {
if ($this->console) {
$console = implode("\n", $this->console);
$this->console = array();
return '<pre style="overflow: auto;">'.$console.'</pre>';
}
}
// Returns a cleaned string escaping the HTML and special MODx characters
function LogClean($string) {
$string = preg_replace("/&(#[0-9]+|[a-z]+);/i", "&$1;", htmlspecialchars($string));
$string = str_replace(array("[", "]", "`"), array("[", "]", "`"), $string);
return $string;
}
// Simple log entry
function Log($string) {
if ($this->debug) {
$this->debugLog = true;
$this->console[] = (count($this->console) + 1 - $this->curPass)." [".strftime("%H:%M:%S", time())."] ".$this->LogClean($string);
}
}
// Log snippet output
function LogSnippet($string) {
if ($this->debug) {
$this->debugLog = true;
$this->console[] = (count($this->console) + 1 - $this->curPass)." [".strftime("%H:%M:%S", time())."] "." |--- Returns: <div style='margin: 10px;'>".$this->LogClean($string)."</div>";
}
}
// Log pass
function LogPass() {
$this->console[] = "<div style='margin: 2px;margin-top: 5px;border-bottom: 1px solid black;'>Pass ".$this->curPass."</div>";
}
// Log pass
function LogSource($string) {
$this->console[] = "<div style='margin: 2px;margin-top: 5px;border-bottom: 1px solid black;'>Source:</div>".$this->LogClean($string);
}
Can anyone please help fix this? Thanks for any support.