Topic on Project:Support desk

After moving to a new server, i getting this error

2
178.7.42.127 (talkcontribs)

I was moving to a new server, its the same database and same folderpath.

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GeSHi has a deprecated constructor in C:\server\apache\htdocs\wiki\public\extensions\SyntaxHighlight_GeSHi\geshi\geshi.php on line 259

[3b3740a4] /index.php/Mainpage MWException from line 226 of C:\server\apache\htdocs\wiki\public\includes\Hooks.php: Detected bug in an extension! Hook InputBoxHooks::register has invalid call signature; Parameter 1 to InputBoxHooks::register() expected to be a reference, value given

Backtrace:

#0 C:\server\apache\htdocs\wiki\public\includes\parser\Parser.php(310): Hooks::run(string, array)

#1 C:\server\apache\htdocs\wiki\public\includes\StubObject.php(105): Parser->firstCallInit()

#2 C:\server\apache\htdocs\wiki\public\includes\StubObject.php(129): StubObject->_call(string, array)

#3 C:\server\apache\htdocs\wiki\public\includes\cache\MessageCache.php(1009): StubObject->__call(string, array)

#4 C:\server\apache\htdocs\wiki\public\includes\cache\MessageCache.php(986): MessageCache->getParser()

#5 C:\server\apache\htdocs\wiki\public\includes\Message.php(1058): MessageCache->transform(string, boolean, Language, Title)

#6 C:\server\apache\htdocs\wiki\public\includes\Message.php(726): Message->transformText(string)

#7 C:\server\apache\htdocs\wiki\public\includes\Message.php(789): Message->toString()

#8 C:\server\apache\htdocs\wiki\public\includes\OutputPage.php(928): Message->text()

#9 C:\server\apache\htdocs\wiki\public\includes\OutputPage.php(975): OutputPage->setHTMLTitle(Message)

#10 C:\server\apache\htdocs\wiki\public\includes\page\Article.php(512): OutputPage->setPageTitle(string)

#11 C:\server\apache\htdocs\wiki\public\includes\actions\ViewAction.php(44): Article->view()

#12 C:\server\apache\htdocs\wiki\public\includes\MediaWiki.php(395): ViewAction->show()

#13 C:\server\apache\htdocs\wiki\public\includes\MediaWiki.php(273): MediaWiki->performAction(Article, Title)

#14 C:\server\apache\htdocs\wiki\public\includes\MediaWiki.php(566): MediaWiki->performRequest()

#15 C:\server\apache\htdocs\wiki\public\includes\MediaWiki.php(414): MediaWiki->main()

#16 C:\server\apache\htdocs\wiki\public\index.php(41): MediaWiki->run()

#17 {main}

79.228.217.226 (talkcontribs)

To start with the first issue:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

This means that you are now using PHP 7. The Syntaxhighlight extension used GeSHi as highlighter up to version 1.25. So you are using MediaWiki 1.25 or older.

MediaWiki 1.25 and older is not compatible with PHP 7. Also note that these old MediaWiki versions no longer are supported - they have known security holes.

You should upgrade MediaWiki to a supported version. E.g. upgrading to MW 1.27 is a good choice - this version will still be supported for more than two years. See Upgrading for more details!

This should also solve the error in the InputBox extension.