PHP错误:
preg_replace(): Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support
上面的报错会导致preg_replace出错,在wordpress中会引起上传图片后图片缺少路径,变成1.,2.等恶心的问题。
解决的办法如下:
1. pcre --version 查看pcre版本
2.到http://sourceforge.net/projects/pcre/files/pcre/ 下载对应版本的pcre
3.重新编译: ./configure --enable-utf8
make make install
重启apache或者fpm,问题解决。