Skip to content

Invalid template file: 'Snowdog_Menu::hyva-topmenu-mobile/menu/custom/sub_menu/3-level.phtml' in module: 'Snowdog_Menu' block's name: 'topmenu-mobile' #391

@codingkoaladev

Description

@codingkoaladev

Steps to replicate:

Create a desktop menu with a category and some sub categories

Image

Clone the menu and assign as the mobile menu

Image

Refresh frontend, the error below gets thrown

1 exception(s):
Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Snowdog_Menu::hyva-topmenu-mobile/menu/custom/sub_menu/3-level.phtml' in module: 'Snowdog_Menu' block's name: 'topmenu-mobile'

Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Snowdog_Menu::hyva-topmenu-mobile/menu/custom/sub_menu/3-level.phtml' in module: 'Snowdog_Menu' block's name: 'topmenu-mobile'

#1 Snowdog\Menu\Block\Menu\Interceptor->fetchView() called at [vendor/mage-os/framework/View/Element/Template.php:293]
#2 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:1128]
#3 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:1132]
#4 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:676]
#5 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/snowdog/module-menu/Block/Menu.php:319]
#6 Snowdog\Menu\Block\Menu->renderSubmenu() called at [vendor/snowdog/module-menu/view/frontend/templates/hyva-topmenu-mobile/menu.phtml:124]
#7 include() called at [vendor/mage-os/framework/View/TemplateEngine/Php.php:67]
#8 Magento\Framework\View\TemplateEngine\Php->render() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:54]
#9 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/mage-os/framework/View/Element/Template.php:263]
#10 Magento\Framework\View\Element\Template->fetchView() called at [generated/code/Snowdog/Menu/Block/Menu/Interceptor.php:51]
#11 Snowdog\Menu\Block\Menu\Interceptor->fetchView() called at [vendor/mage-os/framework/View/Element/Template.php:293]
#12 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:1128]
#13 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:1132]
#14 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:676]
#15 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/mage-os/framework/View/Layout.php:578]
#16 Magento\Framework\View\Layout->_renderBlock() called at [vendor/mage-os/framework/View/Layout.php:555]
#17 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/mage-os/framework/View/Layout.php:510]
#18 Magento\Framework\View\Layout->renderElement() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:527]
#19 Magento\Framework\View\Element\AbstractBlock->getChildHtml() called at [vendor/hyva-themes/magento2-default-theme/Magento_Theme/templates/html/header/topmenu.phtml:17]
#20 include() called at [vendor/mage-os/framework/View/TemplateEngine/Php.php:67]
#21 Magento\Framework\View\TemplateEngine\Php->render() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:54]
#22 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/mage-os/framework/View/Element/Template.php:263]
#23 Magento\Framework\View\Element\Template->fetchView() called at [generated/code/Magento/Framework/View/Element/Template/Interceptor.php:51]
#24 Magento\Framework\View\Element\Template\Interceptor->fetchView() called at [vendor/mage-os/framework/View/Element/Template.php:293]
#25 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:1128]
#26 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:1132]
#27 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:676]
#28 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/mage-os/framework/View/Layout.php:578]
#29 Magento\Framework\View\Layout->_renderBlock() called at [vendor/mage-os/framework/View/Layout.php:555]
#30 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/mage-os/framework/View/Layout.php:510]
#31 Magento\Framework\View\Layout->renderElement() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:523]
#32 Magento\Framework\View\Element\AbstractBlock->getChildHtml() called at [vendor/hyva-themes/magento2-default-theme/Magento_Theme/templates/html/header.phtml:92]
#33 include() called at [vendor/mage-os/framework/View/TemplateEngine/Php.php:67]
#34 Magento\Framework\View\TemplateEngine\Php->render() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:54]
#35 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/mage-os/framework/View/Element/Template.php:263]
#36 Magento\Framework\View\Element\Template->fetchView() called at [generated/code/Magento/Framework/View/Element/Template/Interceptor.php:51]
#37 Magento\Framework\View\Element\Template\Interceptor->fetchView() called at [vendor/mage-os/framework/View/Element/Template.php:293]
#38 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:1128]
#39 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:1132]
#40 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/mage-os/framework/View/Element/AbstractBlock.php:676]
#41 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/mage-os/framework/View/Layout.php:578]
#42 Magento\Framework\View\Layout->_renderBlock() called at [vendor/mage-os/framework/View/Layout.php:555]
#43 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/mage-os/framework/View/Layout.php:510]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions