Posted on

Magento 2: Getting Error on Frontend after upgrade Magento Version

I have upgraded the Magento version from 2.3.5-p1 to the Latest Magento Version: 2.4.3, and I am getting this error on frontend: https://i.imgur.com/pwKPFyV.png when I have checked the error log file (system.log), then getting this error: [2021-10-08 09:47:35] main.CRITICAL: Error: Call to a member function isAllow() on null in /var/www/html/www.legacystation.com/var/view_preprocessed/pub/static/vendor/magento/module-wishlist/view/frontend/templates/sidebar.phtml:1
Stack trace:
#0 /var/www/html/www.legacystation.com/vendor/magento/framework/View/TemplateEngine/Php.php(71): include()
#1 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewTemplateEnginePhp->render()
#2 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewTemplateEnginePhpInterceptor->___callParent()
#3 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewTemplateEnginePhpInterceptor->MagentoFrameworkInterception{closure}()
#4 /var/www/html/www.legacystation.com/generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(23): MagentoFrameworkViewTemplateEnginePhpInterceptor->___callPlugins()
#5 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/Template.php(273): MagentoFrameworkViewTemplateEnginePhpInterceptor->render()
#6 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/Template.php(303): MagentoFrameworkViewElementTemplate->fetchView()
#7 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(1114): MagentoFrameworkViewElementTemplate->_toHtml()
#8 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(1118): MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}()
#9 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(678): MagentoFrameworkViewElementAbstractBlock->_loadCache()
#10 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewElementAbstractBlock->toHtml()
#11 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoWishlistBlockCustomerSidebarInterceptor->___callParent()
#12 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoWishlistBlockCustomerSidebarInterceptor->MagentoFrameworkInterception{closure}()
#13 /var/www/html/www.legacystation.com/generated/code/Magento/Wishlist/Block/Customer/Sidebar/Interceptor.php(41): MagentoWishlistBlockCustomerSidebarInterceptor->___callPlugins()
#14 /var/www/html/www.legacystation.com/vendor/magento/module-email/Model/Template/Filter.php(439): MagentoWishlistBlockCustomerSidebarInterceptor->toHtml()
#15 [internal function]: MagentoEmailModelTemplateFilter->blockDirective()
#16 /var/www/html/www.legacystation.com/vendor/magento/framework/Filter/DirectiveProcessor/LegacyDirective.php(42): ReflectionMethod->invokeArgs()
#17 /var/www/html/www.legacystation.com/vendor/magento/framework/Filter/Template.php(184): MagentoFrameworkFilterDirectiveProcessorLegacyDirective->process()
#18 /var/www/html/www.legacystation.com/vendor/magento/module-email/Model/Template/Filter.php(1095): MagentoFrameworkFilterTemplate->filter()
#19 /var/www/html/www.legacystation.com/vendor/swissup/module-navigationpro/Model/Template/Filter.php(91): MagentoEmailModelTemplateFilter->filter()
#20 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(58): SwissupNavigationproModelTemplateFilter->filter()
#21 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(138): SwissupNavigationproModelTemplateFilterInterceptor->___callParent()
#22 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(153): SwissupNavigationproModelTemplateFilterInterceptor->MagentoFrameworkInterception{closure}()
#23 /var/www/html/www.legacystation.com/generated/code/Swissup/Navigationpro/Model/Template/Filter/Interceptor.php(23): SwissupNavigationproModelTemplateFilterInterceptor->___callPlugins()
#24 /var/www/html/www.legacystation.com/vendor/swissup/module-navigationpro/Data/Tree/Node/HtmlRenderer.php(51): SwissupNavigationproModelTemplateFilterInterceptor->filter()
#25 /var/www/html/www.legacystation.com/vendor/swissup/module-navigationpro/Data/Tree/Node/HtmlRenderer.php(162): SwissupNavigationproDataTreeNodeHtmlRenderer->filter()
#26 /var/www/html/www.legacystation.com/vendor/swissup/module-navigationpro/Data/Tree/Node/HtmlRenderer.php(223): SwissupNavigationproDataTreeNodeHtmlRenderer->getRenderedDropdownContent()
#27 /var/www/html/www.legacystation.com/vendor/swissup/module-navigationpro/Data/Tree/Node/HtmlRenderer.php(265): SwissupNavigationproDataTreeNodeHtmlRenderer->renderLi()
#28 /var/www/html/www.legacystation.com/vendor/swissup/module-navigationpro/Data/Tree/Node.php(466): SwissupNavigationproDataTreeNodeHtmlRenderer->render()
#29 /var/www/html/www.legacystation.com/vendor/swissup/module-navigationpro/Model/Resolver/DataProvider/Menu.php(198): SwissupNavigationproDataTreeNode->render()
#30 /var/www/html/www.legacystation.com/vendor/swissup/module-navigationpro/Block/Menu.php(215): SwissupNavigationproModelResolverDataProviderMenu->render()
#31 /var/www/html/www.legacystation.com/var/view_preprocessed/pub/static/vendor/swissup/module-navigationpro/view/frontend/templates/menu.phtml(1): SwissupNavigationproBlockMenu->getHtml()
#32 /var/www/html/www.legacystation.com/vendor/magento/framework/View/TemplateEngine/Php.php(71): include(‘/var/www/html/w…’)
#33 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewTemplateEnginePhp->render()
#34 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewTemplateEnginePhpInterceptor->___callParent()
#35 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewTemplateEnginePhpInterceptor->MagentoFrameworkInterception{closure}()
#36 /var/www/html/www.legacystation.com/generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(23): MagentoFrameworkViewTemplateEnginePhpInterceptor->___callPlugins()
#37 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/Template.php(273): MagentoFrameworkViewTemplateEnginePhpInterceptor->render()
#38 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/Template.php(303): MagentoFrameworkViewElementTemplate->fetchView()
#39 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(1114): MagentoFrameworkViewElementTemplate->_toHtml()
#40 /var/www/html/www.legacystation.com/vendor/magento/framework/Cache/LockGuardedCacheLoader.php(136): MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}()
#41 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(1136): MagentoFrameworkCacheLockGuardedCacheLoader->lockedLoadData()
#42 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(678): MagentoFrameworkViewElementAbstractBlock->_loadCache()
#43 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(578): MagentoFrameworkViewElementAbstractBlock->toHtml()
#44 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(555): MagentoFrameworkViewLayout->_renderBlock()
#45 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(510): MagentoFrameworkViewLayout->renderNonCachedElement()
#46 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(529): MagentoFrameworkViewLayout->renderElement()
#47 /var/www/html/www.legacystation.com/var/view_preprocessed/pub/static/vendor/magento/module-theme/view/frontend/templates/html/container.phtml(1): MagentoFrameworkViewElementAbstractBlock->getChildHtml()
#48 /var/www/html/www.legacystation.com/vendor/magento/framework/View/TemplateEngine/Php.php(71): include(‘/var/www/html/w…’)
#49 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewTemplateEnginePhp->render()
#50 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewTemplateEnginePhpInterceptor->___callParent()
#51 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewTemplateEnginePhpInterceptor->MagentoFrameworkInterception{closure}()
#52 /var/www/html/www.legacystation.com/generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(23): MagentoFrameworkViewTemplateEnginePhpInterceptor->___callPlugins()
#53 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/Template.php(273): MagentoFrameworkViewTemplateEnginePhpInterceptor->render()
#54 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/Template.php(303): MagentoFrameworkViewElementTemplate->fetchView()
#55 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(1114): MagentoFrameworkViewElementTemplate->_toHtml()
#56 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(1118): MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}()
#57 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(678): MagentoFrameworkViewElementAbstractBlock->_loadCache()
#58 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(578): MagentoFrameworkViewElementAbstractBlock->toHtml()
#59 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(555): MagentoFrameworkViewLayout->_renderBlock()
#60 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(510): MagentoFrameworkViewLayout->renderNonCachedElement()
#61 /var/www/html/www.legacystation.com/var/view_preprocessed/pub/static/vendor/magento/module-theme/view/frontend/templates/html/sections.phtml(1): MagentoFrameworkViewLayout->renderElement()
#62 /var/www/html/www.legacystation.com/vendor/magento/framework/View/TemplateEngine/Php.php(71): include(‘/var/www/html/w…’)
#63 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewTemplateEnginePhp->render()
#64 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewTemplateEnginePhpInterceptor->___callParent()
#65 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewTemplateEnginePhpInterceptor->MagentoFrameworkInterception{closure}()
#66 /var/www/html/www.legacystation.com/generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(23): MagentoFrameworkViewTemplateEnginePhpInterceptor->___callPlugins()
#67 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/Template.php(273): MagentoFrameworkViewTemplateEnginePhpInterceptor->render()
#68 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/Template.php(303): MagentoFrameworkViewElementTemplate->fetchView()
#69 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(1114): MagentoFrameworkViewElementTemplate->_toHtml()
#70 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(1118): MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}()
#71 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Element/AbstractBlock.php(678): MagentoFrameworkViewElementAbstractBlock->_loadCache()
#72 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(578): MagentoFrameworkViewElementAbstractBlock->toHtml()
#73 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(555): MagentoFrameworkViewLayout->_renderBlock()
#74 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(510): MagentoFrameworkViewLayout->renderNonCachedElement()
#75 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(606): MagentoFrameworkViewLayout->renderElement()
#76 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewLayout->_renderContainer()
#77 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(510): MagentoFrameworkViewLayout->renderNonCachedElement()
#78 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(606): MagentoFrameworkViewLayout->renderElement()
#79 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewLayout->_renderContainer()
#80 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(510): MagentoFrameworkViewLayout->renderNonCachedElement()
#81 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(606): MagentoFrameworkViewLayout->renderElement()
#82 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewLayout->_renderContainer()
#83 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(510): MagentoFrameworkViewLayout->renderNonCachedElement()
#84 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Layout.php(975): MagentoFrameworkViewLayout->renderElement()
#85 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewLayout->getOutput()
#86 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewLayoutInterceptor->___callParent()
#87 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterception{closure}()
#88 /var/www/html/www.legacystation.com/generated/code/Magento/Framework/View/Layout/Interceptor.php(41): MagentoFrameworkViewLayoutInterceptor->___callPlugins()
#89 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Result/Page.php(260): MagentoFrameworkViewLayoutInterceptor->getOutput()
#90 /var/www/html/www.legacystation.com/vendor/magento/framework/View/Result/Layout.php(171): MagentoFrameworkViewResultPage->render()
#91 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewResultLayout->renderResult()
#92 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewResultPageInterceptor->___callParent()
#93 /var/www/html/www.legacystation.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterception{closure}()
#94 /var/www/html/www.legacystation.com/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(23): MagentoFrameworkViewResultPageInterceptor->___callPlugins()
#95 /var/www/html/www.legacystation.com/vendor/magento/framework/App/Http.php(120): MagentoFrameworkViewResultPageInterceptor->renderResult()
#96 /var/www/html/www.legacystation.com/vendor/magento/framework/App/Bootstrap.php(264): MagentoFrameworkAppHttp->launch()
#97 /var/www/html/www.legacystation.com/index.php(39): MagentoFrameworkAppBootstrap->run()
#98 {main} [] []

Please, anyone, have the solution then help me for the same.

Leave a Reply

Your email address will not be published. Required fields are marked *