Topic on Project:Support desk

wfSetupImageMap has invalid call signature

3
Donatell007 (talkcontribs)

Hi, 

I'm a newbie and having trouble with setting up MediaWiki.

I've been given a backup of a live intranet system, which I need to 

setup as a test system.

The backup is from a MediaWiki 1.24.0 system (pretty old I know).

I'm getting the error "Detected bug in an extension! Hook wfSetupImageMap has invalid call signature..."

Details below.

I'm guessing that this is more a configuration problem than an actual bug.

Any help gratefully received!

System:

Windows 10 Home 64bit 1703

WAMPserver 3.1.0 32bit

Apache Version 2.4.27

PHP Version 7.1.9

MySql 5.7.19

Error:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

[71ce1533] /qualitywiki/index.php/Main_Page Exception from line 222 of C:\wamp\www\qualitywiki\includes\Hooks.php: Detected bug in an extension! Hook wfSetupImageMap has invalid call signature; Parameter 1 to wfSetupImageMap() expected to be a reference, value given

Backtrace:

#0 C:\wamp\www\qualitywiki\includes\GlobalFunctions.php(3995): Hooks::run(string, array, NULL)

#1 C:\wamp\www\qualitywiki\includes\parser\Parser.php(279): wfRunHooks(string, array)

#2 C:\wamp\www\qualitywiki\includes\StubObject.php(105): Parser->firstCallInit()

#3 C:\wamp\www\qualitywiki\includes\StubObject.php(125): StubObject->_call(string, array)

#4 C:\wamp\www\qualitywiki\includes\cache\MessageCache.php(1025): StubObject->__call(string, array)

#5 C:\wamp\www\qualitywiki\includes\cache\MessageCache.php(1002): MessageCache->getParser()

#6 C:\wamp\www\qualitywiki\includes\Message.php(1022): MessageCache->transform(string, boolean, Language, Title)

#7 C:\wamp\www\qualitywiki\includes\Message.php(703): Message->transformText(string)

#8 C:\wamp\www\qualitywiki\includes\Message.php(766): Message->toString()

#9 C:\wamp\www\qualitywiki\includes\OutputPage.php(899): Message->text()

#10 C:\wamp\www\qualitywiki\includes\OutputPage.php(946): OutputPage->setHTMLTitle(Message)

#11 C:\wamp\www\qualitywiki\includes\page\Article.php(522): OutputPage->setPageTitle(string)

#12 C:\wamp\www\qualitywiki\includes\actions\ViewAction.php(44): Article->view()

#13 C:\wamp\www\qualitywiki\includes\MediaWiki.php(414): ViewAction->show()

#14 C:\wamp\www\qualitywiki\includes\MediaWiki.php(282): MediaWiki->performAction(Article, Title)

#15 C:\wamp\www\qualitywiki\includes\MediaWiki.php(584): MediaWiki->performRequest()

#16 C:\wamp\www\qualitywiki\includes\MediaWiki.php(435): MediaWiki->main()

#17 C:\wamp\www\qualitywiki\index.php(46): MediaWiki->run()

#18 {main}

Malyacko (talkcontribs)

What is your exact version of the ImageMap extension? What is your exact version of MediaWiki? If they are in sync, feel free to file a bug report to update the code of the ImageMap extension.

Donatell007 (talkcontribs)

Solved!

Due to dependencies within the backed up wiki (from a MediaWiki 1.24.0), I had to revert from

PHP 7.1.9 to 5.6.31. This means that the function call now works.

Thanks for looking :)T