cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal Error Uncaught Error: Cannot instantiate interface

Fatal Error Uncaught Error: Cannot instantiate interface

We are getting this error. 

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Filter\VariableResolverInterface in /home/imperialtimeco/dev.imperialtime.co.uk/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121 Stack trace: #0 /home/imperialtimeco/dev.imperialtime.co.uk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array) #1 /home/imperialtimeco/dev.imperialtime.co.uk/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...') #2 /home/imperialtimeco/dev.imperialtime.co.uk/vendor/magento/framework/Filter/Template.php(118): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...') #3 /home/imperialtimeco/dev.imperialtime.co.uk/vendor/magento/module-email/Model/Template/Filter.php(248): Magento\Framework\Filter\Template->__construct(Object(Magento\Framework\Stdlib\StringUtils), Array, Array, NULL) #4 in /home/imperialtimeco/dev.imperialtime.co.uk/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121

 

Any one help me, please?

1 REPLY 1

Re: Fatal Error Uncaught Error: Cannot instantiate interface

Hello @Imperialtimeuk 

 

1. Try recompiling the code to ensure all necessary classes and interfaces are generated correctly. 

 

2. Review any custom or third-party modules that may be interacting with the VariableResolverInterface. Check for any missing dependencies or conflicts that could be causing the issue. Disable or remove any recently added modules or extensions and see if the error persists

 

3. If you have made any customizations or overrides related to the VariableResolverInterface or its implementing classes, double-check those changes to ensure they are correct and do not introduce any errors

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now