cancel
Showing results for 
Search instead for 
Did you mean: 

Uncaught Error: Cannot instantiate interface

Uncaught Error: Cannot instantiate interface

I've installed Magento using one-click install on my host. I tried to install a theme. I moved over all of the theme files and ran php magento/big setup:upgrade, but I get the following error:

 

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Url\RouteParamsPreprocessorInterface in /home/customer/www/xxx/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:73
Stack trace:
#0 /home/customer/www/xxx/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...')
#1 /home/customer/www/xxx/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(236): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#2 /home/customer/www/xxx/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'routeParamsPrep...', 'Magento\\Framewo...')
#3 /home/customer/www/xxx/public_html/vendor/magento/framework/ObjectManager/Factory/D in /home/customer/www/kwesteboutique.com/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73

I've tried clearing my cache, but it doesn't make a difference.

3 REPLIES 3

Re: Uncaught Error: Cannot instantiate interface

Hi @kweste 

Try these commands and check

rm -rf generated
rm -rf var/*
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile

 If my answer is useful Click Kudos & Accept as Solution

Re: Uncaught Error: Cannot instantiate interface

I get up to php bin/magento setup:upgrade and just get the same error

Re: Uncaught Error: Cannot instantiate interface

Hi @kweste ,

can you check that in your custom theme all the required files are present. or once you can remove the theme and check in default it work fine or not if this work for you accept this as solution and give kudos.