Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception creating a Portal
Closed, ResolvedPublic

Description

  1. PHP 8.3.8; Phorge at a8af0c6e511943e1e476eed9ea94d7fba8b5e3f6
  2. Go to http://phorge.localhost/portal/edit/form/default/
  3. Set Name to Portal1 and click Create Portal.
[2024-06-05 11:37:05] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/dashboard/menuitem/PhabricatorDashboardPortalMenuItem.php:34]
arcanist(head=master, ref.master=6250296648fa), ava(head=wmf/stable, ref.master=d3f5a1c67bb4, ref.wmf/stable=0b414fb56fe3), phorge(head=master, ref.master=a8af0c6e5119), translations(head=wmf/stable, ref.master=09fe573a932a, ref.wmf/stable=167add8ed379)
  #0 PhabricatorDashboardPortalMenuItem::getDisplayName(PhabricatorProfileMenuItemConfiguration) called at [<phorge>/src/applications/dashboard/menuitem/PhabricatorDashboardPortalMenuItem.php:61]
  #1 PhabricatorDashboardPortalMenuItem::newMenuItemViewList(PhabricatorProfileMenuItemConfiguration) called at [<phorge>/src/applications/search/menuitem/PhabricatorProfileMenuItem.php:77]
  #2 PhabricatorProfileMenuItem::getMenuItemViewList(PhabricatorProfileMenuItemConfiguration) called at [<phorge>/src/applications/search/storage/PhabricatorProfileMenuItemConfiguration.php:129]
  #3 PhabricatorProfileMenuItemConfiguration::getMenuItemViewList() called at [<phorge>/src/applications/search/engine/PhabricatorProfileMenuEngine.php:1293]
  #4 PhabricatorProfileMenuEngine::newProfileMenuItemViewList() called at [<phorge>/src/applications/search/engine/PhabricatorProfileMenuEngine.php:133]
  #5 PhabricatorProfileMenuEngine::buildResponse() called at [<phorge>/src/applications/dashboard/controller/portal/PhabricatorDashboardPortalViewController.php:39]
  #6 PhabricatorDashboardPortalViewController::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.