Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception blocks rendering the "Manage Menu" page
Closed, ResolvedPublic

Description

  1. PHP 8.1.8.
  2. Go to http://phorge.localhost homepage
  3. Select Edit Menu in sidebar to go to http://phorge.localhost/home/menu/configure/
[2023-05-01 14:22:12] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
arcanist(head=T15263, ref.master=82d1abd4edd1, ref.T15263=4324d11c8b49), phorge(head=D25165, ref.master=6e8852837004, ref.D25165=6e8852837004)
  #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/search/engine/PhabricatorProfileMenuEngine.php:138]
  #1 <#2> PhabricatorProfileMenuEngine::buildResponse() called at [<phorge>/src/applications/home/controller/PhabricatorHomeMenuItemController.php:39]
  #2 <#2> PhabricatorHomeMenuItemController::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, Manage Menu page at http://phorge.localhost/home/menu/configure/ is correctly rendered in web browser, with the top options Personal Menu Items and Global Menu Items.

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.