So I have been looking for an extension which can open a dialog box and a user can browse/select a file that they want to link in the Wiki page using the "file://" protocol. I finally found one extension [1] which claims it will do the job. So I followed the instruction on how to use it and then when I went to load my wiki home page I get the following error message after enabling the detailed debugging information feature ($wgShowExceptionDetails = true;):
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 /usr/share/mediawiki/includes/Parser.php(378): wfRunHooks('ParserBeforeTid...', Array) #1 /usr/share/mediawiki/includes/Article.php(3174): Parser->parse('== Welcome to {...', Object(Title), Object(ParserOptions), true, true, 1189) #2 /usr/share/mediawiki/includes/Article.php(821): Article->outputWikiText('== Welcome to {...') #3 /usr/share/mediawiki/includes/Wiki.php(390): Article->view() #4 /usr/share/mediawiki/includes/Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest)) #5 /usr/share/mediawiki/index.php(90): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest)) #6 {main} Any ideas how can we resolve this error message? I am using Mediawiki 1.12 on a Debian Linux PC.
[1] http://assela.pathirana.net/FileLinkExtension
Thanks.
mediawiki-l@lists.wikimedia.org