Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception when setting up Phorge locally
Closed, ResolvedPublic

Description

When setting up Phorge locally, I got a RuntimeException. Here is the stacktrace:

Fri Aug 18 15:39:44.468364 2023] [php:notice] [pid 485096] [client 127.0.0.1:49346] [2023-08-18 15:39:44] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
[Fri Aug 18 15:39:44.468703 2023] [php:notice] [pid 485096] [client 127.0.0.1:49346] arcanist(head=master, ref.master=df6c315ace5f), phorge(head=arcpatch-D25079, ref.master=0ef08baf6452, ref.arcpatch-D25079=7595fa8fc196)
[Fri Aug 18 15:39:44.468717 2023] [php:notice] [pid 485096] [client 127.0.0.1:49346]   #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/infrastructure/env/PhabricatorEnv.php:128]
[Fri Aug 18 15:39:44.468722 2023] [php:notice] [pid 485096] [client 127.0.0.1:49346]   #1 <#2> PhabricatorEnv::initializeCommonEnvironment(boolean) called at [<phorge>/src/infrastructure/env/PhabricatorEnv.php:71]
[Fri Aug 18 15:39:44.468726 2023] [php:notice] [pid 485096] [client 127.0.0.1:49346]   #2 <#2> PhabricatorEnv::initializeWebEnvironment() called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:113]
[Fri Aug 18 15:39:44.468729 2023] [php:notice] [pid 485096] [client 127.0.0.1:49346]   #3 <#2> AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[Fri Aug 18 15:39:44.468732 2023] [php:notice] [pid 485096] [client 127.0.0.1:49346]   #4 phlog(RuntimeException) called at [<phorge>/src/aphront/response/AphrontUnhandledExceptionResponse.php:32]
[Fri Aug 18 15:39:44.468735 2023] [php:notice] [pid 485096] [client 127.0.0.1:49346]   #5 AphrontUnhandledExceptionResponse::setException(RuntimeException) called at [<phorge>/webroot/index.php:46]

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

waldyrious claimed this task.

Oops, sorry, I was not on master. I was actually testing out D25079. This is already fixed on master, by @valerio.bozzolan.