Update auf 5.3.2 - Shop funktioniert nicht mehr (core.ERROR: SmartyCompilerException) - HILFE!

Hallo,

ich bitte um dringende Hilfestellung. Nach einem Update auf 5.3.2 (die 5.3.1 hatten wir übersprungen) werden die Einkaufswelten nicht mehr angezeigt und ich kann auch die Kategorien nicht mehr aufrufen. Folgende Fehlermeldungen finden sich im Log und ich werde nicht schlau daraus:

[2017-08-24 12:47:59] core.ERROR: SmartyCompilerException: Syntax Error in template "/var/www/vhosts/meinedomain.com/httpdocs/themes/Frontend/meinedomain/frontend/listing/product-box/box-basic.tpl" on line 22 "<a href="{$sArticle.linkDetails|rewrite:$sArticle.articleName}"" unknown modifier "rewrite" in /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php:657 Stack trace: #0 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_compile_private_modifier.php(132): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown modifie...', 22) #1 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(475): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #2 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_modifie...', Array, Array) #3 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_compile_private_print_expression.php(65): Smarty_Internal_TemplateCompilerBase->compileTag('private_modifie...', Array, Array) #4 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(475): Smarty_Internal_Compile_Private_Print_Expression->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #5 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_print_e...', Array, Array) #6 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2358): Smarty_Internal_TemplateCompilerBase->compileTag('private_print_e...', Array, Array) #7 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r28() #8 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(28) #9 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, '"\n ...') #10 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('\n\n{block name="...') #11 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_compile_include.php(146): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Enlight_Template_Default)) #12 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(465): Smarty_Internal_Compile_Include->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #13 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler('include', Array, Array) #14 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag('include', Array) #15 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36() #16 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36) #17 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, '\n\n ') #18 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('{block name="fr...') #19 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_compile_include.php(146): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Enlight_Template_Default)) #20 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(465): Smarty_Internal_Compile_Include->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #21 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler('include', Array, Array) #22 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag('include', Array) #23 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36() #24 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36) #25 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, '\n ...') #26 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('{block name="wi...') #27 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_compile_include.php(146): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Enlight_Template_Default)) #28 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(475): Smarty_Internal_Compile_Include->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #29 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler('include', Array, Array) #30 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag('include', Array) #31 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36() #32 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36) #33 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, '\n\n ...') #34 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('{if $sEmotions|...') #35 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Enlight_Template_Default)) #36 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #37 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Enlight/View/Default.php(276): Smarty_Internal_TemplateBase->fetch() #38 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(216): Enlight_View_Default->render(Object(Enlight_Template_Default)) #39 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(242): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->renderTemplate(Object(Enlight_Template_Default)) #40 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(136): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->render() #41 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Enlight/Event/Handler/Default.php(91): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->onPostDispatch(Object(Enlight_Controller_ActionEventArgs)) #42 /var/www/vhosts/meinedomain.com/httpdocs/engine/Library/Enlight/Event/EventManager.php(214): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs)) #43 /var/www/vhosts/meinedomain.com/...

 

Die Suche kann dein Freund sein :wink:

https://forum.shopware.com/search?Search=Rewrite

Das scheint an genutzten Funktionen im Template oder Plugin zu liegen, die es mit Shopware 5.3 nicht mehr gibt 

1 Like

@SebastianKlöpper schrieb:

Die Suche kann dein Freund sein :wink:

https://forum.shopware.com/search?Search=Rewrite

Das scheint an genutzten Funktionen im Template oder Plugin zu liegen, die es mit Shopware 5.3 nicht mehr gibt 

Danke! Sie kann mein Freund sein… aber irgendwie nützt mir das nur bedingt weiter. Es geht wohl um folgende Zeile in listing/product-box/box-basic.tpl wenn ich das korrekt verstehe:

{* Product name *}
                        {block name='frontend_listing_box_article_name'}
                            Bio 
                                {$sArticle.articleName|truncate:50|escapeHtml}
                            
                        {/block}

Ist das richtig? Falls ja - wie sähe die Zeile korrekt aus?

von:

zu:

Ist das korrekt? Das taucht bei mir z.B. in box-basic.tpl und box-emotion.tpl auf.

https://github.com/shopware/shopware/blob/5.3/themes/Frontend/Bare/frontend/listing/product-box/box-basic.tpl#L37

Das ist der korrekte Stand. Du hast einen alten Stand oder du hast ein eigenes Theme 

Sebastian

@SebastianKlöpper schrieb:

https://github.com/shopware/shopware/blob/5.3/themes/Frontend/Bare/frontend/listing/product-box/box-basic.tpl#L37

Das ist der korrekte Stand. Du hast einen alten Stand oder du hast ein eigenes Theme 

Sebastian

Vielen Dank. Es handelt sich um ein eigenes Theme. Mit den beiden Änderungen sind wir aber wieder online! Danke!