Hallo zusammen,
ich bekomme aktuell bei einem Plugin noch folgenden Fehler (obwohl das Template-Verzeichnis ganz oben registriert wird):
directory '/var/www/xyz/engine/Shopware/Plugins/Community/Frontend/xyz/Views/frontend/listing/product-box/product-actions.tpl' not allowed by security setting
2018-12-07T09:21:00.908658+0100
core
{
"uri": "/widgets/listing/listingCount/sSupplier/169/sCategory/3?p=2&productBoxLayout=basic&c=3&o=1&n=36&loadProducts=1",
"method": "GET",
"query": {
"p": "2",
"productBoxLayout": "basic",
"c": "3",
"o": "1",
"n": "36",
"loadProducts": "1",
"module": "widgets",
"controller": "listing",
"action": "listingCount",
"sSupplier": "169",
"sCategory": "3",
"sPage": "2",
"sPerPage": "36",
"sSort": "1"
},
"post": []
}
No session data available
1
xyz.de
Hier die entscheidenden Zeilen aus dem Plugin:
private function subscribeEvents()
{
$this->subscribeEvent(
'Enlight_Controller_Action_PostDispatchSecure_Frontend',
'onPostDispatch'
);
$this->subscribeEvent(
'Enlight_Controller_Action_PostDispatchSecure_Widgets',
'onPostDispatch'
);
}
public function onPostDispatch(Enlight_Controller_ActionEventArgs $args)
{
$config = $this->Config();
$view = $args->getSubject()->View();
$view->addTemplateDir($this->Path() . 'Views');
$view->assign('xyz', $config->xyz);
}
Hat jemand vielleicht ein Tipp dazu?
Viele Grüße und Dank vorab,
Frank