Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception shown when sending SMS Test Message to Contact Number
Closed, ResolvedPublic

Description

  1. PHP 8.2.5; Phorge at 4d9719539773167058cf2b6bf6309945f1c5adba
  2. Go to http://phorge.localhost/settings/user/user9/page/contact/
  3. Select Add Contact Number in upper right corner to go to http://phorge.localhost/auth/contact/edit/
  4. Enter +1234567890 and select Create Contact Number button
  5. Select Send Test Message in side bar
  6. In Set Test Message overlay dialog, select Send SMS button
[2023-05-10 17:55:07] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
arcanist(head=renderDashboardTabPanelContent, ref.master=d47289622650, ref.renderDashboardTabPanelContent=d47289622650), phorge(head=phoneMeHome, ref.master=4d9719539773, ref.phoneMeHome=4d9719539773)
  #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php:424]
  #1 <#2> PhabricatorMetaMTAMailViewController::buildMetadataProperties(PhabricatorMetaMTAMail) called at [<phorge>/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php:76]
  #2 <#2> PhabricatorMetaMTAMailViewController::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:203]
  #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

Fix that exception; afterwards page http://phorge.localhost/mail/detail/107/ 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.