Jump to content

Topic on Extension talk:Translate

Translate extension error on php 7

4
Summary by Nikerabbit

Fix released in MLEB 2016.01.

89.82.8.161 (talkcontribs)

I'm running a media wiki on Archlinux and php version update often, current version: php 7.0.2

I restarted my service after the update but media wiki returned a 500 internal server error.

In the log, I can see that is due to a php Fatal error on Translate extension:

2016-01-11 17:02:31: (mod_fastcgi.c.2520) FastCGI-stderr: PHP message: PHP Fatal error:  Redefinition of parameter $_ in /usr/share/webapps/mediawiki/extensions/Translate/tag/PageTranslationHooks.php on line 103

Thanks for your help, my wiki is in multi-lang so disabling this extension is not an option.

2601:647:4700:1E17:224:9BFF:FE06:AD65 (talkcontribs)

I also hit the same issue. Manually change $_, $_ to $_, $_2 can work around it. It's just a place holder for argument anyway.

Nikerabbit (talkcontribs)

This is planned to be fixed by next the MLEB release planned for end of January 2016.

Nikerabbit (talkcontribs)

This is now fixed in master branch.