Page MenuHomePhorge

PHP 8.1 "strlen(null)" exceptions mass-editing tasks when custom Date field present
Closed, ResolvedPublic

Description

  1. PHP 8.3.6; Phorge at 5444e1c885c337ede0f1fb4ad1916ae0b49b1413
  2. Have http://phorge.localhost/config/edit/maniphest.custom-field-definitions/ set to { "deadline.due": { "name": "Due Date", "view": true, "edit": true, "description": "Deadline", "search": true, "fulltext": true, "type": "date", "copy": false } }
  3. Have more than hundred tasks visible to the current user
  4. Go to http://phorge.localhost/maniphest/ , select two tasks, click Bulk Edit Selected
[2024-04-19 15:21:04] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php:113]
arcanist(head=master, ref.master=ef73b12b580e), phorge(head=master, ref.master=5444e1c885c3)
  #0 PhabricatorStandardCustomFieldDate::applyApplicationSearchConstraintToQuery(ManiphestTaskSearchEngine, ManiphestTaskQuery, array) called at [<phorge>/src/infrastructure/customfield/field/PhabricatorCustomField.php:794]
  #1 PhabricatorCustomField::applyApplicationSearchConstraintToQuery(ManiphestTaskSearchEngine, ManiphestTaskQuery, array) called at [<phorge>/src/infrastructure/customfield/engineextension/PhabricatorCustomFieldSearchEngineExtension.php:48]
  #2 PhabricatorCustomFieldSearchEngineExtension::applyConstraintsToQuery(ManiphestTask, ManiphestTaskQuery, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:177]
  #3 PhabricatorApplicationSearchEngine::buildQueryFromSavedQuery(PhabricatorSavedQuery) called at [<phorge>/src/applications/transactions/bulk/PhabricatorBulkEngine.php:183]
  #4 PhabricatorBulkEngine::loadObjectList() called at [<phorge>/src/applications/transactions/bulk/PhabricatorBulkEngine.php:92]
  #5 PhabricatorBulkEngine::buildResponse() called at [<phorge>/src/applications/maniphest/controller/ManiphestBulkEditController.php:29]
  #6 ManiphestBulkEditController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #7 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #8 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

[2024-04-19 15:21:04] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php:120]
arcanist(head=master, ref.master=ef73b12b580e), phorge(head=master, ref.master=5444e1c885c3)
  #0 PhabricatorStandardCustomFieldDate::applyApplicationSearchConstraintToQuery(ManiphestTaskSearchEngine, ManiphestTaskQuery, array) called at [<phorge>/src/infrastructure/customfield/field/PhabricatorCustomField.php:794]
  #1 PhabricatorCustomField::applyApplicationSearchConstraintToQuery(ManiphestTaskSearchEngine, ManiphestTaskQuery, array) called at [<phorge>/src/infrastructure/customfield/engineextension/PhabricatorCustomFieldSearchEngineExtension.php:48]
  #2 PhabricatorCustomFieldSearchEngineExtension::applyConstraintsToQuery(ManiphestTask, ManiphestTaskQuery, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:177]
  #3 PhabricatorApplicationSearchEngine::buildQueryFromSavedQuery(PhabricatorSavedQuery) called at [<phorge>/src/applications/transactions/bulk/PhabricatorBulkEngine.php:183]
  #4 PhabricatorBulkEngine::loadObjectList() called at [<phorge>/src/applications/transactions/bulk/PhabricatorBulkEngine.php:92]
  #5 PhabricatorBulkEngine::buildResponse() called at [<phorge>/src/applications/maniphest/controller/ManiphestBulkEditController.php:29]
  #6 ManiphestBulkEditController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #7 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #8 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.