Page MenuHomePhorge

PHP 8.1 "strlen(null)" exceptions searching in Conpherence
Closed, ResolvedPublic

Description

  1. PHP 8.3.21; Phorge at latest master
  2. Go to http://phorge.localhost/Z1 with some posts in there
  3. Click the magnifier search icon among the four icons in the upper right corner
  4. Enter some string previously posted and press the Enter key
ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/conpherence/query/ConpherenceFulltextQuery.php:58]
arcanist(head=master, ref.master=80906355979a), phorge(head=master, ref.master=a3cad3a3623e)
  #0 ConpherenceFulltextQuery::buildWhereClause(AphrontMySQLiDatabaseConnection) called at [<phorge>/src/applications/conpherence/query/ConpherenceFulltextQuery.php:34]
  #1 ConpherenceFulltextQuery::execute() called at [<phorge>/src/applications/conpherence/query/ConpherenceThreadSearchEngine.php:312]
  #2 ConpherenceThreadSearchEngine::loadContextMessages(array, string) called at [<phorge>/src/applications/conpherence/query/ConpherenceThreadSearchEngine.php:110]
  #3 ConpherenceThreadSearchEngine::renderResultList(array, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1083]
  #4 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/conpherence/controller/ConpherenceThreadSearchController.php:36]
  #5 ConpherenceThreadSearchController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/conpherence/query/ConpherenceFulltextQuery.php:73]
arcanist(head=master, ref.master=80906355979a), phorge(head=master, ref.master=a3cad3a3623e)
  #0 ConpherenceFulltextQuery::buildOrderByClause(AphrontMySQLiDatabaseConnection) called at [<phorge>/src/applications/conpherence/query/ConpherenceFulltextQuery.php:35]
  #1 ConpherenceFulltextQuery::execute() called at [<phorge>/src/applications/conpherence/query/ConpherenceThreadSearchEngine.php:312]
  #2 ConpherenceThreadSearchEngine::loadContextMessages(array, string) called at [<phorge>/src/applications/conpherence/query/ConpherenceThreadSearchEngine.php:110]
  #3 ConpherenceThreadSearchEngine::renderResultList(array, PhabricatorSavedQuery, array) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1083]
  #4 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/conpherence/controller/ConpherenceThreadSearchController.php:36]
  #5 ConpherenceThreadSearchController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #7 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.