之前成功部署了fecshop1.4.1.0,就一直没动程序,得知fecshop更新版本了, 就把程序升级到最新。 更新成功后,打开网页就报错,shell更新:
The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 0 installs, 2 updates, 0 removals
Updating fancyecommerce/fecshop (1.4.1.0 => 1.4.2.1): Downloading (100%) The Process class relies on proc_open, which is not available on your PHP installation. The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems) Unzip with unzip command failed, falling back to ZipArchive class
Updating phpunit/phpunit (7.1.2 => 7.1.3): Downloading (100%) The Process class relies on proc_open, which is not available on your PHP installation. The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems) Unzip with unzip command failed, falling back to ZipArchive class
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead. Writing lock file Generating autoload files
之后访问网站就报错”config key: 'beforeContent', can not find in Yii::$service->page->widget->widgetConfig, you must config it before use it.“
@zhensong1 [#3楼](#comment3) 你升级fecshop的方式不对,composer升级后,根目录下的升级需要手动更新文件
点击页面顶部的开发文档
https://github.com/fecshop/yii2_fecshop_app_advanced/commits/master
看完更新文档后,你会明白,外层的advance包,需要手动更新,ccomposer 只更新vendor里面的文件,上面是advance包提交的代码,你把17号更新的内容,从下到上依次手动修改即可。
docker 安装出现这个问题,是因为你没有使用最新版本
https://github.com/fecshop/yii2_fecshop_docker
// 将`1.4.1.0` 替换成相应的fecshop版本。最新的fecshop版本参看:https://github.com/fecshop/yii2_fecshop/releases
// 下面提示需要token,参看这里获取Token:http://www.fecshop.com/topic/412
composer create-project fancyecommerce/fecshop-app-advanced fecshop 1.4.1.0
将1.4.1.0
替换成相应的fecshop版本。最新的fecshop版本参看:https://github.com/fecshop/yii2_fecshop/releases