cancel
Showing results for 
Search instead for 
Did you mean: 

After upgrading from 2.1.7 to 2.2.1 Site/Admin panel is not opening (zendframework error)

After upgrading from 2.1.7 to 2.2.1 Site/Admin panel is not opening (zendframework error)

While trying to upgrade php bin/magento its gives below error.

 

Fatal error: Uncaught TypeError: Argument 1 passed to Zend\Form\FormAbstractServiceFactory::canCreate() must implement interface Interop\Container\ContainerInterface, instance of Zend\ServiceManager\ServiceManager given, called in /home/diponi/public_html/diponi_development/vendor/zendframework/zend-form/src/FormAbstractServiceFactory.php on line 86 and defined in /home/diponi/public_html/diponi_development/vendor/zendframework/zend-form/src/FormAbstractServiceFactory.php:59
Stack trace:
#0 /home/diponi/public_html/diponi_development/vendor/zendframework/zend-form/src/FormAbstractServiceFactory.php(86): Zend\Form\FormAbstractServiceFactory->canCreate(Object(Zend\ServiceManager\ServiceManager), 'Magento\\Setup\\M...')
#1 /home/diponi/public_html/diponi_development/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(775): Zend\Form\FormAbstractServiceFactory->canCreateServiceWithName(Object(Zend\ServiceManager\ServiceManager), 'magentosetupmvc...', 'Magento\\Setup\\M...')
#2 /home/diponi/public_html/diponi_devel in /home/diponi/public_html/diponi_development/vendor/zendframework/zend-form/src/FormAbstractServiceFactory.php on line 59