Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
Magento 2.2.1. Recently I have deleted one unused store and my magento has been broken with error:
1 exception(s):
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
#0 /var/www//vendor/magento/module-catalog/Model/CategoryRepository.php(141): MagentoFrameworkExceptionNoSuchEntityException::singleField('id', '141')
#1 /var/www//app/code/TemplateMonster/CatalogImagesGrid/Block/CatalogImage/Grid.php(78): MagentoCatalogModelCategoryRepository->get('141')
#2 /var/www//app/design/frontend/TemplateMonster/theme007/TemplateMonster_CatalogImagesGrid/templates/catalog/widget_image_grid.phtml(3): TemplateMonsterCatalogImagesGridBlockCatalogImageGrid->getCategory()
#3 /var/www/www/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/www.le...')
#4 /var/www/www/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(TemplateMonsterCatalogImagesGridBlockCatalogImageGrid), '/var/www/www.le...', Array)
I have restored site and db from working backup - same error! of course, cache cleaned, var, generation etc deleted, content redeployed. constantly getting same error.
admin part works OK.
Please advice what is the nature of this error?
Which ID cannot be found? category? site? this driving me nuts already..
magento-2.2.1
|
show 1 more comment
Magento 2.2.1. Recently I have deleted one unused store and my magento has been broken with error:
1 exception(s):
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
#0 /var/www//vendor/magento/module-catalog/Model/CategoryRepository.php(141): MagentoFrameworkExceptionNoSuchEntityException::singleField('id', '141')
#1 /var/www//app/code/TemplateMonster/CatalogImagesGrid/Block/CatalogImage/Grid.php(78): MagentoCatalogModelCategoryRepository->get('141')
#2 /var/www//app/design/frontend/TemplateMonster/theme007/TemplateMonster_CatalogImagesGrid/templates/catalog/widget_image_grid.phtml(3): TemplateMonsterCatalogImagesGridBlockCatalogImageGrid->getCategory()
#3 /var/www/www/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/www.le...')
#4 /var/www/www/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(TemplateMonsterCatalogImagesGridBlockCatalogImageGrid), '/var/www/www.le...', Array)
I have restored site and db from working backup - same error! of course, cache cleaned, var, generation etc deleted, content redeployed. constantly getting same error.
admin part works OK.
Please advice what is the nature of this error?
Which ID cannot be found? category? site? this driving me nuts already..
magento-2.2.1
It's looking for category ID 141.
– A.Maksymiuk
Jan 27 '18 at 10:47
thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..
– bofh
Jan 27 '18 at 11:01
i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...
– bofh
Jan 27 '18 at 11:17
I see your are using custom theme - I think you should ask theme seller then.
– A.Maksymiuk
Jan 27 '18 at 20:26
already did, but they didn't provide support during weekend.
– bofh
Jan 27 '18 at 20:30
|
show 1 more comment
Magento 2.2.1. Recently I have deleted one unused store and my magento has been broken with error:
1 exception(s):
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
#0 /var/www//vendor/magento/module-catalog/Model/CategoryRepository.php(141): MagentoFrameworkExceptionNoSuchEntityException::singleField('id', '141')
#1 /var/www//app/code/TemplateMonster/CatalogImagesGrid/Block/CatalogImage/Grid.php(78): MagentoCatalogModelCategoryRepository->get('141')
#2 /var/www//app/design/frontend/TemplateMonster/theme007/TemplateMonster_CatalogImagesGrid/templates/catalog/widget_image_grid.phtml(3): TemplateMonsterCatalogImagesGridBlockCatalogImageGrid->getCategory()
#3 /var/www/www/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/www.le...')
#4 /var/www/www/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(TemplateMonsterCatalogImagesGridBlockCatalogImageGrid), '/var/www/www.le...', Array)
I have restored site and db from working backup - same error! of course, cache cleaned, var, generation etc deleted, content redeployed. constantly getting same error.
admin part works OK.
Please advice what is the nature of this error?
Which ID cannot be found? category? site? this driving me nuts already..
magento-2.2.1
Magento 2.2.1. Recently I have deleted one unused store and my magento has been broken with error:
1 exception(s):
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
#0 /var/www//vendor/magento/module-catalog/Model/CategoryRepository.php(141): MagentoFrameworkExceptionNoSuchEntityException::singleField('id', '141')
#1 /var/www//app/code/TemplateMonster/CatalogImagesGrid/Block/CatalogImage/Grid.php(78): MagentoCatalogModelCategoryRepository->get('141')
#2 /var/www//app/design/frontend/TemplateMonster/theme007/TemplateMonster_CatalogImagesGrid/templates/catalog/widget_image_grid.phtml(3): TemplateMonsterCatalogImagesGridBlockCatalogImageGrid->getCategory()
#3 /var/www/www/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/www.le...')
#4 /var/www/www/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(TemplateMonsterCatalogImagesGridBlockCatalogImageGrid), '/var/www/www.le...', Array)
I have restored site and db from working backup - same error! of course, cache cleaned, var, generation etc deleted, content redeployed. constantly getting same error.
admin part works OK.
Please advice what is the nature of this error?
Which ID cannot be found? category? site? this driving me nuts already..
magento-2.2.1
magento-2.2.1
edited Jan 27 '18 at 11:05
bofh
asked Jan 27 '18 at 7:53
bofhbofh
4210
4210
It's looking for category ID 141.
– A.Maksymiuk
Jan 27 '18 at 10:47
thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..
– bofh
Jan 27 '18 at 11:01
i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...
– bofh
Jan 27 '18 at 11:17
I see your are using custom theme - I think you should ask theme seller then.
– A.Maksymiuk
Jan 27 '18 at 20:26
already did, but they didn't provide support during weekend.
– bofh
Jan 27 '18 at 20:30
|
show 1 more comment
It's looking for category ID 141.
– A.Maksymiuk
Jan 27 '18 at 10:47
thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..
– bofh
Jan 27 '18 at 11:01
i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...
– bofh
Jan 27 '18 at 11:17
I see your are using custom theme - I think you should ask theme seller then.
– A.Maksymiuk
Jan 27 '18 at 20:26
already did, but they didn't provide support during weekend.
– bofh
Jan 27 '18 at 20:30
It's looking for category ID 141.
– A.Maksymiuk
Jan 27 '18 at 10:47
It's looking for category ID 141.
– A.Maksymiuk
Jan 27 '18 at 10:47
thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..
– bofh
Jan 27 '18 at 11:01
thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..
– bofh
Jan 27 '18 at 11:01
i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...
– bofh
Jan 27 '18 at 11:17
i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...
– bofh
Jan 27 '18 at 11:17
I see your are using custom theme - I think you should ask theme seller then.
– A.Maksymiuk
Jan 27 '18 at 20:26
I see your are using custom theme - I think you should ask theme seller then.
– A.Maksymiuk
Jan 27 '18 at 20:26
already did, but they didn't provide support during weekend.
– bofh
Jan 27 '18 at 20:30
already did, but they didn't provide support during weekend.
– bofh
Jan 27 '18 at 20:30
|
show 1 more comment
3 Answers
3
active
oldest
votes
Apparently TemplateMonster_CatalogImagesGrid
is searching for non-existent category. As far as i can see, there are widget references.
You should check if you have any instances of CatalogImagesGrid
widget in Content/widgets
. Widget parameters might contain category configurations.
add a comment |
I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category
and Use Flat Catalog Product
to Yes
Note: Use these commands after making the changes
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush
add a comment |
Check
Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category
Its Work for me..
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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%2f211189%2fexception-0-magento-framework-exception-nosuchentityexception-no-such-entity%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Apparently TemplateMonster_CatalogImagesGrid
is searching for non-existent category. As far as i can see, there are widget references.
You should check if you have any instances of CatalogImagesGrid
widget in Content/widgets
. Widget parameters might contain category configurations.
add a comment |
Apparently TemplateMonster_CatalogImagesGrid
is searching for non-existent category. As far as i can see, there are widget references.
You should check if you have any instances of CatalogImagesGrid
widget in Content/widgets
. Widget parameters might contain category configurations.
add a comment |
Apparently TemplateMonster_CatalogImagesGrid
is searching for non-existent category. As far as i can see, there are widget references.
You should check if you have any instances of CatalogImagesGrid
widget in Content/widgets
. Widget parameters might contain category configurations.
Apparently TemplateMonster_CatalogImagesGrid
is searching for non-existent category. As far as i can see, there are widget references.
You should check if you have any instances of CatalogImagesGrid
widget in Content/widgets
. Widget parameters might contain category configurations.
edited May 9 '18 at 8:42
Tim Bezhashvyly
10.4k43665
10.4k43665
answered Feb 5 '18 at 19:10
DodgeXDodgeX
111
111
add a comment |
add a comment |
I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category
and Use Flat Catalog Product
to Yes
Note: Use these commands after making the changes
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush
add a comment |
I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category
and Use Flat Catalog Product
to Yes
Note: Use these commands after making the changes
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush
add a comment |
I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category
and Use Flat Catalog Product
to Yes
Note: Use these commands after making the changes
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush
I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category
and Use Flat Catalog Product
to Yes
Note: Use these commands after making the changes
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush
answered Oct 16 '18 at 13:27
Usman YousafUsman Yousaf
21010
21010
add a comment |
add a comment |
Check
Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category
Its Work for me..
New contributor
add a comment |
Check
Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category
Its Work for me..
New contributor
add a comment |
Check
Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category
Its Work for me..
New contributor
Check
Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category
Its Work for me..
New contributor
New contributor
answered 7 mins ago
Matias AnonizMatias Anoniz
11
11
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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%2f211189%2fexception-0-magento-framework-exception-nosuchentityexception-no-such-entity%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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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
It's looking for category ID 141.
– A.Maksymiuk
Jan 27 '18 at 10:47
thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..
– bofh
Jan 27 '18 at 11:01
i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...
– bofh
Jan 27 '18 at 11:17
I see your are using custom theme - I think you should ask theme seller then.
– A.Maksymiuk
Jan 27 '18 at 20:26
already did, but they didn't provide support during weekend.
– bofh
Jan 27 '18 at 20:30