Page MenuHomePhabricator

Error in Sprint extension with latest Phab version with PHP < 5.4
Closed, ResolvedPublic

Description

Hello,

Sorry to ask this here. Maybe it is a trivial problem for people confident with Phab development.

I installed and updated to the latest version:

When I create a new project, I got this error:

UNRECOVERABLE FATAL ERROR <<<

Function name must be a string

/data/phabricator/libext/sprint/src/util/SprintValidator.php:6

If solved this issue by replacing the parenthesis with bracket on the $showfields var. After that, I am able to create a project, tick the "is Sprint" checkbox and save.

But after, I never get the start and end dates inputs when I try to edit the sprint project again.

I was also able to have a pseudo working solution by downgrading to the 0.6.3 tag of Sprint Extension but I experienced other issues, probably related to some versions incompatibility.

Thank you very much for your help,

Regards

Michaël

Event Timeline

Miremond raised the priority of this task from to Needs Triage.
Miremond updated the task description. (Show Details)
Miremond moved this task to Backlog on the Phabricator-Sprint-Extension board.
Miremond subscribed.

Answering my own response: this is due to new updates in phabricator and our dear Christopher will need to fix his extension again.
Reverting back to 04/09/2015 both libphutil and phabricator, everything works well.

@Miremond I have been unable to reproduce this issue. I suspect that this is a PHP compatibility issue. Are you running 5.3? Check by running "php -v" This error may only appear on PHP < 5.4

Yes, you are right, in one of our environment, we used PHP 5.3 and that was the cause of our problem.
Maybe, you could add this requirement in the Sprint Extension README as requirement since Phabricator requires only PHP 5.2.

Thank you very much for this nice extension.

Aklapper renamed this task from Error in Sprint extension with latest Phab version to Error in Sprint extension with latest Phab version with PHP < 5.4.Apr 23 2015, 1:23 PM
Aklapper set Security to None.

Change 206153 had a related patch set uploaded (by Christopher Johnson (WMDE)):
updates README with PHP 5.4 version requirement

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

Change 206153 merged by Christopher Johnson (WMDE):
updates README with PHP 5.4 version requirement

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