Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[Solved][Documentation] Not working with 2.0.18.4 (Cannot redeclare debug())*

edited April 2012 in Vanilla 2.0 - 2.8

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

Answers

  • edited April 2012

    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);
    }

Sign In or Register to comment.