Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

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

This discussion is related to the Magpie Feeds addon.
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

Comments

  • 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;   
    }
    **
    
    oriname2
  • 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.