Page MenuHomePhabricator

PHP Fatal error: Can't inherit abstract function on marking page for translation in PHP 7.1.33
Closed, ResolvedPublic

Description

Getting the following error when marking the page for translation

[Wed Oct 30 20:30:24.372738 2019] [php7:error] [pid 9117] [client 10.0.2.2:39792] PHP Fatal error:  Can't inherit abstract function Job::run() (previously declared abstract in MediaWiki\\Extensions\\Translate\\Jobs\\GenericTranslateJob) in /var/www/html/mediawiki/extensions/Translate/src/Jobs/GenericTranslateJob.php on line 19, referer: http://127.0.0.1:8181/mediawiki/index.php?title=Special:PageTranslation&target=LoL&do=mark

Further details: https://stackoverflow.com/questions/17525620/php-fatal-error-cant-inherit-abstract-function

As per T235249: Decide minimum supported PHP version for next MLEB release the new MLEB 2019.10 release should support PHP 7.1.x.


Installation info:

  • MediaWiki: 1.32.5
  • PHP: 7.1.33-1+0~20191027.27+debian9~1.gbpd10139 (apache2handler)

Event Timeline

abi_ created this task.Oct 30 2019, 8:43 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 30 2019, 8:43 PM
abi_ triaged this task as High priority.Oct 30 2019, 8:44 PM

Blocks MLEB release. Marking as high priority for now.

Change 547309 had a related patch set uploaded (by Abijeet Patro; owner: Abijeet Patro):
[mediawiki/extensions/Translate@master] Remove parent abstract method override in child class

https://gerrit.wikimedia.org/r/547309

Change 547309 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Remove parent abstract method override in child class

https://gerrit.wikimedia.org/r/547309

abi_ closed this task as Resolved.Oct 31 2019, 7:25 AM

I've tested this patch locally on a vagrant box with PHP 7.1

Marking this as resolved.