• Hi, on my website (hosted on my VPS), I sometimes get this annoying PHP error:
    “Abort class-pclzip.php : Missing zlib extensions”

    I have had it for a few months now and the issue is still here. I have the latest version of WordPress, my plugins, my themes, Ubuntu, PHP, and my other packages. Sometimes I get the error when I first go to the website, other times it pops up while I’m in the admin panel. The most annoying part is that it’s totally random and can occur anytime, anywhere (or so it seems). The second most annoying part is that the issue hasn’t fixed itself over time or through updates. I have ran the site for a while without this issue, but it started coming about a few months ago (I’m not sure how). My active plugins are Akismet, iThemes Security, Jetpack, and WordPress SEO. I could try to deactivate each plugin one by one to try and see if the error comes from there, but the error is pretty rare and it would be almost impossible to say for sure if it’s a specific plugin that way as the error might not pop up during testing. Other than this issue, the site appears to be working fine. Any help would be greatly appreciated. Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Have you checked your PHP configuration to make sure it was compiled with the “–with-zlib” configure command?

    Thread Starter Dr.Dinosaur

    (@drdinosaur-1)

    username@server:/var/www# php -v
    PHP 5.5.9-1ubuntu4.4 (cli) (built: Sep 4 2014 06:57:30)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
    username@server:/var/www# php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dba
    dom
    ereg
    exif
    fileinfo
    filter
    ftp
    gd
    gettext
    hash
    iconv
    json
    libxml
    mbstring
    mhash
    mysql
    mysqli
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    Phar
    posix
    readline
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    SPL
    standard
    sysvmsg
    sysvsem
    sysvshm
    tokenizer
    wddx
    xml
    xmlreader
    xmlwriter
    Zend OPcache
    zip
    zlib

    [Zend Modules]
    Zend OPcache

    Looks like it.

    I’ve the same problem and still stuck with it. :/

    I’m the same person as the OP. I believe I fixed the error. You have to replace “gzopen” with “gzopen64” in the class-pclzip.php file. This occurs three times. I don’t think I’ve had an issue since.

    Thanks DrDinosaur, that was the only solution that worked for me, after trying several of them.

    On Ubuntu system installing zlib1g-dev helped.

    sudo apt-get install –reinstall zlibc zlib1g zlib1g-dev

    Jared Chu

    (@jared-chu)

    Thanks DrDinosaur, i have tried many solution but your solution fixed my problem 🙂

    Encountered this issue today. The actual solution is to compile PHP with –enable-zip support. This appears to be a bug in WordPress language. WP is trying to download a zip file and then says it failed to extract because zlib is missing. It should say because zip is missing.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Missing zlib extensions PHP Error’ is closed to new replies.