Warning message displays at bottom of page.

Hi

In this vanilla forums install:
http://forum.mallorcanytt.com/

This warning message is displayed in the bottom of the page:
Warning: Missing argument 5 for Gdn_ErrorHandler() in /home4/mallord2/public_html/forum.mallorcanytt.com/library/core/functions.error.php on line 25

  1. Any tips for fixing it?

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

Tagged:

Comments

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

    There was an error rendering this rich post.

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

    https://github.com/vanillaforums/Garden/commit/d8fa0adcebdb747a1ca2f778776927cf634ca6ca

    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.