我的博客

[错误解决]wordpress Call to undefined function gzinflate()

目录

错误提示

Fatal error: Uncaught Error: Call to undefined function gzinflate() in /usr/local/nginx/html/wp-includes/class-requests.php:947 Stack trace: #0 /usr/local/nginx/html/wp-includes/class-requests.php(886): Requests::compatible_gzinflate(‘\x8DP\xC1\x0E\x820\f\xFD\x17\xCEf\x83\x18\x05\xB9…’) #1 /usr/local/nginx/html/wp-includes/class-requests.php(835): Requests::compatible_gzinflate(‘\x1F\x8B\x08\x00\x00\x00\x00\x00\x00\x03\x8DP\xC1\x0E\x82…’) #2 /usr/local/nginx/html/wp-includes/class-requests.php(675): Requests::decompress(‘\x1F\x8B\x08\x00\x00\x00\x00\x00\x00\x03\x8DP\xC1\x0E\x82…’) #3 /usr/local/nginx/html/wp-includes/class-requests.php(383): Requests::parse_response(Array, ‘http://api.word...', Array, Array, Array) #4 /usr/local/nginx/html/wp-includes/class-http.php(384): Requests::request(‘http://api.word...', Array, Array, ‘POST’, Array) #5 /usr/local/nginx/html/wp-includes/class-http.php(596): WP_Http->request(‘http://api.word...', Array) #6 /usr/local/nginx/html/wp-includes/http.php(187): WP_Http->post(‘http://a in on line
/usr/local/nginx/html/wp-includes/class-requests.php947此站点正遇到技术问题,请查看您的站点管理员电子邮件收件箱来获得指引。

因为我是编译安装的,当时上了官方文档的当了,configure 的参数用的是

1
./configure --enable-fpm --with-mysqli

官方文档-安装

好像是缺了 zlib 支持了,所以再加一个参数 –with-zlib 在编译一次就好了

评论无需登录,可以匿名,欢迎评论!