Page MenuHomePhorge

PHP8.1: strlen() null exception when creating a tab panel in a dashboard
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Create new or edit existing dashboard
  2. Click Create Panel
  3. Select Tab Panel
  4. Enter some name for new Tab Panel
  5. Click Create Panel
  6. Click Add Tab...
  7. Click Add Existing Panel
  8. Exception is shown: strlen(): Passing null to parameter #1 ($string) of type string is deprecated
Stack trace
[Sat Jul 29 20:04:53.859321 2023] [php:notice] [::1:46606] [2023-07-29 18:04:53] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
[Sat Jul 29 20:04:53.859596 2023] [php:notice] [::1:46606] arcanist(head=master, ref.master=788098096e11), diagram(head=master, ref.master=3b52564281f2), phorge(head=master, ref.master=007e7621f298, custom=1)
[Sat Jul 29 20:04:53.859603 2023] [php:notice] [::1:46606]   #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/dashboard/controller/panel/PhabricatorDashboardPanelTabsController.php:44]
[Sat Jul 29 20:04:53.859606 2023] [php:notice] [::1:46606]   #1 <#2> PhabricatorDashboardPanelTabsController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
[Sat Jul 29 20:04:53.859608 2023] [php:notice] [::1:46606]   #2 phlog(RuntimeException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
[Sat Jul 29 20:04:53.859610 2023] [php:notice] [::1:46606]   #3 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
[Sat Jul 29 20:04:53.859619 2023] [php:notice] [::1:46606]   #4 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
[Sat Jul 29 20:04:53.859622 2023] [php:notice] [::1:46606]   #5 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
[Sat Jul 29 20:04:53.859624 2023] [php:notice] [::1:46606]   #6 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.