Page MenuHomePhabricator

Phrabricator build 2016.05 breaks Sprint extension
Closed, DuplicatePublic

Description

https://secure.phabricator.com/w/changelog/2016.05/
The latest build from Phabricator broke the "Sprint" application with the below error:

UNRECOVERABLE FATAL ERROR <<<

Call to undefined method PHUIIconView::setIconFont()
/opt2/apps/phab-externals/sprint/src/controller/board/SprintBoardViewController.php:724
┻━┻ ︵ ¯\_(ツ)_/¯ ︵ ┻━┻

https://secure.phabricator.com/w/changelog/2016.05/
My guess is that the latest change mentioned feature (#2) may have caused the issue:
Users can now choose a user icon.

Event Timeline

R8j3 raised the priority of this task from to Unbreak Now!.
R8j3 updated the task description. (Show Details)
R8j3 subscribed.

I was able to fix the issue:

The files to change:
sprint\src\controller\board\SprintBoardViewController.php(442): ->setIconFont('fa-sort-amount-asc bluegrey');
sprint\src\controller\board\SprintBoardViewController.php(495): ->setIconFont('fa-search-plus bluegrey');
sprint\src\controller\board\SprintBoardViewController.php(580): ->setIconFont('fa-cog bluegrey');
sprint\src\controller\board\SprintBoardViewController.php(724): ->setIconFont('fa-caret-down')
sprint\src\storage\TaskTableDataProvider.php(246): ->setIconFont('fa-wrench', 'green')
sprint\src\storage\TaskTableDataProvider.php(253): ->setIconFont('fa-lock', 'red')
sprint\src\view\SprintHandleIconView.php(58): public function setIconFont($icon, $color = null) {
sprint\src\view\SprintUIObjectBoxView.php(261): ->setIconFont('fa-bars');

Change the function call from setIconFont to setIcon.