How to fix «Argument 1 passed to Magento\Framework\Url\HostChecker::__construct() must implement interface Magento\Framework\Url\ScopeResolverInterface, instance of Magento\Framework\ObjectManager\ObjectManager given»?


(Dmitry Fedyuk) #1

Recoverable Error: Argument 1 passed to Magento\Framework\Url\HostChecker::__construct() must implement interface Magento\Framework\Url\ScopeResolverInterface, instance of Magento\Framework\ObjectManager\ObjectManager given, called in vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 97 and defined in vendor/magento/framework/Url/HostChecker.php on line 23


How did I upgrade earosacoustic.com from Magento 2.0.2 to 2.2.2?
(Dmitry Fedyuk) #2
find var/* -type f -or -type d | grep -v 'session' | xargs rm -rf
rm -rf var/di var/generation var/cache var/log var/page_cache