Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception blocks rendering MFA Provider page
Closed, ResolvedPublic

Description

  1. PHP 8.2.6; Phorge at 4d1adf69392a230075b8a4799058821d11cab16d
  2. As an admin user, go to http://phorge.localhost/auth/mfa/
  3. Select Add MFA Provider in upper right corner
  4. In the Choose Provider Type overlay dialog, select option Mobile Phone App (TOTP)
  5. On http://phorge.localhost/auth/mfa/edit/?providerFactorKey=totp , enter no Name and select Create MFA Provider button
[2023-05-12 16:43:31] 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=master, ref.master=4d1adf69392a)
  #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/auth/controller/mfa/PhabricatorAuthFactorProviderViewController.php:86]
  #1 <#2> PhabricatorAuthFactorProviderViewController::buildPropertiesView(PhabricatorAuthFactorProvider) called at [<phorge>/src/applications/auth/controller/mfa/PhabricatorAuthFactorProviderViewController.php:25]
  #2 <#2> PhabricatorAuthFactorProviderViewController::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 Mobile Phone App (TOTP) at http://phorge.localhost/auth/mfa/4/ renders 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.