Page MenuHomePhorge

PHP 8.1 "preg_match(null)" exception exporting task list to CSV
Closed, ResolvedPublic

Description

  1. PHP 8.2.17; Phorge at d4af32c1d4120a5804e3d8c4b9d9c37476aa272e
  2. Have some Maniphest tasks assigned to yourself
  3. Go to http://phorge.localhost/maniphest/query/assigned/
  4. Select Use Results > Export Data
  5. Select Format = CSV and click Download Data button
[2024-04-02 20:15:17] ERROR 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated at [/var/www/html/phorge/phorge/src/infrastructure/export/format/PhabricatorCSVExportFormat.php:51]
arcanist(head=master, ref.master=ef73b12b580e), phorge(head=master, ref.master=d4af32c1d412)
  #0 preg_match(string, NULL) called at [<phorge>/src/infrastructure/export/format/PhabricatorCSVExportFormat.php:51]
  #1 PhabricatorCSVExportFormat::addRow(array) called at [<phorge>/src/infrastructure/export/format/PhabricatorCSVExportFormat.php:39]
  #2 PhabricatorCSVExportFormat::addObject(ManiphestTask, array, array) called at [<phorge>/src/infrastructure/export/engine/PhabricatorExportEngine.php:146]
  #3 PhabricatorExportEngine::exportFile() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:520]
  #4 PhabricatorApplicationSearchController::processExportRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:80]
  #5 PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #6 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #7 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/maniphest/controller/ManiphestTaskListController.php:20]
  #8 ManiphestTaskListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #9 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #10 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[2024-04-02 20:15:17] ERROR 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated at [/var/www/html/phorge/phorge/src/infrastructure/export/format/PhabricatorCSVExportFormat.php:55]
arcanist(head=master, ref.master=ef73b12b580e), phorge(head=master, ref.master=d4af32c1d412)
  #0 preg_match(string, NULL) called at [<phorge>/src/infrastructure/export/format/PhabricatorCSVExportFormat.php:55]
  #1 PhabricatorCSVExportFormat::addRow(array) called at [<phorge>/src/infrastructure/export/format/PhabricatorCSVExportFormat.php:39]
  #2 PhabricatorCSVExportFormat::addObject(ManiphestTask, array, array) called at [<phorge>/src/infrastructure/export/engine/PhabricatorExportEngine.php:146]
  #3 PhabricatorExportEngine::exportFile() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:520]
  #4 PhabricatorApplicationSearchController::processExportRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:80]
  #5 PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #6 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #7 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/maniphest/controller/ManiphestTaskListController.php:20]
  #8 ManiphestTaskListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #9 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #10 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

repeated for every task.

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.