版本从1.4.1.0 升级到 1.4.2.1 ,打开pc和wap报错 config key: 'beforeContent', can not find in Yii::$service->page->widget->widgetConfig, you must config it before use it

bug问题 · zhensong1 · 于 6年前 发布 · 2701 次阅读

之前成功部署了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.“

共收到 8 条回复
1楼 已删除.
zhensong1#26年前 0 个赞

zhensong1#36年前 0 个赞

程序里面没有配置部件”beforeContent“,我在page.php加上了,它就报其它部件”trace"不存在

Fecmall#46年前 0 个赞

@zhensong1 [#3楼](#comment3) 你升级fecshop的方式不对,composer升级后,根目录下的升级需要手动更新文件

点击页面顶部的开发文档

Fecmall#56年前 0 个赞

在安装部分,子菜单里面有对升级的介绍

Fecmall#66年前 0 个赞

https://github.com/fecshop/yii2_fecshop_app_advanced/commits/master

看完更新文档后,你会明白,外层的advance包,需要手动更新,ccomposer 只更新vendor里面的文件,上面是advance包提交的代码,你把17号更新的内容,从下到上依次手动修改即可。

zhensong1#75年前 0 个赞

嗯,已经处理好了

Fecmall#85年前 0 个赞

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

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