[Solved][Documentation] Not working with 2.0.18.4 (Cannot redeclare debug())*
Does this work with 2.0.18.4?
I'm getting the following when enabling this plugin:
Fatal error: Cannot redeclare debug() (previously declared in /hermes/web05/b2678/moo.tools/mydomain.com/html/forum/library/core/functions.general.php:691) in /hermes/web05/b2678/moo.tools/mydomain.com/html/forum/plugins/MagpieFeeds/magpierss/rss_fetch.inc on line 244
Tagged:
0
Answers
Seems to work now. Once I removed the following from MagpieFeeds/magpierss/rss_fetch.inc on line 244
**function debug ($debugmsg, $lvl=E_USER_NOTICE) { trigger_error("MagpieRSS [debug] $debugmsg", $lvl); } /*=======================================================================*\ Function: magpie_error Purpose: accessor for the magpie error variable \*=======================================================================*/ function magpie_error ($errormsg="") { global $MAGPIE_ERROR; if ( isset($errormsg) and $errormsg ) { $MAGPIE_ERROR = $errormsg; } return $MAGPIE_ERROR; } **Remove the following: from line 242 - 244
function debug ($debugmsg, $lvl=E_USER_NOTICE) {
trigger_error("MagpieRSS [debug] $debugmsg", $lvl);
}