简体   繁体   中英

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

php -v: 7.4 composer -V: Composer version 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

rm -rf var/cache/*

rm -rf var/page_cache/*

rm -rf generated/code/*

php bin/magento setup:upgrade

php bin/magento setup:di:compile

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

all the steps where good until i reached this step: 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. once Magento core libraries updated you can update one by one your third party extension's then i hope everything will be working fine.

Still if you have any issue please let us know.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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