cancel
Showing results for 
Search instead for 
Did you mean: 

Homepage Problem

Homepage Problem

Hi Team,

I have set category as a navigation menu with help of extension which name is MAGEDELIGHT.

I have removed one categroy from admin panel after I refresh the page then I can see following type of issue.

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

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 4
<pre>#1 Magento\Catalog\Model\CategoryRepository->get() called at [generated/code/Magento/Catalog/Model/CategoryRepository/Interceptor.php:32]
#2 Magento\Catalog\Model\CategoryRepository\Interceptor->get() called at [app/code/Magedelight/Megamenu/Model/MegamenuManagement.php:387]
#3 Magedelight\Megamenu\Model\MegamenuManagement->getCategoryById() called at [app/code/Magedelight/Megamenu/Model/MegamenuManagement.php:329]
#4 Magedelight\Megamenu\Model\MegamenuManagement->generateMenuUrl() called at [app/code/Magedelight/Megamenu/Model/MegamenuManagement.php:234]
#5 Magedelight\Megamenu\Model\MegamenuManagement->setMegaMenuItems() called at [app/code/Magedelight/Megamenu/Model/MegamenuManagement.php:158]
#6 Magedelight\Megamenu\Model\MegamenuManagement->getMegamenu() called at [app/code/Magedelight/Megamenu/Model/MegamenuManagement.php:96]
#7 Magedelight\Megamenu\Model\MegamenuManagement->getMenuData() called at [app/code/Magedelight/Megamenu/Block/Topmenu.php:148]
#8 Magedelight\Megamenu\Block\Topmenu->setCustomTemplate() called at [generated/code/Magedelight/Megamenu/Block/Topmenu/Interceptor.php:50]
#9 Magedelight\Megamenu\Block\Topmenu\Interceptor->setCustomTemplate()
#10 call_user_func_array() called at [vendor/magento/framework/View/Layout/Generator/Block.php:302]
#11 Magento\Framework\View\Layout\Generator\Block->generateAction() called at [vendor/magento/framework/View/Layout/Generator/Block.php:169]
#12 Magento\Framework\View\Layout\Generator\Block->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:93]
#13 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:365]
#14 Magento\Framework\View\Layout->generateElements() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#15 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#16 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#17 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:68]
#18 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#19 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:65]
#20 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#21 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Layout.php:271]
#22 Magento\Framework\View\Layout->build() called at [vendor/magento/framework/View/Layout.php:896]
#23 Magento\Framework\View\Layout->getBlock() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:293]
#24 Magento\Framework\View\Layout\Interceptor->getBlock() called at [vendor/magento/module-cms/Helper/Page.php:218]
#25 Magento\Cms\Helper\Page->prepareResultPage() called at [vendor/magento/module-cms/Controller/Index/Index.php:74]
#26 Magento\Cms\Controller\Index\Index->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#27 Magento\Cms\Controller\Index\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#28 Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#29 Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins() called at [generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php:23]
#30 Magento\Cms\Controller\Index\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#31 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#32 Magento\Cms\Controller\Index\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#33 Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#34 Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins() called at [generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php:32]
#35 Magento\Cms\Controller\Index\Index\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245]
#36 Magento\Framework\App\FrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212]
#37 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:147]
#38 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#39 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#40 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]
#41 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#42 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:75]
#43 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#44 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#45 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#46 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#47 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#48 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#49 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:29]
</pre>

I have run the all commands like Upgrade, Deploy, Reindexer, Catch clean and Catch flush still I can see above the issue.

can you please look into it..??

-
Thank You