简体   繁体   中英

Magento Connect Manger : CONNECT ERROR: PHP Extensions “zlib” must be loaded

While installing Extension and themes and also trying to upload, I am getting

CONNECT ERROR: PHP Extensions "zlib" must be loaded.

I have tried to installed zlib from here: https://www.namhuy.net/2430/install-enable-zlib-linux-server.html

zlib is installed in My Ubuntu:

在此处输入图片说明

Also enabled and loaded in PHP ini:

在此处输入图片说明

Solution:

Go to GZ.php file ( downloader/lib/Mage/Archive/Helper/File/Gz.php ) in your Magento directory and replace

if (!function_exists('gzopen')) {

with

if (!function_exists('gzopen64')) {

and also:

$this->_fileHandler = @gzopen($this->_filePath, $mode);

with

$this->_fileHandler = @gzopen64($this->_filePath, $mode);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM