Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception blocks rendering list of Active/All projects
Closed, ResolvedPublic

Description

  1. PHP 8.1.8, D25144, D25145, D25146, D25147, D25151, D25152, D25153 locally applied
  2. Go to http://phorge.localhost
  3. Select Projects in the sidebar to go to http://phorge.localhost/project/
  4. Select Active or All in the sidebar to go to http://phorge.localhost/project/query/active/ or http://phorge.localhost/project/query/all/
[2023-04-30 18:17:08] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
arcanist(head=master, ref.master=82d1abd4edd1), phorge(head=D25162, ref.master=5a0d82df7f86, ref.D25162=5a0d82df7f86)
  #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/transactions/editengine/PhabricatorEditEngineSubtype.php:92]
  #1 <#2> PhabricatorEditEngineSubtype::hasTagView() called at [<phorge>/src/applications/project/view/PhabricatorProjectListView.php:91]
  #2 <#2> PhabricatorProjectListView::renderList() called at [<phorge>/src/applications/project/query/PhabricatorProjectSearchEngine.php:332]
  #3 <#2> PhabricatorProjectSearchEngine::renderResultList(array, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1078]
  #4 <#2> PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:275]
  #5 <#2> PhabricatorApplicationSearchController::processSearchRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:91]
  #6 <#2> PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #7 <#2> AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #8 <#2> AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:50]
  #9 <#2> PhabricatorApplicationSearchEngine::buildResponse() called at [<phorge>/src/applications/project/controller/PhabricatorProjectListController.php:13]
  #10 <#2> PhabricatorProjectListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #11 phlog(RuntimeException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #12 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #13 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #14 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204]
  #15 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

Fix that line, afterwards list of projects is rendered correctly in web browser.

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.