Skip to content
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
Closed

Prevent ObjectManager from instantiating interface #291

ldusan84 opened this issue May 4, 2013 · 2 comments

Comments

@ldusan84
Copy link
Contributor

@ldusan84 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
Copy link
Contributor

@antonkril 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
Copy link
Contributor Author

@ldusan84 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
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
[NORD+TROLL] Bugfixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.