Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception rendering JSON file as Jupyter
Closed, ResolvedPublic

Description

  1. PHP 8.3.12; Phorge at 23a49eb403c9ea6c58f4ae2f22416e90a9d24c14
  2. Go to http://phorge.localhost/file/upload/ and upload a JSON file.
  3. On resulting http://phorge.localhost/F123456 , click "View Options" and select "View as Jupyter Notebook" from the options.
[2024-10-21 18:03:31] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/files/document/PhabricatorJupyterDocumentEngine.php:326]
arcanist(head=master, ref.master=285e31f4c743), phorge(head=jupyterNbformat, ref.master=23a49eb403c9, ref.jupyterNbformat=23a49eb403c9)
  #0 PhabricatorJupyterDocumentEngine::newCells(string, boolean) called at [<phorge>/src/applications/files/document/PhabricatorJupyterDocumentEngine.php:280]
  #1 PhabricatorJupyterDocumentEngine::newDocumentContent(PhabricatorDocumentRef) called at [<phorge>/src/applications/files/document/PhabricatorDocumentEngine.php:133]
  #2 PhabricatorDocumentEngine::newDocument(PhabricatorDocumentRef) called at [<phorge>/src/applications/files/document/render/PhabricatorDocumentRenderingEngine.php:224]
  #3 PhabricatorDocumentRenderingEngine::newRenderResponse(PhabricatorDocumentRef) called at [<phorge>/src/applications/files/controller/PhabricatorFileDocumentController.php:33]
  #4 PhabricatorFileDocumentController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #5 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #6 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.