Page MenuHomePhorge

Creating or editing a project under PHP 8.1 causes strlen() null error with custom integer fields
Closed, WontfixPublic

Description

Going to https://my.phorge.site/project/edit/form/default/ , filling in the form, then clicking on 'Create New Project' results in a strlen() null exception.

Stack trace:

EXCEPTION: (RuntimeException) strlen(): Passing null to parameter
#1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]PHP message: arcanist(head=master, ref.master=df6c315ace5f, custom=4), phorge(head=master, ref.master=1720209f16c3)PHP message:
#0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php:87]PHP message:
#1 <#2> PhabricatorStandardCustomFieldInt::validateApplicationTransactions(PhabricatorProjectTransactionEditor, string, array) called at [<phorge>/src/infrastructure/customfield/field/PhabricatorCustomField.php:1011]PHP message:
#2 <#2> PhabricatorCustomField::validateApplicationTransactions(PhabricatorProjectTransactionEditor, string, array) called at [<phorge>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:2926]PHP message:
#3 <#2> PhabricatorApplicationTransactionEditor::validateTransaction(PhabricatorProject, string, array) called at [<phorge>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1235]PHP message:
#4 <#2> PhabricatorApplicationTransactionEditor::applyTransactions(PhabricatorProject, array) called at [<phorge>/src/applications/transactions/editengine/PhabricatorEditEngine.php:1149]PHP message:
#5 <#2> PhabricatorEditEngine::buildEditResponse(PhabricatorProject) called at [<phorge>/src/applications/transactions/editengine/PhabricatorEditEngine.php:1000]PHP message:
#6 <#2> PhabricatorEditEngine::buildResponse() called at [<phorge>/src/applications/project/controller/PhabricatorProjectEditController.php:91]PHP message:
#7 <#2> PhabricatorProjectEditController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]PHP message:
#8 phlog(RuntimeException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]PHP message:
#9 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]PHP message:
#10 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]PHP message:
#11 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204]PHP message:
#12 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

Sten updated the task description. (Show Details)
valerio.bozzolan renamed this task from Creating or editing a project under PHP 8.1 causes strlen() null error to Creating or editing a project under PHP 8.1 causes strlen() null error with custom integer fields.Nov 21 2023, 09:33

Can no longer replicate the fault.