cancel
Showing results for
Did you mean:

## Inline translation problem

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]
#5 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103]
#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]
#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]
#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]
#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]
#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]
#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]
#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]
#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]
#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]
#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]
#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>```
3 REPLIES 3

## Re: Inline translation problem

Hello @andyavcons30c7

I hope it helps.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

## Re: Inline translation problem

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 :-)

## Re: Inline translation problem

It really worked for me. Thank you so much for your solution.