Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception setting Passphrase Credential
Closed, ResolvedPublic

Description

  1. PHP 8.2.8; Phorge at 840a7fab2bc8844c52c3fb3b09d3e2afc84e7879
  2. Set an URI for an existing Diffusion repository
  3. Select that URI, to go to e.g. http://phorge.localhost/diffusion/19/uri/view/140/
  4. Select Set Credential in upper right corner to go to http://phorge.localhost/diffusion/19/uri/credential/140/edit/
[2023-08-01 17:02:39] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
arcanist(head=master, ref.master=788098096e11), phorge(head=master, ref.master=840a7fab2bc8)
  #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/passphrase/view/PassphraseCredentialControl.php:53]
  #1 <#2> PassphraseCredentialControl::renderInput() called at [<phorge>/src/view/form/control/AphrontFormControl.php:183]
  #2 <#2> phutil_tag(string, array, array) called at [<phorge>/src/view/form/PHUIFormLayoutView.php:49]
  #3 <#2> PHUIFormLayoutView::render() called at [<phorge>/src/view/AphrontView.php:222]
  #4 <#2> AphrontView::producePhutilSafeHTML() called at [<phorge>/src/infrastructure/markup/render.php:115]
  #5 <#2> phutil_escape_html(PHUIFormLayoutView) called at [<phorge>/src/infrastructure/markup/render.php:139]
  #6 <#2> phutil_escape_html(array) called at [<phorge>/src/infrastructure/markup/render.php:97]
  #7 <#2> phutil_tag(string, array, array) called at [<phorge>/src/view/AphrontDialogView.php:466]
  #8 <#2> AphrontDialogView::render() called at [<phorge>/src/aphront/response/AphrontDialogResponse.php:17]
  #9 <#2> AphrontDialogResponse::buildResponseString() called at [<phorge>/src/applications/base/controller/PhabricatorController.php:293]
  #10 <#2> PhabricatorController::willSendResponse(AphrontDialogResponse) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:300]
  #11 phlog(RuntimeException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #12 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #13 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:337]
  #14 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #15 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]