Page MenuHomePhabricator

InvalidArgumentException when viewing upcoming calendar events
Closed, ResolvedPublic

Description

After today's update I run into an InvalidArgumentException when opening the upcoming calendar events view. The error message on the calendar page is:

Unhandled Exception ("InvalidArgumentException")
Argument 1 passed to PhabricatorTypeaheadDatasource::evaluateTokens() must be of the type array, null given, called in /srv/www/git.tapgrabgo.com/phabricator/phabricator/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php on line 130 and defined

The stack trace from the PHP error log is:

[16-Jun-2015 22:18:31 America/Los_Angeles] [2015-06-16 22:18:31] EXCEPTION: (InvalidArgumentException) Argument 1 passed to PhabricatorTypeaheadDatasource::evaluateTokens() must be of the type array, null given, called in /path/to/phabricator/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php on line 130 and defined at [<phutil>/src/error/PhutilErrorHandler.php:200]
[16-Jun-2015 22:18:31 America/Los_Angeles] arcanist(head=master, ref.master=9a7c4d87a850), phabricator(head=master, ref.master=6933ee5fb86d), phutil(head=master, ref.master=3b4da3f33153)
[16-Jun-2015 22:18:31 America/Los_Angeles]   #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer, array) called at [<phabricator>/src/applications/typeahead/datasource/PhabricatorTypeaheadDatasource.php:337]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #1 <#2> PhabricatorTypeaheadDatasource::evaluateTokens(NULL) called at [<phabricator>/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php:130]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #2 <#2> PhabricatorCalendarEventSearchEngine::buildQueryFromSavedQuery(PhabricatorSavedQuery) called at [<phabricator>/src/applications/search/controller/PhabricatorApplicationSearchController.php:209]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #3 <#2> PhabricatorApplicationSearchController::processSearchRequest() called at [<phabricator>/src/applications/search/controller/PhabricatorApplicationSearchController.php:78]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #4 <#2> PhabricatorApplicationSearchController::processRequest() called at [<phabricator>/src/aphront/AphrontController.php:33]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #5 <#2> AphrontController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/AphrontController.php:69]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #6 <#2> AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phabricator>/src/applications/calendar/controller/PhabricatorCalendarEventListController.php:24]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #7 <#2> PhabricatorCalendarEventListController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:226]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #8 phlog(InvalidArgumentException) called at [<phabricator>/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php:229]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #9 AphrontDefaultApplicationConfiguration::handleException(InvalidArgumentException) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:230]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #10 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:140]
[16-Jun-2015 22:18:31 America/Los_Angeles]   #11 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:21]

So far I have only 2 past events and 1 future event in my calendar. Let me know if you need any more information.

P.S.: I love the new flat design here! Is it already available for us mere mortals?

Event Timeline

tiguchi raised the priority of this task from to Needs Triage.
tiguchi updated the task description. (Show Details)
tiguchi added a project: Calendar.
tiguchi added a subscriber: tiguchi.
lavahot added a subscriber: lavahot.

I can confirm this. I got this error when viewing the agenda widget on my dashboard today:

InvalidArgumentException: Argument 1 passed to PhabricatorTypeaheadDatasource::evaluateTokens() must be of the type array, null given, called in /var/www/phabricator/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php on line 130 and defined

Sorry about this. Hopefully, I'll land a fix in the morning, but if you need to see events asap, the workaround is to use /calendar/query/advanced/. The issue is with saved queries, and advanced search is not a saved query.