Hello everybody,
i changed my mode to production but had to go back to developer because i hade to translate some things. Alle went fine, and i'm back in developer mode. But now i get this error when i activate inline translation. Who can help me with this because i have no clue
1 exception(s): Exception #0 (Exception): Warning: sprintf(): Too few arguments in /home/admin/domains/shopdesomerplancke.be/public_html/vendor/magento/module-email/Model/Template/Filter.php on line 1051 Exception #0 (Exception): Warning: sprintf(): Too few arguments in /home/admin/domains/shopdesomerplancke.be/public_html/vendor/magento/module-email/Model/Template/Filter.php on line 1051 <pre>#1 sprintf('{{{Fout filteren...', 'Notice: Undefine...') called at [vendor/magento/module-email/Model/Template/Filter.php:1051] #2 Magento\Email\Model\Template\Filter->filter('\r\n<div class="cd...') called at [app/code/Codazon/MegaMenu/Block/Widget/Megamenu.php:185] #3 Codazon\MegaMenu\Block\Widget\Megamenu->filter('\r\n<div class="cd...') called at [app/code/Codazon/MegaMenu/Block/Widget/Megamenu.php:143] #4 Codazon\MegaMenu\Block\Widget\Megamenu->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099] #5 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103] #6 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:673] #7 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [app/design/frontend/Codazon/unlimited/default/Magento_Theme/templates/html/vertcial-menu.phtml:18] #8 include('/home/admin/doma...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59] #9 Magento\Framework\View\TemplateEngine\Php->render(&Magento\Framework\View\Element\Template#000000006b606cd5000000007fe96bd8#, '/home/admin/doma...', array()) called at [vendor/magento/framework/View/Element/Template.php:271] #10 Magento\Framework\View\Element\Template->fetchView('/home/admin/doma...') called at [vendor/magento/framework/View/Element/Template.php:301] #11 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099] #12 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103] #13 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:673] #14 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:564] #15 Magento\Framework\View\Layout->_renderBlock('store-vertical-m...') called at [vendor/magento/framework/View/Layout.php:540] #16 Magento\Framework\View\Layout->renderNonCachedElement('store-vertical-m...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #17 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('store-vertical-m...') called at [vendor/magento/framework/View/Layout.php:495] #18 Magento\Framework\View\Layout->renderElement('store-vertical-m...', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #19 Magento\Framework\View\Layout\Interceptor->renderElement('store-vertical-m...', false) called at [vendor/magento/framework/View/Layout.php:592] #20 Magento\Framework\View\Layout->_renderContainer('header-vertical-...', false) called at [vendor/magento/framework/View/Layout.php:542] #21 Magento\Framework\View\Layout->renderNonCachedElement('header-vertical-...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #22 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('header-vertical-...') called at [vendor/magento/framework/View/Layout.php:495] #23 Magento\Framework\View\Layout->renderElement('header-vertical-...', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #24 Magento\Framework\View\Layout\Interceptor->renderElement('header-vertical-...', false) called at [vendor/magento/framework/View/Layout.php:592] #25 Magento\Framework\View\Layout->_renderContainer('header-panel-bot...', false) called at [vendor/magento/framework/View/Layout.php:542] #26 Magento\Framework\View\Layout->renderNonCachedElement('header-panel-bot...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #27 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('header-panel-bot...') called at [vendor/magento/framework/View/Layout.php:495] #28 Magento\Framework\View\Layout->renderElement('header-panel-bot...', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #29 Magento\Framework\View\Layout\Interceptor->renderElement('header-panel-bot...', false) called at [vendor/magento/framework/View/Layout.php:592] #30 Magento\Framework\View\Layout->_renderContainer('header-panel-bot...', false) called at [vendor/magento/framework/View/Layout.php:542] #31 Magento\Framework\View\Layout->renderNonCachedElement('header-panel-bot...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #32 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('header-panel-bot...') called at [vendor/magento/framework/View/Layout.php:495] #33 Magento\Framework\View\Layout->renderElement('header-panel-bot...', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #34 Magento\Framework\View\Layout\Interceptor->renderElement('header-panel-bot...', false) called at [vendor/magento/framework/View/Layout.php:592] #35 Magento\Framework\View\Layout->_renderContainer('header-panel-row', false) called at [vendor/magento/framework/View/Layout.php:542] #36 Magento\Framework\View\Layout->renderNonCachedElement('header-panel-row') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #37 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('header-panel-row') called at [vendor/magento/framework/View/Layout.php:495] #38 Magento\Framework\View\Layout->renderElement('header-panel-row', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #39 Magento\Framework\View\Layout\Interceptor->renderElement('header-panel-row', false) called at [vendor/magento/framework/View/Layout.php:592] #40 Magento\Framework\View\Layout->_renderContainer('header.panel', false) called at [vendor/magento/framework/View/Layout.php:542] #41 Magento\Framework\View\Layout->renderNonCachedElement('header.panel') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #42 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('header.panel') called at [vendor/magento/framework/View/Layout.php:495] #43 Magento\Framework\View\Layout->renderElement('header.panel', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #44 Magento\Framework\View\Layout\Interceptor->renderElement('header.panel', false) called at [vendor/magento/framework/View/Layout.php:592] #45 Magento\Framework\View\Layout->_renderContainer('header.panel.wra...', false) called at [vendor/magento/framework/View/Layout.php:542] #46 Magento\Framework\View\Layout->renderNonCachedElement('header.panel.wra...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #47 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('header.panel.wra...') called at [vendor/magento/framework/View/Layout.php:495] #48 Magento\Framework\View\Layout->renderElement('header.panel.wra...', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #49 Magento\Framework\View\Layout\Interceptor->renderElement('header.panel.wra...', false) called at [vendor/magento/framework/View/Layout.php:592] #50 Magento\Framework\View\Layout->_renderContainer('header-container...', false) called at [vendor/magento/framework/View/Layout.php:542] #51 Magento\Framework\View\Layout->renderNonCachedElement('header-container...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #52 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('header-container...') called at [vendor/magento/framework/View/Layout.php:495] #53 Magento\Framework\View\Layout->renderElement('header-container...', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #54 Magento\Framework\View\Layout\Interceptor->renderElement('header-container...', false) called at [vendor/magento/framework/View/Layout.php:592] #55 Magento\Framework\View\Layout->_renderContainer('header.container', false) called at [vendor/magento/framework/View/Layout.php:542] #56 Magento\Framework\View\Layout->renderNonCachedElement('header.container') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #57 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('header.container') called at [vendor/magento/framework/View/Layout.php:495] #58 Magento\Framework\View\Layout->renderElement('header.container', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #59 Magento\Framework\View\Layout\Interceptor->renderElement('header.container', false) called at [vendor/magento/framework/View/Layout.php:592] #60 Magento\Framework\View\Layout->_renderContainer('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:542] #61 Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #62 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper') called at [vendor/magento/framework/View/Layout.php:495] #63 Magento\Framework\View\Layout->renderElement('page.wrapper', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #64 Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:592] #65 Magento\Framework\View\Layout->_renderContainer('root', false) called at [vendor/magento/framework/View/Layout.php:542] #66 Magento\Framework\View\Layout->renderNonCachedElement('root') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #67 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root') called at [vendor/magento/framework/View/Layout.php:495] #68 Magento\Framework\View\Layout->renderElement('root', true) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #69 Magento\Framework\View\Layout\Interceptor->renderElement('root') called at [vendor/magento/framework/View/Layout.php:961] #70 Magento\Framework\View\Layout->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58] #71 Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', array()) called at [vendor/magento/framework/Interception/Interceptor.php:138] #72 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #73 Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', array(), array(array('layout-model-cac...'))) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:494] #74 Magento\Framework\View\Layout\Interceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258] #75 Magento\Framework\View\Result\Page->render(&Magento\Framework\App\Response\Http\Interceptor#000000006b60694f000000007fe96bd8#) called at [vendor/magento/framework/View/Result/Layout.php:171] #76 Magento\Framework\View\Result\Layout->renderResult(&Magento\Framework\App\Response\Http\Interceptor#000000006b60694f000000007fe96bd8#) called at [vendor/magento/framework/Interception/Interceptor.php:58] #77 Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#000000006b60694f000000007fe96bd8#)) called at [vendor/magento/framework/Interception/Interceptor.php:138] #78 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Response\Http\Interceptor#000000006b60694f000000007fe96bd8#) called at [vendor/magento/framework/Interception/Interceptor.php:153] #79 Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#000000006b60694f000000007fe96bd8#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:26] #80 Magento\Framework\View\Result\Page\Interceptor->renderResult(&Magento\Framework\App\Response\Http\Interceptor#000000006b60694f000000007fe96bd8#) called at [vendor/magento/framework/App/Http.php:120] #81 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:261] #82 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#000000006b60694d000000007fe96bd8#) called at [index.php:39] </pre>
Hello @andyavcons30c7
Please run setup upgrade and content deploy command
I hope it helps.
Hey @Sanjay Jethva thank you very much for your reply
i found the issue..
the problem was located here
$value = sprintf(__('Error filtering template: %s'), $e->getMessage());
in the /vendor/magento/module-email/Model/Template/Filter.php file
i added a % so it would result in this
$value = sprintf(__('Error filtering template: %%s'), $e->getMessage());
i uploaded my Filter.php file and it worked :-)
It really worked for me. Thank you so much for your solution.