昨天在自己博客搜索的时候发现只显示一半,F12发现500了

使用显示错误代码,添加到wp-config.php

ini_set('display_errors','1');
error_reporting(E_ALL ^ E_NOTICE);

发现错误原因是缺乏 mb_strimwidth 方法,

突然想起搬迁之后没有装mbstring,Wordpress却跑这么久了

yum install php-mbstring

重启,解决.