Page MenuHomePhorge

Going to Phorge website fails with strlen() error under PHP 8.1 when database replication is configured but not replicating
Closed, ResolvedPublic

Description

Error:

[Fri Jun 30 07:17:45.772423 2023] [proxy_fcgi:error] [pid 4330] [client 10.11.12.13:4567] AH01071: Got error 'PHP message: [2023-06-30 07:17:45] 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=8130241a11ac, custom=4), phorge(head=master, ref.master=7c1487e4dcfa)PHP message:   #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/infrastructure/cluster/PhabricatorDatabaseRef.php:396]PHP message:   #1 <#2> PhabricatorDatabaseRef::queryRefs(array) called at [<phorge>/src/infrastructure/cluster/PhabricatorDatabaseRef.php:339]PHP message:   #2 <#2> PhabricatorDatabaseRef::queryAll() called at [<phorge>/src/applications/config/check/PhabricatorDatabaseSetupCheck.php:46]PHP message:   #3 <#2> PhabricatorDatabaseSetupCheck::executeChecks() called at [<phorge>/src/applications/config/check/PhabricatorSetupCheck.php:63]PHP message:   #4 <#2> PhabricatorSetupCheck::runSetupChecks() called at [<phorge>/src/applications/config/check/PhabricatorSetupCheck.php:258]PHP message:   #5 <#2> PhabricatorSetupCheck::runNormalChecks() called at [<phorge>/src/applications/config/engine/PhabricatorSetupEngine.php:26]PHP message:   #6 <#2> PhabricatorSetupEngine::execute() called at [<phorge>/src/applications/config/check/PhabricatorSetupCheck.php:194]PHP message:   #7 <#2> PhabricatorSetupCheck::willProcessRequest() called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:169]PHP message:   #8 <#2> AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]PHP message:   #9 phlog(RuntimeException) called at [<phorge>/src/aphront/response/AphrontUnhandledExceptionResponse.php:32]PHP message:   #10 AphrontUnhandledExceptionResponse::setException(RuntimeException) called at [<phorge>/webroot/index.php:46]'

This occurs when SHOW SLAVE STATUS shows

Seconds_Behind_Master: NULL

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.