I am facing after an issue after upgrading version magneto 2.4.3 to 2.4.5 When I run this command I got error
php bin/magento setup:di:compile
Deprecated Functionality: Return type of Zend_Config::count() should either be compatible with Countable
-
Can you please tell us that your magento 2.4.5 is running fine or not. I want to use Magento 2.4.5 for my site?Rana Zain– Rana Zain2022年10月21日 12:58:43 +00:00Commented Oct 21, 2022 at 12:58
1 Answer 1
You should upgrade again because your upgrade failed.
Solution 1: Update the composer.json file specifically the require-dev section with what is written here https://github.com/magento/magento2/blob/2.4.5/composer.json
Then remove vendor folder and run the following commands:
composer install
bin/magento setup:upgrade
bin/magento setup:di:compile
Solution2: Do the following steps:
- STAY IN PHP 7.4
- composer require magento/composer-root-update-plugin ~2.0 --no-update
- composer update
- rm -rf var/cache/* var/page_cache/* generated/code/* ; bin/magento setup:upgrade
- composer require-commerce magento/product-community-edition 2.4.5 --no-update
- composer update
- CHANGE TO PHP 8.1
- rm -rf var/cache/* var/page_cache/* generated/code/* ; bin/magento setup:upgrade; bin/magento setup:di:compile
-
I did but got same error againkiran– kiran2022年10月11日 13:11:07 +00:00Commented Oct 11, 2022 at 13:11
-
I've updated the answer, please check.Tu Van– Tu Van2022年10月11日 13:29:05 +00:00Commented Oct 11, 2022 at 13:29
-
I tried both solutions but got same an errorkiran– kiran2022年10月11日 14:14:41 +00:00Commented Oct 11, 2022 at 14:14
-
You can take a look at the github issue, some suggestion there maybe help you: github.com/magento/magento2/issues/35306Tu Van– Tu Van2022年10月19日 06:03:30 +00:00Commented Oct 19, 2022 at 6:03
Explore related questions
See similar questions with these tags.