Page MenuHomePhabricator

Phab Global Search broken: Unhandled Exception: Argument 1 passed to PhabricatorHandleQuery::withPHIDs() must be of the type array, object given
Closed, ResolvedPublic

Description

Steps to reproduce:
Try to search for anything in the Global Phabricator search

Expected response: results

Actual response, the following errors:

Unhandled Exception ("TypeError")
Unhandled Exception ("TypeError")
Argument 1 passed to PhabricatorHandleQuery::withPHIDs() must be of the type array, object given, called in /srv/deployment/phabricator/deployment-cache/revs/4547f31de8f69854e0cd9d3e0a802ce517360ee0/phabricator/src/applications/search/query/PhabricatorSearchDocumentQuery.php on line 61

Workaround:
Don't use the global search but an application specific search, e.g. https://phabricator.wikimedia.org/maniphest/query/advanced/ for Maniphest tasks.

Event Timeline

Xaosflux renamed this task from Searching in phabricator are failing to Searchs in phabricator are failing with Unhandled Exception.Jan 23 2020, 3:45 AM
Xaosflux renamed this task from Searchs in phabricator are failing with Unhandled Exception to Searches in phabricator are failing with Unhandled Exception.
Tgr subscribed.

Started happening during the Phab upgrade today. Affects the generic search but not Maniphest search.

If you search for ticket numbers (e.g., 'T243479'), then you can reach the corresponding ticket - but no free text searching it seems.

(For future reference, clear and exact steps to reproduce with URLs are welcome. Phabricator has several searches. See https://www.mediawiki.org/wiki/How_to_report_a_bug )

https://phabricator.wikimedia.org/search/ prints that error too.

Wondering if this could be related to T230787 stuff

Aklapper renamed this task from Searches in phabricator are failing with Unhandled Exception to Phab Global Search broken: Unhandled Exception: Argument 1 passed to PhabricatorHandleQuery::withPHIDs() must be of the type array, object given.Jan 23 2020, 10:39 AM
Aklapper triaged this task as High priority.
Aklapper updated the task description. (Show Details)
Aklapper added a subscriber: mmodell.
Aklapper raised the priority of this task from High to Unbreak Now!.Jan 23 2020, 12:01 PM

This seems to also break fetching results in the "Edit Parent Tasks" and "Edit Parent Tasks" dialogs, which makes this UBN to me.

Mentioned in SAL (#wikimedia-operations) [2020-01-23T12:31:33Z] <twentyafterfour> Deploying hotfix for T243479, restarting php7.3-fpm on phab1003