WordPress.org

Forums

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

  1. Dan Griffiths
    Member
    Posted 3 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!

    http://wordpress.org/extend/plugins/debogger/

  2. Chris Reynolds
    Member
    Posted 3 years ago #

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

  3. Harish Chouhan
    Member
    Posted 2 years ago #

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

  4. Dan Griffiths
    Member
    Posted 2 years ago #

    Glad I could be of help. :)

  5. webriti
    Member
    Posted 2 years 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

  • Debogger
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags