<div>Magento 2.3 – Create order from Backend – Invalid template file: ‘One97_Paytm::form/paytm.phtml’</div>
Module : https://github.com/paytm/Paytm_Magento_Plugin/tree/master/Magento_V2.3x
After installing the module if i try to create an order from the backend i am getting the following error,
1 exception(s): Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: ‘One97_Paytm::form/paytm.phtml’ in module: ‘One97_Paytm’ block’s name: ‘paytm’
Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: ‘One97_Paytm::form/paytm.phtml’ in module: ‘One97_Paytm’ block’s name: ‘paytm’
#1 MagentoFrameworkViewElementTemplate->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099] #2 MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103] #3 MagentoFrameworkViewElementAbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:673] #4 MagentoFrameworkViewElementAbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:564] #5 MagentoFrameworkViewLayout->_renderBlock('paytm') called at [vendor/magento/framework/View/Layout.php:540] #6 MagentoFrameworkViewLayout->renderNonCachedElement('paytm') called at [vendor/magento/framework/View/Layout.php:495] #7 MagentoFrameworkViewLayout->renderElement('paytm', true) called at [vendor/magento/framework/View/Element/AbstractBlock.php:520] #8 MagentoFrameworkViewElementAbstractBlock->getChildHtml('payment.method.p...') called at [vendor/magento/module-sales/view/adminhtml/templates/order/create/billing/method/form.phtml:47] #9 include('/var/www/html/gi...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59] #10 MagentoFrameworkViewTemplateEnginePhp->render(&MagentoSalesBlockAdminhtmlOrderCreateBillingMethodForm#0000000043a1a69c000000003f3195d8#, '/var/www/html/gi...', array()) called at [vendor/magento/framework/View/Element/Template.php:271] #11 MagentoFrameworkViewElementTemplate->fetchView('/var/www/html/gi...') called at [vendor/magento/framework/View/Element/Template.php:301] #12 MagentoFrameworkViewElementTemplate->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099] #13 MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103] #14 MagentoFrameworkViewElementAbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:673] #15 MagentoFrameworkViewElementAbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:564] #16 MagentoFrameworkViewLayout->_renderBlock('order_create_bil...') called at [vendor/magento/framework/View/Layout.php:540] #17 MagentoFrameworkViewLayout->renderNonCachedElement('order_create_bil...') called at [vendor/magento/framework/View/Layout.php:495] #18 MagentoFrameworkViewLayout->renderElement('order_create_bil...', true) called at [vendor/magento/framework/View/Element/AbstractBlock.php:524] #19 MagentoFrameworkViewElementAbstractBlock->getChildHtml('', true) called at [vendor/magento/module-sales/view/adminhtml/templates/order/create/abstract.phtml:15] #20 include('/var/www/html/gi...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59] #21 MagentoFrameworkViewTemplateEnginePhp->render(&MagentoSalesBlockAdminhtmlOrderCreateBillingMethod#0000000043a1a69d000000003f3195d8#, '/var/www/html/gi...', array()) called at [vendor/magento/framework/View/Element/Template.php:271] #22 MagentoFrameworkViewElementTemplate->fetchView('/var/www/html/gi...') called at [vendor/magento/framework/View/Element/Template.php:301] #23 MagentoFrameworkViewElementTemplate->_toHtml() called at [vendor/magento/module-backend/Block/Template.php:129] #24 MagentoBackendBlockTemplate->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099] #25 MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103] #26 MagentoFrameworkViewElementAbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:673] #27 MagentoFrameworkViewElementAbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:564] #28 MagentoFrameworkViewLayout->_renderBlock('billing_method') called at [vendor/magento/framework/View/Layout.php:540] #29 MagentoFrameworkViewLayout->renderNonCachedElement('billing_method') called at [vendor/magento/framework/View/Layout.php:495] #30 MagentoFrameworkViewLayout->renderElement('billing_method', true) called at [vendor/magento/framework/View/Element/AbstractBlock.php:520] #31 MagentoFrameworkViewElementAbstractBlock->getChildHtml('billing_method') called at [vendor/magento/module-sales/view/adminhtml/templates/order/create/data.phtml:55] #32 include('/var/www/html/gi...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59] #33 MagentoFrameworkViewTemplateEnginePhp->render(&MagentoSalesBlockAdminhtmlOrderCreateData#0000000043a1a67d000000003f3195d8#, '/var/www/html/gi...', array()) called at [vendor/magento/framework/View/Element/Template.php:271] #34 MagentoFrameworkViewElementTemplate->fetchView('/var/www/html/gi...') called at [vendor/magento/framework/View/Element/Template.php:301] #35 MagentoFrameworkViewElementTemplate->_toHtml() called at [vendor/magento/module-backend/Block/Template.php:129] #36 MagentoBackendBlockTemplate->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099] #37 MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103] #38 MagentoFrameworkViewElementAbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:673] #39 MagentoFrameworkViewElementAbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:564] #40 MagentoFrameworkViewLayout->_renderBlock('data') called at [vendor/magento/framework/View/Layout.php:540] #41 MagentoFrameworkViewLayout->renderNonCachedElement('data') called at [vendor/magento/framework/View/Layout.php:495] #42 MagentoFrameworkViewLayout->renderElement('data', true) called at [vendor/magento/framework/View/Element/AbstractBlock.php:520] #43 MagentoFrameworkViewElementAbstractBlock->getChildHtml('data') called at [vendor/magento/module-sales/view/adminhtml/templates/order/create/form.phtml:21] #44 include('/var/www/html/gi...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59] #45 MagentoFrameworkViewTemplateEnginePhp->render(&MagentoSalesBlockAdminhtmlOrderCreateFormInterceptor#0000000043a1a7d0000000003f3195d8#, '/var/www/html/gi...', array()) called at [vendor/magento/framework/View/Element/Template.php:271] #46 MagentoFrameworkViewElementTemplate->fetchView('/var/www/html/gi...') called at [vendor/magento/framework/View/Element/Template.php:301] #47 MagentoFrameworkViewElementTemplate->_toHtml() called at [vendor/magento/module-backend/Block/Template.php:129] #48 MagentoBackendBlockTemplate->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099] #49 MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103] #50 MagentoFrameworkViewElementAbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:673] #51 MagentoFrameworkViewElementAbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:564] #52 MagentoFrameworkViewLayout->_renderBlock('order_create_for...') called at [vendor/magento/framework/View/Layout.php:540] #53 MagentoFrameworkViewLayout->renderNonCachedElement('order_create_for...') called at [vendor/magento/framework/View/Layout.php:495] #54 MagentoFrameworkViewLayout->renderElement('order_create_for...', true) called at [vendor/magento/framework/View/Element/AbstractBlock.php:520] #55 MagentoFrameworkViewElementAbstractBlock->getChildHtml('form') called at [vendor/magento/module-backend/Block/Widget/Form/Container.php:197] #56 MagentoBackendBlockWidgetFormContainer->getFormHtml() called at [vendor/magento/module-backend/view/adminhtml/templates/widget/form/container.phtml:22] #57 include('/var/www/html/gi...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59] #58 MagentoFrameworkViewTemplateEnginePhp->render(&MagentoSalesBlockAdminhtmlOrderCreate#0000000043a1a7a7000000003f3195d8#, '/var/www/html/gi...', array()) called at [vendor/magento/framework/View/Element/Template.php:271] #59 MagentoFrameworkViewElementTemplate->fetchView('/var/www/html/gi...') called at [vendor/magento/framework/View/Element/Template.php:301] #60 MagentoFrameworkViewElementTemplate->_toHtml() called at [vendor/magento/module-backend/Block/Template.php:129] #61 MagentoBackendBlockTemplate->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099] #62 MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103] #63 MagentoFrameworkViewElementAbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:673] #64 MagentoFrameworkViewElementAbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:564] #65 MagentoFrameworkViewLayout->_renderBlock('order_content') called at [vendor/magento/framework/View/Layout.php:540] #66 MagentoFrameworkViewLayout->renderNonCachedElement('order_content') called at [vendor/magento/framework/View/Layout.php:495] #67 MagentoFrameworkViewLayout->renderElement('order_content', false) called at [vendor/magento/framework/View/Layout.php:592] #68 MagentoFrameworkViewLayout->_renderContainer('content', false) called at [vendor/magento/framework/View/Layout.php:542] #69 MagentoFrameworkViewLayout->renderNonCachedElement('content') called at [vendor/magento/framework/View/Layout.php:495] #70 MagentoFrameworkViewLayout->renderElement('content', false) called at [vendor/magento/framework/View/Layout.php:592] #71 MagentoFrameworkViewLayout->_renderContainer('main.col', false) called at [vendor/magento/framework/View/Layout.php:542] #72 MagentoFrameworkViewLayout->renderNonCachedElement('main.col') called at [vendor/magento/framework/View/Layout.php:495] #73 MagentoFrameworkViewLayout->renderElement('main.col', false) called at [vendor/magento/framework/View/Layout.php:592] #74 MagentoFrameworkViewLayout->_renderContainer('admin.scope.col....', false) called at [vendor/magento/framework/View/Layout.php:542] #75 MagentoFrameworkViewLayout->renderNonCachedElement('admin.scope.col....') called at [vendor/magento/framework/View/Layout.php:495] #76 MagentoFrameworkViewLayout->renderElement('admin.scope.col....', false) called at [vendor/magento/framework/View/Layout.php:592] #77 MagentoFrameworkViewLayout->_renderContainer('page.main.contai...', false) called at [vendor/magento/framework/View/Layout.php:542] #78 MagentoFrameworkViewLayout->renderNonCachedElement('page.main.contai...') called at [vendor/magento/framework/View/Layout.php:495] #79 MagentoFrameworkViewLayout->renderElement('page.main.contai...', false) called at [vendor/magento/framework/View/Layout.php:592] #80 MagentoFrameworkViewLayout->_renderContainer('page.content', false) called at [vendor/magento/framework/View/Layout.php:542] #81 MagentoFrameworkViewLayout->renderNonCachedElement('page.content') called at [vendor/magento/framework/View/Layout.php:495] #82 MagentoFrameworkViewLayout->renderElement('page.content', false) called at [vendor/magento/framework/View/Layout.php:592] #83 MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:542] #84 MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper') called at [vendor/magento/framework/View/Layout.php:495] #85 MagentoFrameworkViewLayout->renderElement('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:592] #86 MagentoFrameworkViewLayout->_renderContainer('backend.page', false) called at [vendor/magento/framework/View/Layout.php:542] #87 MagentoFrameworkViewLayout->renderNonCachedElement('backend.page') called at [vendor/magento/framework/View/Layout.php:495] #88 MagentoFrameworkViewLayout->renderElement('backend.page', false) called at [vendor/magento/framework/View/Layout.php:592] #89 MagentoFrameworkViewLayout->_renderContainer('root', false) called at [vendor/magento/framework/View/Layout.php:542] #90 MagentoFrameworkViewLayout->renderNonCachedElement('root') called at [vendor/magento/framework/View/Layout.php:495] #91 MagentoFrameworkViewLayout->renderElement('root') called at [vendor/magento/framework/View/Layout.php:961] #92 MagentoFrameworkViewLayout->getOutput() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:37] #93 MagentoFrameworkViewLayoutInterceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258] #94 MagentoFrameworkViewResultPage->render(&MagentoFrameworkAppResponseHttpInterceptor#0000000043a1afae000000003f3195d8#) called at [vendor/magento/framework/View/Result/Layout.php:171] #95 MagentoFrameworkViewResultLayout->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#0000000043a1afae000000003f3195d8#) called at [generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php:24] #96 MagentoBackendModelViewResultPageInterceptor->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#0000000043a1afae000000003f3195d8#) called at [vendor/magento/framework/App/Http.php:120] #97 MagentoFrameworkAppHttp->launch() called at [vendor/magento/framework/App/Bootstrap.php:261] #98 MagentoFrameworkAppBootstrap->run(&MagentoFrameworkAppHttpInterceptor#0000000043a1afac000000003f3195d8#) called at [pub/index.php:43]
How to solve the error?