Ready to get started?Download WordPress


Debogging Debogger... fixing a minor glitch (5 posts)

  1. Dan Griffiths
    Posted 2 years ago #

    Debogger is great... but it finds an error in itself! As soon as it is activated, it starts throwing this error all over the place:

    Warning: Missing argument 5 for myErrorHandler() in /my/web/root/wp-content/plugins/randomplugin/randomfile.php on line x

    However, it's quite simple to fix. Edit wp-content/plugins/debogger/debog.php and change line 31 from this:

    function myErrorHandler($errno, $errstr, $errfile, $errline, $errcontext) {

    to this:

    function myErrorHandler($errno, $errstr, $errfile, $errline, $errcontext='') {

    This change makes errcontext an optional variable that defaults to null, thus preventing the error spam!


  2. Chris Reynolds
    Posted 2 years ago #

    excellent. thanks for that. Just found this plugin and was about to report this bug.

  3. Harish Chouhan
    Posted 2 years ago #

    Thanks Guys. Was scratching my head thinking its something to do with the theme

  4. Dan Griffiths
    Posted 2 years ago #

    Glad I could be of help. :)

  5. webriti
    Posted 1 year ago #

    hey i m new here want to debug my theme but dont no how to do it after installing this plugin i found the green color at the footer but wht to do next dont no....please help me...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic