Page MenuHomePhorge

PHP 8.0 ValueError calling mb_convert_encoding() with an invalid encoding
Closed, ResolvedPublic

Description

  1. PHP 8.2.6; Arcanist at 0e32dbc1ac8fe6ae03860640520c104fd6f8fe16
  2. Go to an existing Diffusion repository at http://phorge.localhost/diffusion/9/manage/basics/
  3. Select Edit Text Encoding in the side bar on the right to go to http://phorge.localhost/diffusion/edit/9/page/encoding/
  4. In the Text Encoding field, enter whatever
  5. Select Save Changes button
[2023-05-26 21:10:52] EXCEPTION: (ValueError) mb_convert_encoding(): Argument #2 ($to_encoding) must be a valid encoding, "whatever" given at [<arcanist>/src/utils/utf8.php:721]
arcanist(head=master, ref.master=0e32dbc1ac8f), phorge(head=master, ref.master=5405134fa5db)
  #0 phlog(ValueError) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #1 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, ValueError) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #2 AphrontApplicationConfiguration::handleThrowable(ValueError) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #3 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #4 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
PHP Fatal error:  Uncaught Exception: Process exited with an open transaction! The transaction will be implicitly rolled back. Calls to openTransaction() must always be paired with a call to saveTransaction() or killTransaction(). in /var/www/html/phorge/phorge/src/infrastructure/storage/connection/AphrontDatabaseTransactionState.php:78
Stack trace:
#0 [internal function]: AphrontDatabaseTransactionState->__destruct()
#1 {main}
  thrown in /var/www/html/phorge/phorge/src/infrastructure/storage/connection/AphrontDatabaseTransactionState.php on line 78

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.