update.php fails with Multibyte string input conversion in PHP is active and must be disabled.

Created on 19 February 2023, almost 2 years ago
Updated 16 June 2023, over 1 year ago

Problem/Motivation

In mydomain.com/update.php, I tried to update the database, but it says "Multibyte string input conversion in PHP is active and must be disabled. Please refer to the PHP mbstring documentation for more information.

This is the full msg: Error: Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.encoding_translation setting. Please refer to the PHP mbstring documentation for more information.

Steps to reproduce

Reload mydomain.com/update.php as described above and an error will occur.

I have tried the following responses based on various, community posts, but the message persists.

- php.ini
Ensure that the settings are as follows

mbstring.http_input = pass
mbstring.http_output = pass
mbstring.encoding_translation = Off

- /public_html/sites/default/settings.php
Add the following code to the top of the file

ini_set('mbstring.http_input', 'pass');
ini_set('mbstring.http_output', 'pass');

- .htaccess
Add input and output code under "php_value assert.active 0" as follows.

<IfModule mod_php.c>
  php_value assert.active                   0
  php_value mbstring.http_input             pass                                
  php_value mbstring.http_output            pass                                
</IfModule>

It may be related to the fact that "mbstring.http_input" and "mbstring.http_output" are deprecated in php8, but I don't know how to solve it specifically.

Any advice would be appreciated.

πŸ’¬ Support request
Status

Closed: outdated

Version

9.5

Component
Database updateΒ  β†’

Last updated 16 days ago

No maintainer
Created by

πŸ‡―πŸ‡΅Japan carrotandme

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024