Thread:Project:Support desk/How to hide "View History" button for unlogged users?/reply (34)

Does this still work for you? I was trying to implement this script in different ways but I keep getting this exception: MediaWiki internal error.

Original exception: [5b40cf63] Exception from line 181 of ...includes/Hooks.php: Invalid callback in hooks for BeforePageDisplay

Backtrace:
 * 1) 0 ...includes/GlobalFunctions.php(3877): Hooks::run(string, array)
 * 2) 1 ...includes/OutputPage.php(2075): wfRunHooks(string, array)
 * 3) 2 ...includes/Wiki.php(609): OutputPage->output
 * 4) 3 ...includes/Wiki.php(467): MediaWiki->main
 * 5) 4 ...index.php(49): MediaWiki->run
 * 6) 5 {main}

Exception caught inside exception handler: [5f04ab04] Exception from line 181 of includes/Hooks.php: Invalid callback in hooks for BeforePageDisplay

Backtrace: Any Idea?
 * 1) 0 ...includes/GlobalFunctions.php(3877): Hooks::run(string, array)
 * 2) 1 ...includes/OutputPage.php(2075): wfRunHooks(string, array)
 * 3) 2 ...includes/Exception.php(220): OutputPage->output...