Last modified: 2014-11-17 09:21:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64448, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62448 - Print more information about uncallable hooks
Print more information about uncallable hooks
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.23.0
All All
: Normal minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-09 02:26 UTC by Sam Reed (reedy)
Modified: 2014-11-17 09:21 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2014-03-09 02:26:39 UTC
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...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links