Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception rendering image file without $encode_setting
Closed, ResolvedPublic

Description

Cannot remember exact steps but was uploading JPEG images and embedding them via {F1234} syntax in a task description and a task comment to test thumbnailing.
Phorge at 67b7181f522673b05435083ce28106bdfa320e18, PHP 8.3.6.

[2024-05-13 14:28:03] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/files/document/render/PhabricatorDocumentRenderingEngine.php:211]
arcanist(head=master, ref.master=7f28d7266f81), phorge(head=master, ref.master=67b7181f5226), translations(head=wmf/stable, ref.master=09fe573a932a, ref.wmf/stable=e45c643766c8)
  #0 PhabricatorDocumentRenderingEngine::newRenderResponse(PhabricatorDocumentRef) called at [<phorge>/src/applications/files/controller/PhabricatorFileDocumentController.php:33]
  #1 PhabricatorFileDocumentController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #2 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #3 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[2024-05-13 14:28:03] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/files/document/render/PhabricatorDocumentRenderingEngine.php:216]
arcanist(head=master, ref.master=7f28d7266f81), phorge(head=master, ref.master=67b7181f5226), translations(head=wmf/stable, ref.master=09fe573a932a, ref.wmf/stable=e45c643766c8)
  #0 PhabricatorDocumentRenderingEngine::newRenderResponse(PhabricatorDocumentRef) called at [<phorge>/src/applications/files/controller/PhabricatorFileDocumentController.php:33]
  #1 PhabricatorFileDocumentController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #2 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #3 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.