Title: Missing zlib extensions PHP Error
Last modified: August 22, 2016

---

# Missing zlib extensions PHP Error

 *  [Dr.Dinosaur](https://wordpress.org/support/users/drdinosaur-1/)
 * (@drdinosaur-1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/)
 * 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)

 *  [linux4me2](https://wordpress.org/support/users/linux4me2/)
 * (@linux4me2)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/#post-5292308)
 * Have you checked your PHP configuration to make sure it was compiled with the“–
   with-zlib” configure command?
 *  Thread Starter [Dr.Dinosaur](https://wordpress.org/support/users/drdinosaur-1/)
 * (@drdinosaur-1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/#post-5292350)
 * 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.
 *  [Russell John](https://wordpress.org/support/users/russelljohn/)
 * (@russelljohn)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/#post-5292476)
 * I’ve the same problem and still stuck with it. :/
 *  [DrDinosaur](https://wordpress.org/support/users/drdinosaur/)
 * (@drdinosaur)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/#post-5292500)
 * 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.
 *  [s-a-m](https://wordpress.org/support/users/s-a-m/)
 * (@s-a-m)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/#post-5292566)
 * Thanks DrDinosaur, that was the only solution that worked for me, after trying
   several of them.
 *  [lalitc](https://wordpress.org/support/users/lalitc/)
 * (@lalitc)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/#post-5292570)
 * On Ubuntu system installing **zlib1g-dev** helped.
 * sudo apt-get install –reinstall zlibc zlib1g zlib1g-dev
 *  [Jared Chu](https://wordpress.org/support/users/jared-chu/)
 * (@jared-chu)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/#post-5292588)
 * Thanks DrDinosaur, i have tried many solution but your solution fixed my problem
   🙂
 *  [Serjaki](https://wordpress.org/support/users/serjaki/)
 * (@serjaki)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/#post-5292598)
 * 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.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [zlib](https://wordpress.org/support/topic-tag/zlib/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 8 participants
 * Last reply from: [Serjaki](https://wordpress.org/support/users/serjaki/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/missing-zlib-extensions-php-error/#post-5292598)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
