Fatal error: Cannot instantiate interface
My magento store is throwing this error:
Fatal error: Cannot instantiate interface MagentoFrameworkViewDesignThemeResolverInterface in /Library/WebServer/Documents/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73
I don't know why it started to appear. I made no new module installation. The store was working fine.
I've check file permissions and I see no issue there. Also delete the /var/ dir and, I think, all folders/files where created.
[EDIT] The preference is defined vendor/magento/magento2-base/app/etc/di.xml
<preference for="MagentoFrameworkViewDesignThemeResolverInterface" type="MagentoThemeModelThemeResolver" />
magento2 design
add a comment |
My magento store is throwing this error:
Fatal error: Cannot instantiate interface MagentoFrameworkViewDesignThemeResolverInterface in /Library/WebServer/Documents/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73
I don't know why it started to appear. I made no new module installation. The store was working fine.
I've check file permissions and I see no issue there. Also delete the /var/ dir and, I think, all folders/files where created.
[EDIT] The preference is defined vendor/magento/magento2-base/app/etc/di.xml
<preference for="MagentoFrameworkViewDesignThemeResolverInterface" type="MagentoThemeModelThemeResolver" />
magento2 design
1
i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
– Pradeep Kumar
Nov 24 '15 at 4:28
@PradeepKumar No. I'm not.
– Filipe Sá
Nov 24 '15 at 14:19
2
clear your cache and the contents ofvar/generation
.
– Marius♦
Nov 24 '15 at 14:23
@Marius as stated in the question, I've already removed the /var/* folder completely.
– Filipe Sá
Nov 24 '15 at 14:28
Sorry. I missed that line.
– Marius♦
Nov 24 '15 at 14:44
add a comment |
My magento store is throwing this error:
Fatal error: Cannot instantiate interface MagentoFrameworkViewDesignThemeResolverInterface in /Library/WebServer/Documents/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73
I don't know why it started to appear. I made no new module installation. The store was working fine.
I've check file permissions and I see no issue there. Also delete the /var/ dir and, I think, all folders/files where created.
[EDIT] The preference is defined vendor/magento/magento2-base/app/etc/di.xml
<preference for="MagentoFrameworkViewDesignThemeResolverInterface" type="MagentoThemeModelThemeResolver" />
magento2 design
My magento store is throwing this error:
Fatal error: Cannot instantiate interface MagentoFrameworkViewDesignThemeResolverInterface in /Library/WebServer/Documents/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73
I don't know why it started to appear. I made no new module installation. The store was working fine.
I've check file permissions and I see no issue there. Also delete the /var/ dir and, I think, all folders/files where created.
[EDIT] The preference is defined vendor/magento/magento2-base/app/etc/di.xml
<preference for="MagentoFrameworkViewDesignThemeResolverInterface" type="MagentoThemeModelThemeResolver" />
magento2 design
magento2 design
edited Nov 27 '15 at 15:44
7ochem
5,73293668
5,73293668
asked Nov 24 '15 at 2:32
Filipe SáFilipe Sá
51129
51129
1
i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
– Pradeep Kumar
Nov 24 '15 at 4:28
@PradeepKumar No. I'm not.
– Filipe Sá
Nov 24 '15 at 14:19
2
clear your cache and the contents ofvar/generation
.
– Marius♦
Nov 24 '15 at 14:23
@Marius as stated in the question, I've already removed the /var/* folder completely.
– Filipe Sá
Nov 24 '15 at 14:28
Sorry. I missed that line.
– Marius♦
Nov 24 '15 at 14:44
add a comment |
1
i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
– Pradeep Kumar
Nov 24 '15 at 4:28
@PradeepKumar No. I'm not.
– Filipe Sá
Nov 24 '15 at 14:19
2
clear your cache and the contents ofvar/generation
.
– Marius♦
Nov 24 '15 at 14:23
@Marius as stated in the question, I've already removed the /var/* folder completely.
– Filipe Sá
Nov 24 '15 at 14:28
Sorry. I missed that line.
– Marius♦
Nov 24 '15 at 14:44
1
1
i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
– Pradeep Kumar
Nov 24 '15 at 4:28
i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
– Pradeep Kumar
Nov 24 '15 at 4:28
@PradeepKumar No. I'm not.
– Filipe Sá
Nov 24 '15 at 14:19
@PradeepKumar No. I'm not.
– Filipe Sá
Nov 24 '15 at 14:19
2
2
clear your cache and the contents of
var/generation
.– Marius♦
Nov 24 '15 at 14:23
clear your cache and the contents of
var/generation
.– Marius♦
Nov 24 '15 at 14:23
@Marius as stated in the question, I've already removed the /var/* folder completely.
– Filipe Sá
Nov 24 '15 at 14:28
@Marius as stated in the question, I've already removed the /var/* folder completely.
– Filipe Sá
Nov 24 '15 at 14:28
Sorry. I missed that line.
– Marius♦
Nov 24 '15 at 14:44
Sorry. I missed that line.
– Marius♦
Nov 24 '15 at 14:44
add a comment |
7 Answers
7
active
oldest
votes
I had this error and it was solved by clearing the var folder and then running setup:upgrade
. If this doesn't solve it then look for errors in di.xml
files
worked for me, specificallyvar/cache
– Joshua Soileau
Jul 25 '16 at 17:46
add a comment |
If you use redis, run:
redis-cli flushall
If you also use an environment like ansible (lxc - server
), you'll need to do that command in container. Plus I did the following:
- Clear
var/generation
- Clear
var/cache
- Enable Magento modules:
bin/magento module:enable --all
- Compile DI
bin/magento setup:di:compile
there were so many misleading solutions out there and this worked right away
– Wolfe
Jan 8 at 8:15
add a comment |
This worked for me :
sudo apt-get install php-intl
sudo service apache2 reload
add a comment |
In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)
add a comment |
Run following command and check.
rm -rf generated
rm -rf var/*
Worked for me.
add a comment |
Clear the cache
rm -rf var/cache
If redis enabled, clear redis db using command line:
$> redis-cli
$> flushall
add a comment |
php bin/magento c:c
php bin/magento setup:di:compile
will fix your issue
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f91294%2ffatal-error-cannot-instantiate-interface%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had this error and it was solved by clearing the var folder and then running setup:upgrade
. If this doesn't solve it then look for errors in di.xml
files
worked for me, specificallyvar/cache
– Joshua Soileau
Jul 25 '16 at 17:46
add a comment |
I had this error and it was solved by clearing the var folder and then running setup:upgrade
. If this doesn't solve it then look for errors in di.xml
files
worked for me, specificallyvar/cache
– Joshua Soileau
Jul 25 '16 at 17:46
add a comment |
I had this error and it was solved by clearing the var folder and then running setup:upgrade
. If this doesn't solve it then look for errors in di.xml
files
I had this error and it was solved by clearing the var folder and then running setup:upgrade
. If this doesn't solve it then look for errors in di.xml
files
edited Mar 11 '17 at 14:18
answered Apr 11 '16 at 12:19
Claudiu CreangaClaudiu Creanga
4,24512775
4,24512775
worked for me, specificallyvar/cache
– Joshua Soileau
Jul 25 '16 at 17:46
add a comment |
worked for me, specificallyvar/cache
– Joshua Soileau
Jul 25 '16 at 17:46
worked for me, specifically
var/cache
– Joshua Soileau
Jul 25 '16 at 17:46
worked for me, specifically
var/cache
– Joshua Soileau
Jul 25 '16 at 17:46
add a comment |
If you use redis, run:
redis-cli flushall
If you also use an environment like ansible (lxc - server
), you'll need to do that command in container. Plus I did the following:
- Clear
var/generation
- Clear
var/cache
- Enable Magento modules:
bin/magento module:enable --all
- Compile DI
bin/magento setup:di:compile
there were so many misleading solutions out there and this worked right away
– Wolfe
Jan 8 at 8:15
add a comment |
If you use redis, run:
redis-cli flushall
If you also use an environment like ansible (lxc - server
), you'll need to do that command in container. Plus I did the following:
- Clear
var/generation
- Clear
var/cache
- Enable Magento modules:
bin/magento module:enable --all
- Compile DI
bin/magento setup:di:compile
there were so many misleading solutions out there and this worked right away
– Wolfe
Jan 8 at 8:15
add a comment |
If you use redis, run:
redis-cli flushall
If you also use an environment like ansible (lxc - server
), you'll need to do that command in container. Plus I did the following:
- Clear
var/generation
- Clear
var/cache
- Enable Magento modules:
bin/magento module:enable --all
- Compile DI
bin/magento setup:di:compile
If you use redis, run:
redis-cli flushall
If you also use an environment like ansible (lxc - server
), you'll need to do that command in container. Plus I did the following:
- Clear
var/generation
- Clear
var/cache
- Enable Magento modules:
bin/magento module:enable --all
- Compile DI
bin/magento setup:di:compile
edited Jan 7 at 18:39
bassplayer7
1,5091119
1,5091119
answered Jun 1 '18 at 14:07
Gorr1995Gorr1995
412
412
there were so many misleading solutions out there and this worked right away
– Wolfe
Jan 8 at 8:15
add a comment |
there were so many misleading solutions out there and this worked right away
– Wolfe
Jan 8 at 8:15
there were so many misleading solutions out there and this worked right away
– Wolfe
Jan 8 at 8:15
there were so many misleading solutions out there and this worked right away
– Wolfe
Jan 8 at 8:15
add a comment |
This worked for me :
sudo apt-get install php-intl
sudo service apache2 reload
add a comment |
This worked for me :
sudo apt-get install php-intl
sudo service apache2 reload
add a comment |
This worked for me :
sudo apt-get install php-intl
sudo service apache2 reload
This worked for me :
sudo apt-get install php-intl
sudo service apache2 reload
answered Jun 16 '16 at 12:26
abahetabahet
1211
1211
add a comment |
add a comment |
In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)
add a comment |
In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)
add a comment |
In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)
In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)
answered Oct 17 '16 at 14:15
MTMMTM
1,89611429
1,89611429
add a comment |
add a comment |
Run following command and check.
rm -rf generated
rm -rf var/*
Worked for me.
add a comment |
Run following command and check.
rm -rf generated
rm -rf var/*
Worked for me.
add a comment |
Run following command and check.
rm -rf generated
rm -rf var/*
Worked for me.
Run following command and check.
rm -rf generated
rm -rf var/*
Worked for me.
answered Oct 28 '18 at 9:47
Kazim NooraniKazim Noorani
9371623
9371623
add a comment |
add a comment |
Clear the cache
rm -rf var/cache
If redis enabled, clear redis db using command line:
$> redis-cli
$> flushall
add a comment |
Clear the cache
rm -rf var/cache
If redis enabled, clear redis db using command line:
$> redis-cli
$> flushall
add a comment |
Clear the cache
rm -rf var/cache
If redis enabled, clear redis db using command line:
$> redis-cli
$> flushall
Clear the cache
rm -rf var/cache
If redis enabled, clear redis db using command line:
$> redis-cli
$> flushall
answered Jan 5 at 10:23
Arvind07Arvind07
8651016
8651016
add a comment |
add a comment |
php bin/magento c:c
php bin/magento setup:di:compile
will fix your issue
New contributor
add a comment |
php bin/magento c:c
php bin/magento setup:di:compile
will fix your issue
New contributor
add a comment |
php bin/magento c:c
php bin/magento setup:di:compile
will fix your issue
New contributor
php bin/magento c:c
php bin/magento setup:di:compile
will fix your issue
New contributor
New contributor
answered 9 mins ago
VatoVato
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f91294%2ffatal-error-cannot-instantiate-interface%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
– Pradeep Kumar
Nov 24 '15 at 4:28
@PradeepKumar No. I'm not.
– Filipe Sá
Nov 24 '15 at 14:19
2
clear your cache and the contents of
var/generation
.– Marius♦
Nov 24 '15 at 14:23
@Marius as stated in the question, I've already removed the /var/* folder completely.
– Filipe Sá
Nov 24 '15 at 14:28
Sorry. I missed that line.
– Marius♦
Nov 24 '15 at 14:44