Last modified: 2006-12-14 07:04:19 UTC
When I tried using the MultipleUpload Special page I got an error that the function wfRunHooks was not found. I fixed it by adding require_once("../Hooks.php") in SpecialPage.php. I suppose Hooks.php should be loaded before any specialpage-extension gets loaded.
Hooks.php will always have been already loaded by the time your setup function is run. Make sure you're not trying to run code at initial include time!
(In other words, use $wgExtensionFunctions[] = 'efBlahBlah' and put setup code, such as that which interacts with hooks, in function efBlahBlah() { })
Well, if this is a problem with how the extension is being executed, then shouldn't it be fixed? MultiUpload is in SVN. It doesn't seem to call wfRunHooks anywhere that I can see offhand, though. Is this a problem with MultiUpload or some other extension or something else entirely? Jan Vansteenkiste: Where did you encounter this error? Do you have a link?
The extension seems to be running SpecialPage::AddPage(new SpecialPage('MultipleUpload')); Before the $wgExtensionFunctions. I fixed it by cutting that out and placing it within the function. function wfMultipleUpload() { SpecialPage::AddPage(new SpecialPage('MultipleUpload')); Somebody should probably correct this in the svn in the file SpecialMultipleUpload.