Support » Plugin: Debogger » Debogging Debogger… fixing a minor glitch

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

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Debogging Debogger… fixing a minor glitch’ is closed to new replies.