Unable to load template snippet 'widgets/error/generic_error.tpl'

We are receiving multiple email errors on our customers site following the latest update: 

 exception 'SmartyException' with message 'Unable to load template snippet 'widgets/error/generic\_error.tpl'' in /var/www/html/engine/Library/Smarty/sysplugins/smarty\_internal\_templatebase.php:127 

How can I resolve this issue? 

Message:

 exception 'SmartyException' with message 'Unable to load template snippet 'widgets/error/generic\_error.tpl'' in /var/www/html/engine/Library/Smarty/sysplugins/smarty\_internal\_templatebase.php:127

 Stack trace:

 #0 /var/www/html/engine/Library/Enlight/View/Default.php(300): Smarty\_Internal\_TemplateBase-\>fetch()

 #1 /var/www/html/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(216): Enlight\_View\_Default-\>render(Object(Enlight\_Template\_Default))

 #2 /var/www/html/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(242): Enlight\_Controller\_Plugins\_ViewRenderer\_Bootstrap-\>renderTemplate(Object(Enlight\_Template\_Default))

 #3 /var/www/html/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(136): Enlight\_Controller\_Plugins\_ViewRenderer\_Bootstrap-\>render()

 #4 (internal function): Enlight\_Controller\_Plugins\_ViewRenderer\_Bootstrap-\>onPostDispatch(Object(Enlight\_Controller\_ActionEventArgs))

 #5 /var/www/html/engine/Library/Enlight/Event/Handler/Default.php(91): call\_user\_func(Array, Object(Enlight\_Controller\_ActionEventArgs))

 #6 /var/www/html/engine/Library/Enlight/Event/EventManager.php(219): Enlight\_Event\_Handler\_Default-\>execute(Object(Enlight\_Controller\_ActionEventArgs))

 #7 /var/www/html/engine/Library/Enlight/Controller/Action.php(235): Enlight\_Event\_EventManager-\>notify('Enlight\_Control...', Object(Enlight\_Controller\_ActionEventArgs))

 #8 /var/www/html/engine/Library/Enlight/Controller/Dispatcher/Default.php(563): Enlight\_Controller\_Action-\>dispatch('genericErrorAct...')

 #9 /var/www/html/engine/Library/Enlight/Controller/Front.php(222): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp))

 #10 /var/www/html/engine/Shopware/Kernel.php(202): Enlight\_Controller\_Front-\>dispatch()

 #11 /var/www/html/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)

 #12 /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true)

 #13 /var/www/html/engine/Shopware/Components/HttpCache/AppCache.php(260): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)

 #14 /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php(420): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true)

 #15 /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>fetch(Object(Symfony\Component\HttpFoundation\Request), true)

 #16 /var/www/html/engine/Shopware/Components/HttpCache/AppCache.php(187): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true)

 #17 /var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): Shopware\Components\HttpCache\AppCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true)

 #18 /var/www/html/engine/Shopware/Components/HttpCache/AppCache.php(116): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)

 #19 /var/www/html/shopware.php(122): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request))

 #20 {main}

Time:

 2019-04-26T09:11:54.466479+0200

Channel:

 core

request:

 {

     "uri": "/durable/widgets/index/refreshStatistic?requestPage=%2Fdurable%2Finformation-and-presentation%2Fsecurity-pass-holders%2Fsecurity-pass-holder-without-attachment%2F1715%2Fdual-security-pass-holder-holder-only-transparent-pk10&requestController=detail&articleId=1715",

     "method": "GET",

     "query": {

         "requestPage": "/durable/information-and-presentation/security-pass-holders/security-pass-holder-without-attachment/1715/dual-security-pass-holder-holder-only-transparent-pk10",

         "requestController": "detail",

         "articleId": "1715",

         "module": "widgets",

         "controller": "durable",

         "action": "index",

         "refreshStatistic": ""

     },

     "post": []

 }

session:

 No session data available

shopId:

 1

Hi, any progress at that?

getting exactly the same error at a client’s Shop after latest Update

Seeing exactly the same error

I also get this error for marketing–shopping-worlds (Einkaufswelten). You can get the real error if you turn on exceptions in config:

'phpsettings' => [
	'display_errors' => 1,
],
'front' => [
	'showException' => true,
	'throwExceptions' => true,
	'noErrorHandler' => false,
],
'template' => [
	'forceCompile' => true,
],
'model' => [
	'cacheProvider' => 'array'
],
'httpCache' => [
	'enabled' => false, // true or false
	'debug' => true,
],

In my case it was: modifier ‚mb_substr‘ not allowed by security setting

how did you solve this?

@73k4 schrieb:

how did you solve this?

Replace the function by another one mb_substr is deprecated in smarty 3

I’m getting the same error 8.000 times when the cron clears the cache using the sw-cli. How to solve this?

 

PHP Fatal error: Uncaught SmartyException: Unable to load template snippet ‘widgets/error/generic_error.tpl’ in /var/www/vhosts/shop/httpdocs/production/engine/Library/Smarty/sysplugins/smarty_internal_templatebase.php:127