Last modified: 2014-07-07 14:26:13 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 T57955, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55955 - Installing CentralNotice using the web installer breaks as CN autoloads the CNDatabasePatcher class in $wgExtensionFunctions
Installing CentralNotice using the web installer breaks as CN autoloads the C...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
master
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-21 04:06 UTC by Nischay Nahata
Modified: 2014-07-07 14:26 UTC (History)
3 users (show)

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


Attachments

Description Nischay Nahata 2013-10-21 04:06:55 UTC
Installing CentralNotice using the web installer aka mw-config will fail with something like "couldn't find CNDatabasePatcher in Hooks.php"

CentralNotice autoloads the CNDatabasePatcher class in $wgExtensionFunctions
which is actually needed by the hook 
$wgHooks[ 'LoadExtensionSchemaUpdates' ][ ] = 'CNDatabasePatcher::applyUpdates';

It seems that the installer runs the hook before calling $wgExtensionFunctions and hence CNDatabasePatcher isn't loaded.

I think its plain wrong to load the classes using $wgExtensionFunctions as per http://www.mediawiki.org/wiki/Manual:$wgExtensionFunctions

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


Navigation
Links