Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception blocks creating Working Copy blueprint in Drydock
Closed, ResolvedPublic

Description

  1. PHP 8.2.6; Phorge at 10fae71a042f07d8901afd5dc2d737317f27a126
  2. Go to Drydock at http://phorge.localhost/drydock/
  3. Select Blueprints to go to http://phorge.localhost/drydock/blueprint/
  4. Select Create Blueprint in upper right corner to go to http://phorge.localhost/drydock/blueprint/edit/form/default/
  5. Under Blueprint Type, select Working Copy
  6. Select Continue button to go to http://phorge.localhost/drydock/blueprint/edit/form/default/
[2023-05-21 08:17:34] 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=e4fd31ec024e), phorge(head=blueprintAlmanacHosts, ref.master=10fae71a042f, ref.blueprintAlmanacHosts=10fae71a042f)
  #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php:27]
  #1 <#2> PhabricatorStandardCustomFieldInt::getValueForStorage() called at [<phorge>/src/infrastructure/customfield/field/PhabricatorCustomField.php:884]
  #2 <#2> PhabricatorCustomField::getNewValueForApplicationTransactions() called at [<phorge>/src/infrastructure/customfield/field/PhabricatorCustomField.php:1177]
  #3 <#2> PhabricatorCustomField::newStandardEditField() called at [<phorge>/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php:488]
  #4 <#2> PhabricatorStandardCustomField::newStandardEditField() called at [<phorge>/src/infrastructure/customfield/field/PhabricatorCustomField.php:1158]
  #5 <#2> PhabricatorCustomField::newStandardEditField() called at [<phorge>/src/infrastructure/customfield/field/PhabricatorCustomField.php:1117]
  #6 <#2> PhabricatorCustomField::getEditEngineFields(DrydockBlueprintEditEngine) called at [<phorge>/src/infrastructure/customfield/engineextension/PhabricatorCustomFieldEditEngineExtension.php:52]
  #7 <#2> PhabricatorCustomFieldEditEngineExtension::buildCustomEditFields(DrydockBlueprintEditEngine, DrydockBlueprint) called at [<phorge>/src/applications/transactions/editengine/PhabricatorEditEngine.php:188]
  #8 <#2> PhabricatorEditEngine::buildEditFields(DrydockBlueprint) called at [<phorge>/src/applications/transactions/editengine/PhabricatorEditEngine.php:1038]
  #9 <#2> PhabricatorEditEngine::buildEditResponse(DrydockBlueprint) called at [<phorge>/src/applications/transactions/editengine/PhabricatorEditEngine.php:1000]
  #10 <#2> PhabricatorEditEngine::buildResponse() called at [<phorge>/src/applications/drydock/controller/DrydockBlueprintEditController.php:26]
  #11 <#2> DrydockBlueprintEditController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #12 phlog(RuntimeException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #13 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #14 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #15 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #16 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

After fixing this, end up with the same exception as in T15408.

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.