https://bugzilla.wikimedia.org/show_bug.cgi?id=62448

            Bug ID: 62448
           Summary: Print more information about uncallable hooks
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: s...@reedyboy.net
       Web browser: ---
   Mobile Platform: ---

From Hooks.php

// Run autoloader (workaround for call_user_func_array bug)
// and throw error if not callable.
if ( !is_callable( $callback ) ) {
    throw new MWException( 'Invalid callback in hooks for ' . $event . "\n" );
}

e.g.

<!DOCTYPE html>
<html><head><title>Internal error - {{SITENAME}}</title><style>body {
font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
<p>[8248938e] /mw-config/index.php?page=Install   Exception from line 182 of
/var/www/wikifarm0/core/includes/Hooks.php: Invalid callback in hooks for
LoadExtensionSchemaUpdates<br />
</p><p>Backtrace:</p><p>#0
/var/www/wikifarm0/core/includes/GlobalFunctions.php(4011): Hooks::run(string,
array, NULL)<br />
#1 /var/www/wikifarm0/core/includes/installer/DatabaseUpdater.php(116):
wfRunHooks(string, array)<br />
#2 /var/www/wikifarm0/core/includes/installer/DatabaseUpdater.php(169):
DatabaseUpdater->__construct(DatabaseMysqli, boolean, NULL)<br />
#3 /var/www/wikifarm0/core/includes/installer/DatabaseInstaller.php(214):
DatabaseUpdater::newForDB(DatabaseMysqli)<br />
#4 [internal function]:
DatabaseInstaller->createExtensionTables(MysqlInstaller)<br />
#5 /var/www/wikifarm0/core/includes/installer/Installer.php(1534):
call_user_func(array, MysqlInstaller)<br />
#6 /var/www/wikifarm0/core/includes/installer/WebInstallerPage.php(1238):
Installer->performInstallation(array, array)<br />
#7 /var/www/wikifarm0/core/includes/installer/WebInstaller.php(275):
WebInstaller_Install->execute()<br />
#8 /var/www/wikifarm0/core/mw-config/index.php(61):
WebInstaller->execute(array)<br />
#9 /var/www/wikifarm0/core/mw-config/index.php(29): wfInstallerMain()<br />
#10 {main}</p>
</body></html>



The error message doesn't help identify what is the problem. If you've got
loads of extensions, it can be hard to find errors like this.

Dumping $callback may yield a bit more useful information...

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to