Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception blocks rendering a config page
Closed, ResolvedPublic

Description

  1. PHP 8.1.8; Phorge at 8a3e063000c593c2730a01687723b5b02301c3f8
  2. Go to http://phorge.localhost/config/settings/all/
  3. Select Load Libraries to get to http://phorge.localhost/config/edit/load-libraries/
[2023-05-03 16:53:17] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
arcanist(head=workbColAutoCompl, ref.master=82d1abd4edd1, ref.workbColAutoCompl=057c306f4cb6), phorge(head=configLoadLibraries, ref.master=8a3e063000c5, ref.configLoadLibraries=8a3e063000c5)
  #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/config/option/PhabricatorConfigOption.php:208]
  #1 <#2> PhabricatorConfigOption::newDescriptionRemarkupView(PhabricatorUser) called at [<phorge>/src/applications/config/controller/settings/PhabricatorConfigEditController.php:158]
  #2 <#2> PhabricatorConfigEditController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #3 phlog(RuntimeException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #4 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #5 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204]
  #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

Fix that line. Afterwards, load-libraries page gets rendered 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.