Frontend crashed after deleting a bunch of product

Hello,
Yesterday our website was working good with your megamenu on https://www.fliesen39.de.
But today our frontend died after we deleted some test products. No category were deleted, just products.
I’m pretty sure it is related to your module, since it worked immediately again after disabling Ubertheme_UbMegaMenu from env.php.
Now we re-enabled it and it died again.
Can you please help us?
Regards.
 
Magento 2.1.6 EE, latest version of your plugin, just bought yesterday.

1 exception(s):
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 372

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 372
#0 /var/www/clients/client2/web4/web/vendor/magento/module-catalog/Model/CategoryRepository.php(141): Magento\Framework\Exception\NoSuchEntityException::singleField('id', '372')
#1 /var/www/clients/client2/web4/web/app/code/Ubertheme/UbMegaMenu/Helper/Mega.php(785): Magento\Catalog\Model\CategoryRepository->get('372', '1')
#2 /var/www/clients/client2/web4/web/app/code/Ubertheme/UbMegaMenu/Helper/Mega.php(119): Ubertheme\UbMegaMenu\Helper\Mega->_getActiveItem(Array)
#3 /var/www/clients/client2/web4/web/app/code/Ubertheme/UbMegaMenu/Block/Menu.php(124): Ubertheme\UbMegaMenu\Helper\Mega->rebuildData(Array)
#4 /var/www/clients/client2/web4/web/app/code/Ubertheme/UbMegaMenu/Block/Menu.php(102): Ubertheme\UbMegaMenu\Block\Menu->_generateMenuHtml('1')
#5 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/AbstractBlock.php(659): Ubertheme\UbMegaMenu\Block\Menu->_toHtml()
#6 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml()
#7 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->_renderBlock('main.ub.mega.me...')
#8 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout->renderNonCachedElement('main.ub.mega.me...')
#9 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\View\Layout->renderElement('main.ub.mega.me...', true)
#10 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\View\Layout\Interceptor->___callParent('renderElement', Array)
#11 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderElement', Object(Magento\Framework\View\Layout\Interceptor), Array, 'hoTemplatehints...')
#12 /var/www/clients/client2/web4/web/vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php(77): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}('main.ub.mega.me...', true)
#13 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(142): Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement(Object(Magento\Framework\View\Layout\Interceptor), Object(Closure), 'main.ub.mega.me...', true)
#14 /var/www/clients/client2/web4/web/var/generation/Magento/Framework/View/Layout/Interceptor.php(39): Magento\Framework\View\Layout\Interceptor->___callPlugins('renderElement', Array, Array)
#15 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/AbstractBlock.php(503): Magento\Framework\View\Layout\Interceptor->renderElement('main.ub.mega.me...', true)
#16 /var/www/clients/client2/web4/web/vendor/magento/module-theme/view/frontend/templates/html/container.phtml(10): Magento\Framework\View\Element\AbstractBlock->getChildHtml()
#17 /var/www/clients/client2/web4/web/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/client...')
#18 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/Template.php(255): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Framework\View\Element\Template), '/var/www/client...', Array)
#19 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/Template.php(279): Magento\Framework\View\Element\Template->fetchView('/var/www/client...')
#20 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Framework\View\Element\Template->_toHtml()
#21 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml()
#22 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->_renderBlock('store.menu')
#23 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout->renderNonCachedElement('store.menu')
#24 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\View\Layout->renderElement('store.menu', false)
#25 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\View\Layout\Interceptor->___callParent('renderElement', Array)
#26 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderElement', Object(Magento\Framework\View\Layout\Interceptor), Array, 'hoTemplatehints...')
#27 /var/www/clients/client2/web4/web/vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php(77): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}('store.menu', false)
#28 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(142): Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement(Object(Magento\Framework\View\Layout\Interceptor), Object(Closure), 'store.menu')
#29 /var/www/clients/client2/web4/web/var/generation/Magento/Framework/View/Layout/Interceptor.php(39): Magento\Framework\View\Layout\Interceptor->___callPlugins('renderElement', Array, Array)
#30 /var/www/clients/client2/web4/web/vendor/magento/module-theme/view/frontend/templates/html/sections.phtml(26): Magento\Framework\View\Layout\Interceptor->renderElement('store.menu')
#31 /var/www/clients/client2/web4/web/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/client...')
#32 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/Template.php(255): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Framework\View\Element\Template), '/var/www/client...', Array)
#33 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/Template.php(279): Magento\Framework\View\Element\Template->fetchView('/var/www/client...')
#34 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Framework\View\Element\Template->_toHtml()
#35 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml()
#36 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->_renderBlock('navigation.sect...')
#37 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout->renderNonCachedElement('navigation.sect...')
#38 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\View\Layout->renderElement('navigation.sect...', true)
#39 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\View\Layout\Interceptor->___callParent('renderElement', Array)
#40 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderElement', Object(Magento\Framework\View\Layout\Interceptor), Array, 'hoTemplatehints...')
#41 /var/www/clients/client2/web4/web/vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php(77): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}('navigation.sect...', true)
#42 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(142): Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement(Object(Magento\Framework\View\Layout\Interceptor), Object(Closure), 'navigation.sect...', true)
#43 /var/www/clients/client2/web4/web/var/generation/Magento/Framework/View/Layout/Interceptor.php(39): Magento\Framework\View\Layout\Interceptor->___callPlugins('renderElement', Array, Array)
#44 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/AbstractBlock.php(499): Magento\Framework\View\Layout\Interceptor->renderElement('navigation.sect...', true)
#45 [internal function]: Magento\Framework\View\Element\AbstractBlock->getChildHtml('navigation.sect...')
#46 /var/www/clients/client2/web4/web/vendor/magento/framework/View/TemplateEngine/Php.php(82): call_user_func_array(Array, Array)
#47 /var/www/clients/client2/web4/web/app/design/frontend/Smartwave/porto/Smartwave_Porto/templates/html/header.phtml(266): Magento\Framework\View\TemplateEngine\Php->__call('getChildHtml', Array)
#48 /var/www/clients/client2/web4/web/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/client...')
#49 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/Template.php(255): Magento\Framework\View\TemplateEngine\Php->render(Object(Smartwave\Porto\Block\Template), '/var/www/client...', Array)
#50 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/Template.php(279): Magento\Framework\View\Element\Template->fetchView('/var/www/client...')
#51 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Framework\View\Element\Template->_toHtml()
#52 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml()
#53 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->_renderBlock('porto_header')
#54 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout->renderNonCachedElement('porto_header')
#55 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\View\Layout->renderElement('porto_header', false)
#56 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\View\Layout\Interceptor->___callParent('renderElement', Array)
#57 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderElement', Object(Magento\Framework\View\Layout\Interceptor), Array, 'hoTemplatehints...')
#58 /var/www/clients/client2/web4/web/vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php(77): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}('porto_header', false)
#59 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(142): Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement(Object(Magento\Framework\View\Layout\Interceptor), Object(Closure), 'porto_header')
#60 /var/www/clients/client2/web4/web/var/generation/Magento/Framework/View/Layout/Interceptor.php(39): Magento\Framework\View\Layout\Interceptor->___callPlugins('renderElement', Array, Array)
#61 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('porto_header')
#62 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('page.wrapper')
#63 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper')
#64 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\View\Layout->renderElement('page.wrapper', false)
#65 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\View\Layout\Interceptor->___callParent('renderElement', Array)
#66 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderElement', Object(Magento\Framework\View\Layout\Interceptor), Array, 'hoTemplatehints...')
#67 /var/www/clients/client2/web4/web/vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php(77): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}('page.wrapper', false)
#68 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(142): Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement(Object(Magento\Framework\View\Layout\Interceptor), Object(Closure), 'page.wrapper')
#69 /var/www/clients/client2/web4/web/var/generation/Magento/Framework/View/Layout/Interceptor.php(39): Magento\Framework\View\Layout\Interceptor->___callPlugins('renderElement', Array, Array)
#70 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper')
#71 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('root')
#72 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout->renderNonCachedElement('root')
#73 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\View\Layout->renderElement('root', false)
#74 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\View\Layout\Interceptor->___callParent('renderElement', Array)
#75 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderElement', Object(Magento\Framework\View\Layout\Interceptor), Array, 'hoTemplatehints...')
#76 /var/www/clients/client2/web4/web/vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php(77): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}('root', false)
#77 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(142): Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement(Object(Magento\Framework\View\Layout\Interceptor), Object(Closure), 'root')
#78 /var/www/clients/client2/web4/web/var/generation/Magento/Framework/View/Layout/Interceptor.php(39): Magento\Framework\View\Layout\Interceptor->___callPlugins('renderElement', Array, Array)
#79 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Layout.php(938): Magento\Framework\View\Layout\Interceptor->renderElement('root')
#80 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(146): Magento\Framework\View\Layout->getOutput()
#81 /var/www/clients/client2/web4/web/var/generation/Magento/Framework/View/Layout/Interceptor.php(52): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array)
#82 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Result/Page.php(243): Magento\Framework\View\Layout\Interceptor->getOutput()
#83 /var/www/clients/client2/web4/web/vendor/magento/framework/View/Result/Layout.php(164): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))
#84 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#85 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array)
#86 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderResult', Object(Magento\Framework\View\Result\Page\Interceptor), Array, 'result-varnish-...')
#87 /var/www/clients/client2/web4/web/vendor/magento/module-page-cache/Model/Controller/Result/VarnishPlugin.php(74): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#88 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\PageCache\Model\Controller\Result\VarnishPlugin->aroundRenderResult(Object(Magento\Framework\View\Result\Page\Interceptor), Object(Closure), Object(Magento\Framework\App\Response\Http\Interceptor))
#89 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderResult', Object(Magento\Framework\View\Result\Page\Interceptor), Array, 'result-builtin-...')
#90 /var/www/clients/client2/web4/web/vendor/magento/module-page-cache/Model/Controller/Result/BuiltinPlugin.php(67): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#91 /var/www/clients/client2/web4/web/vendor/magento/framework/Interception/Interceptor.php(142): Magento\PageCache\Model\Controller\Result\BuiltinPlugin->aroundRenderResult(Object(Magento\Framework\View\Result\Page\Interceptor), Object(Closure), Object(Magento\Framework\App\Response\Http\Interceptor))
#92 /var/www/clients/client2/web4/web/var/generation/Magento/Framework/View/Result/Page/Interceptor.php(26): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, Array)
#93 /var/www/clients/client2/web4/web/vendor/magento/framework/App/Http.php(139): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#94 /var/www/clients/client2/web4/web/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#95 /var/www/clients/client2/web4/web/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#96 {main}
  1. Profile photo of casaebagnocasaebagno -10.00 $tone May 11, 2017
    Sorry, I obviouslye meant after disabling your module from "config.php", not "env.php".

1 answer

Profile photo of Mall Staff 184060.00 $tone May 11, 2017
Public

Hi there,

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 372

It seems you have setup a menu item with category type with category id is 372 in first time but you have deleted that category in your system now.
Kindly re-check your menu items settings in back-end of your site or you can directly check in the table ubmegamenu_item` in the database of your site.
Regards,
Mall.

#1

Please login or Register to Submit Answer

Written By

Comments