Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

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

This discussion is related to the Magpie Feeds addon.

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

  • 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.