New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent ObjectManager from instantiating interface #291

Closed
ldusan84 opened this Issue May 4, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@ldusan84
Collaborator

ldusan84 commented May 4, 2013

I updated my local magento2 project and got: Fatal error: Cannot instantiate interface Mage_Core_Model_ConfigInterface

It seems that Object Manager is trying to instantiate an interface. I can look further into this if needed.

@antonkril

This comment has been minimized.

Contributor

antonkril commented May 4, 2013

Such situation happens if a class has a dependency on interface but implementation preference for that interface is not declared in configuration. If it happens after update, you should try:

  1. clear cache :)
  2. re-run compiler tool

Maybe we should add proper error message for such case.

@ldusan84

This comment has been minimized.

Collaborator

ldusan84 commented May 4, 2013

You are right. Thanks.

@ldusan84 ldusan84 closed this May 4, 2013

magento-team pushed a commit that referenced this issue May 22, 2015

Merge pull request #291 from magento-nord/MAGETWO-35406
MAGETWO-35406 [GITHUB] check for select and multiselect to ignore corrupted attributes #1087

magento-team pushed a commit that referenced this issue Jan 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment