Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Warning message displays at bottom of page.


In this vanilla forums install:

This warning message is displayed in the bottom of the page:
Warning: Missing argument 5 for Gdn_ErrorHandler() in /home4/mallord2/public_html/ on line 25

  1. Any tips for fixing it?

  2. Is it possible to hide this message for the users?



  • Looks like Vanilla ?? Can you upgrade to Vanilla ??

    There was an error rendering this rich post.

  • also has some security issues, you have to either patch it or upgrade.

    grep is your friend.

  • @x00 best solution for me at this time would be to patch it. I would be grateful for instructions. Is there a Github issue i can look at? Could i replace the file? Or change some code?

  • Uncommented the code below for now (until i can patch it)

    /* Uncommented code due to error in front end. Patch needed
    function Gdn_ErrorHandler($ErrorNumber, $Message, $File, $Line, $Arguments) {
    $ErrorReporting = error_reporting();
    // Ignore errors that are below the current error reporting level.
    if (($ErrorReporting & $ErrorNumber) != $ErrorNumber)
    return FALSE;

    $Backtrace = debug_backtrace();
    throw new Gdn_ErrorException($Message, $ErrorNumber, $File, $Line, $Arguments, $Backtrace);

  • x00x00 MVP
    edited January 2013

    I was only talking about the security issue not that error.

    You have an issue that is mostly like caused by an incompatible Addon.

    grep is your friend.

  • x00x00 MVP
    edited January 2013

    sorry what have you done? you should be commenting out stuff unless you know what you are doing. if you have plugins that are missing is missing $Argument then you need to patch that plugin.

    grep is your friend.

  • did you comment it or uncomment it?

    you need Gdn_ErrorHandler, something is not supplying the filth parameter, that is the issue.

    grep is your friend.

  • OK. I will look into this further. Had to get that warning text to not display in front end while looking for the problem...

  • Is it possible to turn off warning messages in config-file?

  • it is a php level warning

    what does it say for

    error_reporting line near the top index.php file?

    grep is your friend.

  • // Report and track all errors. error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR); ini_set('display_errors', 'on'); ini_set('track_errors', 1);

    Guess i can set it to:
    ini_set('display_errors', 'off');

  • No don't turn it off.

    it shouldn't be showing warnings an notices anyway. Something is overriding that, either at the server level or in code.

    do you have shell access? you could cd to your forum and grep ri --include=*.php "error_reporting" .

    grep is your friend.

Sign In or Register to comment.