Liebes Forum :).)
ich habe einen modifier programmiert und ihn im Theme unter _private/smarty/modifier.ke_safename.php abgelegt, wo er ja automatisch registriert wird. Diesen Modifier verwende ich in einem Plugin, das bei allen frontendseiten aufgerufen wird (Enlight_Controller_Action_PostDispatch_Frontend). Das funktioniert auch überall, nur beim checkout, wenn man auf „zahlungspflichtig bestellen“ drückt, entsteht ein Error. Hier ist der modifier laut Fehlermeldung unbekannt.
Hat jemand eine Idee, woran das liegen kann ? Ist beim Checkout irgendetwas anders als bei den anderen Frontendseiten ?
Liebe Grüße
Kerstin
Hier noch der Fehlercode:
exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/vhosts/meinshop.de/httpdocs/engine/Shopware/Plugins/Community/Frontend/keAddBodyClasses/Views/AddBodyClasses1/frontend/index/index.tpl" on line 29 "{$anweisung = $anweisung|ke_safename}" unknown modifier "ke_safename"' in /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php:657
Stack trace:
#0 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_compile_private_modifier.php(132): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown modifie...', 29)
#1 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(465): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#2 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_modifie...', Array, Array)
#3 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2578): Smarty_Internal_TemplateCompilerBase->compileTag('private_modifie...', Array, Array)
#4 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r84()
#5 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(121)
#6 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(17, '}')
#7 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('\r\n{* (#109) ---...')
#8 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_compile_block.php(191): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
#9 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_compile_block.php(255): Smarty_Internal_Compile_Block::compileChildBlock(Object(Smarty_Internal_SmartyTemplateCompiler), 'frontend_index_...')
#10 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(465): Smarty_Internal_Compile_Blockclose->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#11 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler('blockclose', Array, Array)
#12 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2493): Smarty_Internal_TemplateCompilerBase->compileTag('blockclose', Array)
#13 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r58()
#14 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(58)
#15 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, '">\n\n ')
#16 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('{block name="fr...')
#17 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Enlight_Template_Default))
#18 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()
#19 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Enlight/View/Default.php(274): Smarty_Internal_TemplateBase->fetch()
#20 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(216): Enlight_View_Default->render(Object(Enlight_Template_Default))
#21 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(242): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->renderTemplate(Object(Enlight_Template_Default))
#22 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(136): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->render()
#23 [internal function]: Enlight_Controller_Plugins_ViewRenderer_Bootstrap->onPostDispatch(Object(Enlight_Controller_ActionEventArgs))
#24 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Enlight/Event/Handler/Default.php(91): call_user_func(Array, Object(Enlight_Controller_ActionEventArgs))
#25 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Enlight/Event/EventManager.php(210): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs))
#26 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Enlight/Controller/Action.php(201): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#27 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight_Controller_Action->dispatch('genericErrorAct...')
#28 /var/www/vhosts/meinshop.de/httpdocs/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#29 /var/www/vhosts/meinshop.de/httpdocs/engine/Shopware/Kernel.php(153): Enlight_Controller_Front->dispatch()
#30 /var/www/vhosts/meinshop.de/httpdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(492): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /var/www/vhosts/meinshop.de/httpdocs/engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#32 /var/www/vhosts/meinshop.de/httpdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(263): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#33 /var/www/vhosts/meinshop.de/httpdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(280): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true)
#34 /var/www/vhosts/meinshop.de/httpdocs/engine/Shopware/Components/HttpCache/AppCache.php(133): Symfony\Component\HttpKernel\HttpCache\HttpCache->invalidate(Object(Symfony\Component\HttpFoundation\Request), true)
#35 /var/www/vhosts/meinshop.de/httpdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(209): Shopware\Components\HttpCache\AppCache->invalidate(Object(Symfony\Component\HttpFoundation\Request), true)
#36 /var/www/vhosts/meinshop.de/httpdocs/engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#37 /var/www/vhosts/meinshop.de/httpdocs/shopware.php(101): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#38 {main}