php – 无法为Drupal 8安装禁用多字节字符串输入转换

我已经安装了很多Drupal站点,之前从未遇到过这个问题.在尝试安装8.1.2时,我收到一条错误消息:

Multibyte string input conversion in PHP is active and must be
disabled. Check the PHP.ini mbstring.http_input setting. Please refer
to the PHP mbstring documentation for more information.

Drupal附带的.htaccess文件已经有一个应该禁用它的部分:

# PHP 5, Apache 1 and 2.
<IfModule mod_PHP5.c>
  PHP_value assert.active                   0
  PHP_flag session.auto_start               off
  PHP_value mbstring.http_input             pass
  PHP_value mbstring.http_output            pass
  PHP_flag mbstring.encoding_translation    off
  # PHP 5.6 has deprecated $HTTP_RAW_POST_DATA and produces warnings if this is
  # not set.
  PHP_value always_populate_raw_post_data   -1
</IfModule>

我已经测试过并使用了这个.htaccess文件.服务器正在运行带有cPanel / WHM的CentOS 7的新安装.我还将PHP设置(使用WHM)更改为:

; http input encoding.
mbstring.http_input = pass

; http output encoding. mb_output_handler must be
; registered as output buffer to function
mbstring.http_output = pass

虽然我不认为这与认值有明显区别.我检查过这是用过的实际PHP.ini文件.我重新启动了Apache.

解决方法:

解决方案是启用mbstring扩展.

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...