Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception adding an MFA provider
Open, Needs TriagePublic

Description

  1. PHP 8.3.16
  2. Set up some MFA provider at http://wmfphab.localhost/auth/mfa/
  3. Go to http://wmfphab.localhost/feed/transactions/ and check that entry about the previous step
[2025-02-10 11:46:03] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/wmfphab/deployment/phabricator/src/applications/auth/xaction/PhabricatorAuthFactorProviderNameTransaction.php:20]
arcanist(), ava(), phorge(), wmf-ext-misc()
  #0 PhabricatorAuthFactorProviderNameTransaction::getTitle() called at [<phorge>/src/applications/transactions/storage/PhabricatorModularTransaction.php:127]
  #1 PhabricatorModularTransaction::getTitle() called at [<phorge>/src/applications/feed/query/PhabricatorFeedTransactionSearchEngine.php:121]
  #2 PhabricatorFeedTransactionSearchEngine::renderResultList(array, PhabricatorSavedQuery, PhabricatorHandleList) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1080]
  #3 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:299]
  #4 PhabricatorApplicationSearchController::processSearchRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:91]
  #5 PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #6 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #7 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:50]
  #8 PhabricatorApplicationSearchEngine::buildResponse() called at [<phorge>/src/applications/feed/controller/PhabricatorFeedTransactionListController.php:13]
  #9 PhabricatorFeedTransactionListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #10 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #11 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.

Event Timeline

Cigaryno moved this task from Backlog to PHP 8.1 on the PHP 8 support board.

@Cigaryno: What is the real advantage of having a workboard which puts currently 12 open tasks into 5 different categories (one of them useless as "Deprecation Notices" is just Backlog too), with the column name already contained in the task title anyway?
This feels like categorization for the sake of categorization, with no gain except for spending time moving things and creating notifications that someone has to read.

I think you are right for unnecessary catetorization and sending notifications.