Page MenuHomePhabricator

Failed to display projects and tasks with phabricator-extensions-Sprint
Closed, DuplicatePublic

Description

I want to use phabricator-extensions-Sprint and did exactly what is said from https://github.com/wikimedia/phabricator-extensions-Sprint. After I enabled this extension, I found it failed to show all existing projects and tasks with the following errors:

>>> UNRECOVERABLE FATAL ERROR <<<

Function name must be a string

/xxxx/phabricator-extensions-Sprint/src/util/SprintValidator.php:6

┻━┻ ︵ ¯\_(ツ)_/¯ ︵ ┻━┻

BTW, my phabricator code is from github at Feb. 2015 and I think it's relatively new. And my php version is:
$php --version
PHP 5.4.41 (cli) (built: May 14 2015 23:15:28)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

Please help to fix this issue and I found this extension really a cool feature.

I tried phabricator-sprint extension from https://github.com/bluehawk/phabricator-sprint and it worked.

Thanks,
Kenny

Event Timeline

Kkpapa raised the priority of this task from to Needs Triage.
Kkpapa updated the task description. (Show Details)
Kkpapa subscribed.

You don't mention which version of the Sprint extension is used exactly (e.g. git ID).

my phabricator code is from github at Feb. 2015

That sounds pretty old to me (and might be the reason).

Sprint extension version:
$git log -1
commit f4940152eafb1a7d72b486bfb03d9acb8654b7d4
Author: Christopher Johnson <christopher.johnson@wikimedia.de>
Date: Thu May 7 17:02:07 2015 +0200

Fixes IconNavView Open Tasks for Project Button Query URL

Bug:T98464
Change-Id: I0469ffef4229896c588d4c931595b28daf064291

Phabricator was download as a zip package at Feb. 2015. I didn't use "git clone" and it seems upgrading phabricator is not that simple for me now.

Thanks,
Kenny

I think this task is to be closed as declined.
The Sprint extension from May has not been tested against four month old Phabricator versions and does not support them.

This issue seems to be identical to T96386. I am quite sure that this is a PHP compatibility issue. As far as I know, all versions after 5.4 allow callbacks with arrays. Is it possible for you to update to PHP 5.4.6? I have not tested each PHP version, but it is possible that early versions of 5.4 did not have this enabled.