Hi all,
I've been using the FileLink-extension
http://www.mediawiki.org/wiki/Extension:FileLink without a problem with my
mediawiki 1.10.0 installation, but after upgrading my test-wiki to 1.11.0 I got
the following error-messages:
Detected bug in an extension! Hook filelinkDo failed to return a value; should
return true to continue hook processing or false to abort.
Backtrace:
#0 /opt/lampp/htdocs/_fhbwiki/includes/Parser.php(332):
wfRunHooks('ParserBeforeTid...', Array)
#1 /opt/lampp/htdocs/_fhbwiki/includes/OutputPage.php(474):
Parser->parse('Abbrechen', Object(Title), Object(ParserOptions), true, true,
NULL)
#2 /opt/lampp/htdocs/_fhbwiki/includes/GlobalFunctions.php(593):
OutputPage->parse('Abbrechen', true, true)
#3 /opt/lampp/htdocs/_fhbwiki/includes/EditPage.php(1065): wfMsgExt('cancel',
Array)
#4 /opt/lampp/htdocs/_fhbwiki/includes/EditPage.php(433): EditPage->showEditForm()
#5 /opt/lampp/htdocs/_fhbwiki/includes/EditPage.php(285): EditPage->edit()
#6 /opt/lampp/htdocs/_fhbwiki/includes/Wiki.php(437): EditPage->submit()
#7 /opt/lampp/htdocs/_fhbwiki/includes/Wiki.php(48):
MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title),
Object(User), Object(WebRequest))
#8 /opt/lampp/htdocs/_fhbwiki/index.php(89):
MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User),
Object(WebRequest))
#9 {main}
After posting these to the extension's discussion page
http://www.mediawiki.org/wiki/Extension_talk:FileLink and also here
http://assela.pathirana.net/Talk:File_Link_Extension, I got the tipp to change
every occurrence of "return;" to "return true;".
I did this and also added a "return true;" to the end of the file/function. Now
I don't get the errors anymore, but neither do I get the filelink-button in the
edit mode. :-(
As the original author of the extension didn't react to my postings at all and
whoever gave me the described tipp hasn't posted any further comments, I'm now
hoping there might be someone who'd be willing to "adopt" this extension and
get
it to work under mediawiki 1.11.x++
It doesn't seem a very large extension to me codewise but I simply lack the
needed programming skills to get it to work myself.
But as my wiki is using filelinks very much, I cannot update the productive
version without the extension...
Thanks in advance!
Katharina