我是DrupalGap的新手,在配置DrupalGap时遇到了以下错误:
致命错误: Class 'ZipArchive' not found in/../../../网站/所有/模块/drupalgap/drupalgap。第461行
复制误差
- 导航到Configuration/Web Services/DrupalGap
- 在"目录"部分,点击"安装SDK"按钮。
我四处看了看,还没有找到一个明确的解决方案。一个用户在另一个SO线程建议安装"Zip扩展"。我已经试过了,但仍然得到错误。
<引用线程/strong>
致命错误:Class '
中未找到http://www.php.net/manual/en/book.zip.php<其他说明/strong>
- 这个"安装SDK"步骤在我的本地环境下工作得很好。我在我的服务器上遵循相同的步骤
- 我正在运行D7安装
- 我正在使用DrupalGap 7.x-1.15
谢谢。
您需要安装和启用 PHP Zip扩展才能使用ZipArchive类
为Ubuntu
- php7:
sudo apt-get install php7.0-zip
php5:
sudo apt-get install php5-zip
安装完成后,重启apache服务器,完成!
为Ubuntu
-
sudo /etc/init.d/apache2 restart