应用市场安装应用报错:Call to undefined function fecshop\services\helper\zip_open()

安装报错 · unliu · 于 3年前 发布 · 1421 次阅读

如题,使用 composer 安装的最新版,安装应用时会 500 错误,具体错误定位如下:

Exception 'Error' with message 'Call to undefined function fecshop\services\helper\zip_open()' 

in /Users/watchelephant/www/fecmall/vendor/fancyecommerce/fecshop/services/helper/ZipFile.php:28

Stack trace:
#0 /Users/watchelephant/www/fecmall/vendor/fancyecommerce/fecshop/app/appadmin/modules/System/controllers/ExtensionmarketController.php(148): fecshop\services\helper\ZipFile->unzip('/Users/watchele...', '/Users/watchele...', true, true)
#1 [internal function]: fecshop\app\appadmin\modules\System\controllers\ExtensionmarketController->actionInstall()
#2 /Users/watchelephant/www/fecmall/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#3 /Users/watchelephant/www/fecmall/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams(Array)
#4 /Users/watchelephant/www/fecmall/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('install', Array)
#5 /Users/watchelephant/www/fecmall/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('system/extensio...', Array)
#6 /Users/watchelephant/www/fecmall/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#7 /Users/watchelephant/www/fecmall/appadmin/web/index.php(50): yii\base\Application->run()
#8 {main}
共收到 4 条回复
Fecmall#13年前 0 个赞

https://github.com/fecshop/yii2_fecshop/blob/master/services/helper/ZipFile.php#L24

zip_open(),这个是php的函数,检查您的php是否安装zip扩展

2楼 已删除.
unliu#33年前 0 个赞

是用 composer 安装的最新版;一致;可能是 PHP 环境问题,我是 Mac 环境下的 7.3.11。 手动注释掉 ExtensionmarketController.php的 zip 解压相关段落,并手动解压解决。

Fecmall#43年前 0 个赞

@unliu #3楼 上面已经回复你了

请安装php的zip扩展!!!!!!!

请安装php的zip扩展!!!!!!!

请安装php的zip扩展!!!!!!!

unliu#53年前 0 个赞

@Fecmall #4楼 了解,感谢。我回复的时候没有看到你新发的回复。

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics