Servus,
also ich kann die Fehlermeldung von haustechnik bestätigen, bei uns sieht sie auch so aus
Es gibt ein Ticket zu dem Vorgang, https://issues.shopware.com/issues/PT-8553
und hier die Fehlermeldung
[26-Oct-2017 11:11:14 Europe/Berlin] PHP Fatal error: Uncaught SmartyException: directory '[pfad]/engine/Shopware/Plugins/Community/Frontend/SwagPaymentPaypalPlus/Views/frontend/checkout/confirm.tpl' not allowed by security setting in [pfad]/engine/Library/Smarty/sysplugins/smarty_security.php:381
Stack trace:
#0 [pfad]/engine/Library/Smarty/sysplugins/smarty_internal_resource_file.php(33): Smarty_Security->isTrustedResourceDir('...')
#1 [pfad]/engine/Library/Smarty/sysplugins/smarty_resource.php(532): Smarty_Internal_Resource_File->populate(Object(Smarty_Template_Source), NULL)
#2 [pfad]/engine/Library/Smarty/sysplugins/smarty_internal_resource_extends.php(41): Smarty_Resource::source(NULL, Object(Enlight_Template_Manager), '...')
#3 [pfad]/engine/Library/Enlight/Components/Snippet/Resource.php(76): Smarty_Internal_Resource_Extends->populate(Object(Smarty_Template_Source), NULL)
#4 [pfad]/engine/Library/Smarty/sysplugins/smarty_resource.php(532): Enlight_Components_Snippet_Resource->populate(Object(Smarty_Template_Source), NULL)
#5 [pfad]/engine/Library/Smarty/sysplugins/smarty_internal_template.php(460): Smarty_Resource::source(NULL, Object(Enlight_Template_Manager), '...')
#6 [pfad]/var/cache/production_201710241020/templates/[template]/0f/0c/ee/0f0cee59a1fdd593e05e2a77e74ebe0639e45221.snippet.index.tpl.php(507): Smarty_Internal_Template->decodeProperties(Array, false)
#7 [pfad]/engine/Library/Smarty/sysplugins/smarty_internal_templatebase.php(161): include('...')
#8 [pfad]/engine/Library/Enlight/View/Default.php(276): Smarty_Internal_TemplateBase->fetch()
#9 [pfad]/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(216): Enlight_View_Default->render(Object(Enlight_Template_Default))
#10 [pfad]/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(242): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->renderTemplate(Object(Enlight_Template_Default))
#11 [pfad]/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(136): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->render()
#12 [pfad]/engine/Library/Enlight/Event/Handler/Default.php(91): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->onPostDispatch(Object(Enlight_Controller_ActionEventArgs))
#13 [pfad]/engine/Library/Enlight/Event/EventManager.php(214): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs))
#14 [pfad]/engine/Library/Enlight/Controller/Action.php(201): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#15 [pfad]/engine/Library/Enlight/Controller/Dispatcher/Default.php(530): Enlight_Controller_Action->dispatch('confirmAction')
#16 [pfad]/engine/Library/Enlight/Controller/Front.php(223): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#17 [pfad]/engine/Shopware/Kernel.php(189): Enlight_Controller_Front->dispatch()
#18 [pfad]/vendor/symfony/http-kernel/HttpCache/HttpCache.php(491): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 [pfad]/engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#20 [pfad]/vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#21 [pfad]/vendor/symfony/http-kernel/HttpCache/HttpCache.php(344): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)
#22 [pfad]/engine/Shopware/Components/HttpCache/AppCache.php(189): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#23 [pfad]/vendor/symfony/http-kernel/HttpCache/HttpCache.php(210): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#24 [pfad]/engine/Shopware/Components/HttpCache/AppCache.php(116): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 [pfad]/shopware.php(118): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#26 {main}
thrown in [pfad]/engine/Library/Smarty/sysplugins/smarty_security.php on line 381
Der workaround sollte wirklich funktionieren
@DennisG schrieb:
Das Entfernen / ausschalten der SmartySecurity und danach Cach leeren sollte eigentlich helfen. Alternativ sollte es helfen wenn ihr in der
Datei: /…engine/Library/Smarty/sysplugins/smarty_security.php
die Methode: isTrustedResourceDir anpasst und einfach ein return true einbaut.
public function isTrustedResourceDir($filepath)
{
return true; //
Zur weitern Fehleranalyse könnt ihr auch das Plugin von shyim installieren: https://github.com/shyim/whoops-for-shopware
Aktuell gehen wir davon aus das dieser Check vor dem hinzufügen der Template Ordner von Plugins läuft und dadurch der Fehler geworfen wird.