Page MenuHomePhabricator

PHP "Can't inherit abstract function" error on ee-prototype
Closed, ResolvedPublic

Description

On ee-prototype, /var/log/apache2/error.log contained

PHP Fatal error: Can't inherit abstract function Flow\\Data\\Index::getLimit() (previously declared abstract in Flow\\Data\\FeatureIndex) in /mnt/mediawiki/extensions/Flow/includes/Data/ObjectManager.php on line 693

I'm not seeing this error on my local instance running 5.4.9-4ubuntu2.2.

Maybe it's a PHP version issue? ee-prototype is running PHP 5.3.2-2wm1 and http://www.php.net/manual/en/language.oop5.interfaces.php says "Prior to PHP 5.3.9, a class could not implement two interfaces that specified a method with the same name". Other labs instances and production are running 5.3.10-1ubuntu3.6+wmf1 (apache2handler).


Version: master
Severity: major

Details

Reference
bz53523

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:01 AM
bzimport set Reference to bz53523.

Change 81682 had a related patch set uploaded by EBernhardson (WMF):
Fix compatability with php5.3.3

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

Change 81682 merged by Matthias Mullie:
Fix compatability with php5.3.3

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

gerrit 81682 worked, but now ee-prototype is getting it from Block.php:

[Thu Sep 05 05:31:38 2013] [error] [client 216.38.130.164] PHP Fatal error: Can't inherit abstract function Flow\\Block\\Block::commit() (previously declared abstract in Flow\\Block\\AbstractBlock) in /srv/mediawiki/extensions/Flow/includes/Block/Block.php on line 42

gerrit patch forthcoming...