Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception after removing custom alt text from image file
Closed, ResolvedPublic

Description

  1. PHP 8.2.13, Phorge at 4d4712b58d2a4c9856d9d462e4737eac08604f09
  2. Go to an existing uploaded image file, e.g. http://phorge.localhost/F292
  3. Select Edit File to go to http://phorge.localhost/file/edit/292/
  4. Set Alt Text to alttexxt and click Save Changes
  5. Select Edit File to go to http://phorge.localhost/file/edit/292/
  6. Remove custom Alt Text and click Save Changes
  7. Go to http://phorge.localhost/feed/query/all/
[2023-11-28 12:35:34] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php:59]
arcanist(head=master, ref.master=5bc53cfe53d0), phorge(head=master, ref.master=4d4712b58d2a)
  #0 PhabricatorFileAltTextTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/storage/PhabricatorModularTransaction.php:154]
  #1 PhabricatorModularTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php:151]
  #2 PhabricatorApplicationTransactionFeedStory::renderView() called at [<phorge>/src/applications/feed/builder/PhabricatorFeedBuilder.php:62]
  #3 PhabricatorFeedBuilder::buildView() called at [<phorge>/src/applications/feed/query/PhabricatorFeedSearchEngine.php:152]
  #4 PhabricatorFeedSearchEngine::renderResultList(array, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1078]
  #5 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:275]
  #6 PhabricatorApplicationSearchController::processSearchRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:91]
  #7 PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #8 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #9 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:50]
  #10 PhabricatorApplicationSearchEngine::buildResponse() called at [<phorge>/src/applications/feed/controller/PhabricatorFeedListController.php:24]
  #11 PhabricatorFeedListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #12 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #13 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[2023-11-28 12:35:34] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php:53]
arcanist(head=master, ref.master=5bc53cfe53d0), phorge(head=master, ref.master=4d4712b58d2a)
  #0 PhabricatorFileAltTextTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/storage/PhabricatorModularTransaction.php:154]
  #1 PhabricatorModularTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php:151]
  #2 PhabricatorApplicationTransactionFeedStory::renderView() called at [<phorge>/src/applications/feed/builder/PhabricatorFeedBuilder.php:62]
  #3 PhabricatorFeedBuilder::buildView() called at [<phorge>/src/applications/feed/query/PhabricatorFeedSearchEngine.php:152]
  #4 PhabricatorFeedSearchEngine::renderResultList(array, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1078]
  #5 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:275]
  #6 PhabricatorApplicationSearchController::processSearchRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:91]
  #7 PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #8 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #9 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:50]
  #10 PhabricatorApplicationSearchEngine::buildResponse() called at [<phorge>/src/applications/feed/controller/PhabricatorFeedListController.php:24]
  #11 PhabricatorFeedListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #12 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #13 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[2023-11-28 12:35:34] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php:53]
arcanist(head=master, ref.master=5bc53cfe53d0), phorge(head=master, ref.master=4d4712b58d2a)
  #0 PhabricatorFileAltTextTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/storage/PhabricatorModularTransaction.php:154]
  #1 PhabricatorModularTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php:151]
  #2 PhabricatorApplicationTransactionFeedStory::renderView() called at [<phorge>/src/applications/feed/builder/PhabricatorFeedBuilder.php:62]
  #3 PhabricatorFeedBuilder::buildView() called at [<phorge>/src/applications/feed/query/PhabricatorFeedSearchEngine.php:152]
  #4 PhabricatorFeedSearchEngine::renderResultList(array, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1078]
  #5 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:275]
  #6 PhabricatorApplicationSearchController::processSearchRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:91]
  #7 PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #8 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #9 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:50]
  #10 PhabricatorApplicationSearchEngine::buildResponse() called at [<phorge>/src/applications/feed/controller/PhabricatorFeedListController.php:24]
  #11 PhabricatorFeedListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #12 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #13 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[2023-11-28 12:35:34] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php:59]
arcanist(head=master, ref.master=5bc53cfe53d0), phorge(head=master, ref.master=4d4712b58d2a)
  #0 PhabricatorFileAltTextTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/storage/PhabricatorModularTransaction.php:154]
  #1 PhabricatorModularTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php:151]
  #2 PhabricatorApplicationTransactionFeedStory::renderView() called at [<phorge>/src/applications/feed/builder/PhabricatorFeedBuilder.php:62]
  #3 PhabricatorFeedBuilder::buildView() called at [<phorge>/src/applications/feed/query/PhabricatorFeedSearchEngine.php:152]
  #4 PhabricatorFeedSearchEngine::renderResultList(array, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1078]
  #5 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:275]
  #6 PhabricatorApplicationSearchController::processSearchRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:91]
  #7 PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #8 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #9 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:50]
  #10 PhabricatorApplicationSearchEngine::buildResponse() called at [<phorge>/src/applications/feed/controller/PhabricatorFeedListController.php:24]
  #11 PhabricatorFeedListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #12 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #13 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[2023-11-28 12:35:34] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php:53]
arcanist(head=master, ref.master=5bc53cfe53d0), phorge(head=master, ref.master=4d4712b58d2a)
  #0 PhabricatorFileAltTextTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/storage/PhabricatorModularTransaction.php:154]
  #1 PhabricatorModularTransaction::getTitleForFeed() called at [<phorge>/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php:151]
  #2 PhabricatorApplicationTransactionFeedStory::renderView() called at [<phorge>/src/applications/feed/builder/PhabricatorFeedBuilder.php:62]
  #3 PhabricatorFeedBuilder::buildView() called at [<phorge>/src/applications/feed/query/PhabricatorFeedSearchEngine.php:152]
  #4 PhabricatorFeedSearchEngine::renderResultList(array, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1078]
  #5 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:275]
  #6 PhabricatorApplicationSearchController::processSearchRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:91]
  #7 PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #8 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #9 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:50]
  #10 PhabricatorApplicationSearchEngine::buildResponse() called at [<phorge>/src/applications/feed/controller/PhabricatorFeedListController.php:24]
  #11 PhabricatorFeedListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #12 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #13 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.