Support » 安装、升级和使用 » Fatal error: Uncaught Error: Call to undefined function gzinflate()

  • Resolved guolin

    (@guolin)


    首页可以正常访问,进入后台提示下面的错误:

    Fatal error: Uncaught Error: Call to undefined function gzinflate()

    Fatal error: Uncaught Error: Call to undefined function gzinflate() in /var/www/wordpress/wp-includes/class-requests.php:947 Stack trace: #0 /var/www/wordpress/wp-includes/class-requests.php(886): Requests::compatible_gzinflate(‘\x95\x8F\xBD\n\xC30\f\x84\xDF\xC5s\xB0\xFBCh…’) #1 /var/www/wordpress/wp-includes/class-requests.php(835): Requests::compatible_gzinflate(‘\x1F\x8B\x08\x00\x00\x00\x00\x00\x00\x03\x95\x8F\xBD\n\xC3…’) #2 /var/www/wordpress/wp-includes/class-requests.php(675): Requests::decompress(‘\x1F\x8B\x08\x00\x00\x00\x00\x00\x00\x03\x95\x8F\xBD\n\xC3…’) #3 /var/www/wordpress/wp-includes/class-requests.php(383): Requests::parse_response(Array, ‘http://api.word…’, Array, Array, Array) #4 /var/www/wordpress/wp-includes/class-http.php(366): Requests::request(‘http://api.word…’, Array, Array, ‘POST’, Array) #5 /var/www/wordpress/wp-includes/class-http.php(575): WP_Http->request(‘http://api.word…’, Array) #6 /var/www/wordpress/wp-includes/http.php(187): WP_Http->post(‘http://api.word…’, Array) #7 /var in /var/www/wordpress/wp-includes/class-requests.php on line 947

Viewing 3 replies - 1 through 3 (of 3 total)
  • 已经解决了

    我也遇到了这种问题,LNMP架构的,你是怎么解决的?

    找到原因了,源码编译php时没有带上zlib,
    ./configure –prefix=/usr/local/php –enable-fpm –enable-mysqlnd –enable-mbstring –with-mysqli=mysqlnd –with-pdo-mysql=mysqlnd –with-zlib

    make
    make install

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.