Page MenuHomePhabricator

Cannot search
Closed, ResolvedPublic

Description

When I enter a search term in the search field in the top bar and hit enter, I get:

>>> UNRECOVERABLE FATAL ERROR <<<

Call to undefined method PHUIObjectItemView::setTitleText()

/my/path/to/phabricator/src/applications/search/view/PhabricatorSearchResultView.php:39


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

This appears to be independent of what I search for and what page I start on. I was unable to replicate it on this site (Phabricator for Phabricator). What additional information would be helpful for debugging this? Thanks!

Event Timeline

jonah214 assigned this task to epriestley.
jonah214 raised the priority of this task from to High.
jonah214 updated the task description. (Show Details)
jonah214 added a project: Search.
jonah214 added a subscriber: jonah214.

Restart Apache (if using apache) or fpm (if using nginx + php-fpm), and let me know if that fixes it?

Well, that was embarrassing. Thanks.

Specifically, APC cached an old version of PhabricatorSearchResultView.php, and restarting cleared the cache.

This class of issue is hard for us to detect in the general case without imposing a large performance penalty on every page, so for now we just try to document it.

Well, I guess an old version of PHUIObjectItemView.php, to be precise.

Where is the documentation?

Is there any general guidance on when I should be restarting? Every time I pull updated code?

The bug reporting guide suggests this as a "Common Fix":

https://secure.phabricator.com/book/phabcontrib/article/bug_reports/#common-fixes

The "Upgrading" section of the install guide includes instructions to restart the webserver, and includes an example upgrade script which performs restarts:

https://secure.phabricator.com/book/phabricator/article/installation_guide/#updating-phabricator

You should restart the webserver (and the daemons, and aphlict if you run that service) when you pull. The example script contains a safe sequence of component teardown, upgrade, and restart steps.