Endereco / endereco-shopware5-client

Endereco Addressvalidation Services for Shopware 5. Kundenstammdaten-Validierung und Korrekturvorschläge.
https://www.endereco.de/shopware
3 stars 1 forks source link

directory /custom/plugins/EnderecoShopware5Client/Resources/views/frontend/index/index.tpl' not allowed by security setting #2

Closed iljamobilemojo closed 3 years ago

iljamobilemojo commented 3 years ago

Es gab eine Meldung, dass dieser Fehler im Log produziert wurde:

directory /custom/plugins/EnderecoShopware5Client/Resources/views/frontend/index/index.tpl' not allowed by security setting

Shopsystem: Shopware 5.6.9

Ursache: im Moment noch unklar.

Schritte um der Fehler zu reproduzieren: im Moment noch unklar

iljamobilemojo commented 3 years ago

Gute Erklärung für die mögliche Ursache: https://forum.shopware.com/discussion/49501/plugin-uncaught-smartyexception-directory-not-allowed-by-security-setting#Comment_209476

iljamobilemojo commented 3 years ago

Der wahrscheinliche Verursacher ist vermutlich:

if (!$config->get('isPluginActive')) {

In der Datei Subscriber/Frontend.php in der Zeile 296

public function onCollectTemplateDir(\Enlight_Event_EventArgs $args)
{
        $config = Shopware()->Container()->get('config');
        if (!$config->get('isPluginActive')) {
            return;
        }

    $dirs = $args->getReturn();
    $dirs[] = $this->pluginDir . '/Resources/views/';

    $args->setReturn($dirs);
}
iljamobilemojo commented 3 years ago

So jetzt sollen wir die Schritte um den Fehler zu reproduzieren feststellen. Ist das gemacht, kann die Lösung entwickelt werden.

iljamobilemojo commented 3 years ago

gelöst in 3.5.0