简体   繁体   English

问:Magento2:从 magento 2.3.4 升级到 2.4.3,

[英]Q: Magento2 : upgrading from magento 2.3.4 to 2.4.3,

I encounter a problem after upgrading magento from 2.3.4 to 2.4.3 magento从2.3.4升级到2.4.3后遇到问题

php -v: 7.4 composer -V: Composer version 2.2.12 php -v: 7.4 composer -V: Composer 版本 2.2.12

php bin/magento maintenance:enable composer require magento/product-community-edition=2.4.3 --no-update composer update php bin/magento cache:clean php bin/magento 维护:启用 composer require magento/product-community-edition=2.4.3 --no-update composer update php bin/magento cache:clean

rm -rf var/cache/* rm -rf 变量/缓存/*

rm -rf var/page_cache/* rm -rf var/page_cache/*

rm -rf generated/code/* rm -rf 生成/代码/*

php bin/magento setup:upgrade php bin/magento 设置:升级

php bin/magento setup:di:compile php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy -f php bin/magento setup:static-content:deploy -f

all the steps where good until i reached this step: php bin/magento setup:di:compile在我到达这一步之前所有的步骤都很好:php bin/magento setup:di:compile

    Compilation was started.
    Repositories code generation... 1/9 [===>------------------------]  11% 1 sec 151.0 MiBPHP Fatal error:  Declaration of Mirasvit\Report\Model\Export\MetadataProvider::getColumns($component)
 must be compatible with 
Magento\Ui\Model\Export\MetadataProvider::getColumns(Magento\Framework\View\Element\UiComponentInterface $component): array in /var/www/vhosts/site/app/code/Mirasvit/Report/Model/Export/MetadataProvider.php
 on line 53

have anyone face similar issue when upgrading?升级时有没有人遇到类似的问题?

As per your issue I would suggest you please disabled all third party extension while you upgrading Magento core libraries.根据您的问题,我建议您在升级 Magento 核心库时禁用所有第三方扩展。 once Magento core libraries updated you can update one by one your third party extension's then i hope everything will be working fine.一旦 Magento 核心库更新,您可以一个一个地更新您的第三方扩展,然后我希望一切都会正常工作。

Still if you have any issue please let us know.不过,如果您有任何问题,请告诉我们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM