Hi I'm trying to use this plugin to display an atom rss feed:
http://modx.com/extras/package/rssimport
Here is the error I get though:
Fatal error: Cannot redeclare Log() in /home/public_html/assets/snippets/rss/includes/phx.parser.class.inc.php on line 385
Here also is the section of code in that file that includes line 385:
// 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);
}
Could anyone please help fix this?
Thanks.