将Magento 2.1.9升级到2.2.2

问题描述 投票:1回答:2

我正在使用Magento 2 Ves Page Builder并尝试将Magento 2.1.9升级到2.2.2但是发生了一些错误,如下所示

编译期间出错:Ves \ BaseWidget \ Model \ Config \ Reader不兼容的参数类型:必需类型:字符串。实际类型:数组;文件:app / code / Ves / BaseWidget / Model / Config / Reader.php

有谁有这个bug?我真的需要别人的帮助来解决它。提前致谢。

magento master-pages builder
2个回答
0
投票

首先从版本2.1.10升级Magento,然后在版本2.2.2中升级。请遵循以下步骤:

第1步:运行composer require magento/product-community-edition 2.2.2 --no-update

第2步:运行composer update

第3步:需要验证:

Enter UserName and Password from login with below details:

Username: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

第4步:是否要在/root/.config/composer/auth.json中存储repo.magento.com的凭据? [Yn] y

输入'y'

第5步:运行php bin/magento setup:upgrade


0
投票

这是由于app/code/Ves/BaseWidget/Model/Config/Reader.php中的数据类型定义不正确 - 您可能会注意到,在函数调用(在注释区域中)中定义Ves\BaseWidget\Model\Config\Reader时@param类型设置为array,而它应该是string。即

/**
 * @param array $configReader
 ...
*/

应该:

/**
 * @param string $configReader
 ...
*/

您应该进行更改,或联系扩展提供商并要求更新扩展。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.