skip to Main Content

1 exception(s):
Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: ‘Bss_CreateMenuBackend::helloworld.phtml’ in module: ‘Magento_Backend’ block’s name: ‘content_schedule_block1’

Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: ‘Bss_CreateMenuBackend::helloworld.phtml’ in module: ‘Magento_Backend’ block’s name: ‘content_schedule_block1’

#1 MagentoFrameworkViewElementTemplate->_toHtml() called at [vendormagentomodule-backendBlockTemplate.php:129]
#2 MagentoBackendBlockTemplate->_toHtml() called at [vendormagentoframeworkViewElementAbstractBlock.php:1097]
#3 MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}() called at [vendormagentoframeworkViewElementAbstractBlock.php:1101]
#4 MagentoFrameworkViewElementAbstractBlock->_loadCache() called at [vendormagentoframeworkViewElementAbstractBlock.php:671]
#5 MagentoFrameworkViewElementAbstractBlock->toHtml() called at [vendormagentoframeworkViewLayout.php:557]
#6 MagentoFrameworkViewLayout->_renderBlock('content_schedule...') called at [vendormagentoframeworkViewLayout.php:533]
#7 MagentoFrameworkViewLayout->renderNonCachedElement('content_schedule...') called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:206]
#8 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('content_schedule...') called at [vendormagentoframeworkViewLayout.php:488]
#9 MagentoFrameworkViewLayout->renderElement('content_schedule...', false) called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:193]
#10 MagentoFrameworkViewLayoutInterceptor->renderElement('content_schedule...', false) called at [vendormagentoframeworkViewLayout.php:585]
#11 MagentoFrameworkViewLayout->_renderContainer('content', false) called at [vendormagentoframeworkViewLayout.php:535]
#12 MagentoFrameworkViewLayout->renderNonCachedElement('content') called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:206]
#13 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('content') called at [vendormagentoframeworkViewLayout.php:488]
#14 MagentoFrameworkViewLayout->renderElement('content', false) called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:193]
#15 MagentoFrameworkViewLayoutInterceptor->renderElement('content', false) called at [vendormagentoframeworkViewLayout.php:585]
#16 MagentoFrameworkViewLayout->_renderContainer('main.col', false) called at [vendormagentoframeworkViewLayout.php:535]
#17 MagentoFrameworkViewLayout->renderNonCachedElement('main.col') called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:206]
#18 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main.col') called at [vendormagentoframeworkViewLayout.php:488]
#19 MagentoFrameworkViewLayout->renderElement('main.col', false) called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:193]
#20 MagentoFrameworkViewLayoutInterceptor->renderElement('main.col', false) called at [vendormagentoframeworkViewLayout.php:585]
#21 MagentoFrameworkViewLayout->_renderContainer('admin.scope.col....', false) called at [vendormagentoframeworkViewLayout.php:535]
#22 MagentoFrameworkViewLayout->renderNonCachedElement('admin.scope.col....') called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:206]
#23 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('admin.scope.col....') called at [vendormagentoframeworkViewLayout.php:488]
#24 MagentoFrameworkViewLayout->renderElement('admin.scope.col....', false) called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:193]
#25 MagentoFrameworkViewLayoutInterceptor->renderElement('admin.scope.col....', false) called at [vendormagentoframeworkViewLayout.php:585]
#26 MagentoFrameworkViewLayout->_renderContainer('page.main.contai...', false) called at [vendormagentoframeworkViewLayout.php:535]
#27 MagentoFrameworkViewLayout->renderNonCachedElement('page.main.contai...') called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:206]
#28 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('page.main.contai...') called at [vendormagentoframeworkViewLayout.php:488]
#29 MagentoFrameworkViewLayout->renderElement('page.main.contai...', false) called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:193]
#30 MagentoFrameworkViewLayoutInterceptor->renderElement('page.main.contai...', false) called at [vendormagentoframeworkViewLayout.php:585]
#31 MagentoFrameworkViewLayout->_renderContainer('page.content', false) called at [vendormagentoframeworkViewLayout.php:535]
#32 MagentoFrameworkViewLayout->renderNonCachedElement('page.content') called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:206]
#33 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('page.content') called at [vendormagentoframeworkViewLayout.php:488]
#34 MagentoFrameworkViewLayout->renderElement('page.content', false) called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:193]
#35 MagentoFrameworkViewLayoutInterceptor->renderElement('page.content', false) called at [vendormagentoframeworkViewLayout.php:585]
#36 MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false) called at [vendormagentoframeworkViewLayout.php:535]
#37 MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper') called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:206]
#38 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('page.wrapper') called at [vendormagentoframeworkViewLayout.php:488]
#39 MagentoFrameworkViewLayout->renderElement('page.wrapper', false) called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:193]
#40 MagentoFrameworkViewLayoutInterceptor->renderElement('page.wrapper', false) called at [vendormagentoframeworkViewLayout.php:585]
#41 MagentoFrameworkViewLayout->_renderContainer('backend.page', false) called at [vendormagentoframeworkViewLayout.php:535]
#42 MagentoFrameworkViewLayout->renderNonCachedElement('backend.page') called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:206]
#43 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('backend.page') called at [vendormagentoframeworkViewLayout.php:488]
#44 MagentoFrameworkViewLayout->renderElement('backend.page', false) called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:193]
#45 MagentoFrameworkViewLayoutInterceptor->renderElement('backend.page', false) called at [vendormagentoframeworkViewLayout.php:585]
#46 MagentoFrameworkViewLayout->_renderContainer('root', false) called at [vendormagentoframeworkViewLayout.php:535]
#47 MagentoFrameworkViewLayout->renderNonCachedElement('root') called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:206]
#48 MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('root') called at [vendormagentoframeworkViewLayout.php:488]
#49 MagentoFrameworkViewLayout->renderElement('root', true) called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:193]
#50 MagentoFrameworkViewLayoutInterceptor->renderElement('root') called at [vendormagentoframeworkViewLayout.php:954]
#51 MagentoFrameworkViewLayout->getOutput() called at [generatedcodeMagentoFrameworkViewLayoutInterceptor.php:492]
#52 MagentoFrameworkViewLayoutInterceptor->getOutput() called at [vendormagentoframeworkViewResultPage.php:258]
#53 MagentoFrameworkViewResultPage->render(&MagentoFrameworkAppResponseHttpInterceptor#000000005a145ea0000000002a77c2a8#) called at [vendormagentoframeworkViewResultLayout.php:171]
#54 MagentoFrameworkViewResultLayout->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000005a145ea0000000002a77c2a8#) called at [generatedcodeMagentoBackendModelViewResultPageInterceptor.php:193]
#55 MagentoBackendModelViewResultPageInterceptor->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000005a145ea0000000002a77c2a8#) called at [vendormagentoframeworkAppHttp.php:141]
#56 MagentoFrameworkAppHttp->launch() called at [generatedcodeMagentoFrameworkAppHttpInterceptor.php:24]
#57 MagentoFrameworkAppHttpInterceptor->launch() called at [vendormagentoframeworkAppBootstrap.php:261]
#58 MagentoFrameworkAppBootstrap->run(&MagentoFrameworkAppHttpInterceptor#000000005a145eab000000002a77c2a8#) called at [index.php:39]

2

Answers


  1. check the file is available on path and check code is valid as per php and html stucture:

    app/code/Bss/CreateMenuBackend/view/adminhtml/templates/helloworld.phtml
    

    which is specified in layout file with block name "content_schedule_block1"

    Login or Signup to reply.
  2. The example is wrong. You should follow this doc: https://devdocs.magento.com/guides/v2.4/ext-best-practices/extension-coding/example-module-adminpage.html.

    If you want to fix it. You only need to change resource="Magento_Backend" in menu.xml.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search