PCRE is not compiled with PCRE_UTF8错误
来源:互联网 发布:php培训机构排名 编辑:程序博客网 时间:2024/06/08 05:18
前几天突然发现自己的两个页面和控制板中分别出现了如下的错误:
- Warning: preg_match() [function.preg-match]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /home/ghouck/domains/dysph.net/public_html/blog/wp-includes/class-simplepie.php on line 11043
- Warning: preg_replace() [function.preg-replace]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /home/ghouck/domains/dysph.net/public_html/blog/wp-includes/shortcodes.php on line 228
Google了一下,找到的全是国外网站,稍微看了看,都是说的PHP Server问题.
自己对PHP完全不了解,不过看描述貌似是服务器上PCRE的版本无法支持UTF-8,要解决还要从Server上着手,于是联系了空间的管理员,结果他也不清楚怎么处理,无法解决…
还是得自己想办法,接着又翻了翻google,所幸找到一个临时的办法,万一有哪位同学遇到了同样的问题,可以试试 : )
方法如下:
打开class-simplepie.php和shortcodes.php,找到报错的那一行,将其中preg_match改为@preg_match,即
return (bool) @preg_match(…); (括号中的内容省略)
和
$text = @preg_replace(…); (括号中的内容省略)
保存后,错误提示消失.
阅读全文
0 0
- PCRE is not compiled with PCRE_UTF8错误
- Character set 'utf8mb4' is not a compiled character set
- Omnet错误:the module is not linked with Define_Module()
- The file has not been pre-compiled错误
- Apache遇到的问题:APR not found、APR-util not found 、pcre-config for libpcre not found. PCRE is required
- Character set 'utf-8' is not a compiled character set and is not specifie
- Character set 'utf-8' is not a compiled character set and is not specifie
- Character set 'utf-8' is not a compiled character set and is not specified
- was compiled with optimization
- was compiled with optimization
- 错误:is not mapped
- 导入一个例子,报XXX.jar is cross-compiled with an incompatible version of Scala (2.10).
- 已解决 The SDK platform-tools version(20) is too old to check APIs compiled with ...
- The SDK platform-tools version(24) is too old to check APIs compiled with API 25
- The SDK platform-tools version 23 is too old to check APIs compiled with API 24... ...
- 【Android Studio】platform-tools is too old to check APIs compiled with API 27
- mysql: Character set 'utf8mb4' is not a compiled character set and is not specified in the '/usr/sha
- mysql: Character set 'utf8mb4' is not a compiled character set and is not specified in the '/usr/sha
- java PriorityBlockingQueue——按优先级排序的阻塞式线程安全列表
- 并发优化笔记
- 1122. Hamiltonian Cycle (25)
- kafka安装
- popwindow缩放显示消失动画
- PCRE is not compiled with PCRE_UTF8错误
- vueJs(2.x)+router+vuex简易博客系统<一>
- 开发框架-Spring-Spring Boot属性文件及多环境配置
- Linux更改命令提示符信息
- MASKRCNN(之三)demo.
- Git详细教程
- css3:selection
- 安装python
- IntersectionObserver API