Magento Connect Manger:CONNECT ERROR:必须加载PHP扩展“zlib”

时间:2015-11-06 11:42:42

标签: php magento ubuntu-14.04

在安装Extension和主题并尝试上传时,我正在

  

CONNECT ERROR:必须加载PHP扩展“zlib”。

我试图从这里安装zlib:http://materializecss.com/dialogs.html

zlib安装在My Ubuntu中:

https://www.namhuy.net/2430/install-enable-zlib-linux-server.html

还在PHP ini中启用并加载:

enter image description here

1 个答案:

答案 0 :(得分:1)

解决方案:

转到Magento目录中的GZ.php文件(downloader / lib / Mage / Archive / Helper / File / Gz.php) 并替换

if (!function_exists('gzopen')) {

if (!function_exists('gzopen64')) {

还有:

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

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