After Upgrade Magento 2 latest version, sometimes CLI commands stopped working:
– When you Run upgrade : php bin/magento setup:upgrade command The commands do nothing and show no error nor proceedings but just new line as Following Screenshot:
Actual Result:
Expected Result:
The above command should run the commands to upgrade the database but it just shows a new line without proceeding.
Please follow the below steps to resolve this issue :
Step 1: Add Zend framework in Root composer.json
“autoload”: {
“psr-4”: {
“Magento\Framework\”: “lib/internal/Magento/Framework/”,
“Magento\Setup\”: “setup/src/Magento/Setup/”,
“Magento\”: “app/code/Magento/”,
“Zend\Mvc\Controller\”: “setup/src/Zend/Mvc/Controller/”
},
Step 2: Run below Command
“composer dumpautoload”.
Taaddaa!! Now the command should work properly.


