# directory not allowed by security setting in engine/Library/Smarty/sysplugins/smarty\_security.php on

**URL:** <https://forum.shopware.com/t/directory-not-allowed-by-security-setting-in-engine-library-smarty-sysplugins-smarty-security-php-on/48879>\
**Category:** Programmierung\
**Created:** [17. Oktober 2017 um 11:28 UTC](https://forum.shopware.com/t/directory-not-allowed-by-security-setting-in-engine-library-smarty-sysplugins-smarty-security-php-on/48879 "2017-10-17T11:28:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinS86](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KevinS86](https://forum.shopware.com/u/KevinS86)\
**Post date:** [17. Oktober 2017 um 11:28 UTC](https://forum.shopware.com/t/directory-not-allowed-by-security-setting-in-engine-library-smarty-sysplugins-smarty-security-php-on/48879/1 "2017-10-17T11:28:23Z")

</div>

Shopware Version 5.3.3

Hi Zusammen,&nbsp;

ich hatte in der Shopwareversion 5.2 eine kleine Erweiterung geschrieben, welche es mir erlaubt aus der Artikelübersicht eine Preisliste für den Laden per PDF zu ermitteln.&nbsp;

Ich möchte die Erweiterung gerne für die Shopware Version 5.3.3 vorbereiten und stecke gerade an einem Fehler, bei dem ich nicht wirklich weiterkomme.&nbsp;

```
directory '/html/shopware_produktiv/test_system_shopware/custom/plugins/KSchmidPriceTag/Resources/Views/documents/price_tag.tpl' not allowed by security setting in engine/Library/Smarty/sysplugins/smarty_security.php on line 381

```

Ich habe in der Entwicklerdokumentation den Part bezüglich der smarty Security gesehen, komme aber nicht auf den Hinweis was ihm nicht passen könnte.&nbsp;

[https://developers.shopware.com/developers-guide/shopware-5-upgrade-guide-for-developers/#smarty](https://developers.shopware.com/developers-guide/shopware-5-upgrade-guide-for-developers/#smarty)

Es liegt auf jeden Fall an meinem Controller&nbsp;[KSchmidPriceTag/KSchmidPriceTagPdfPrint.php at master · Kevinschmid86/KSchmidPriceTag · GitHub](https://github.com/Kevinschmid86/KSchmidPriceTag/blob/master/KSchmidPriceTag/Controllers/Backend/KSchmidPriceTagPdfPrint.php) und des Tempate auslesens:&nbsp;

$mpdf-\>WriteHTML($template-\>fetch());

Hat mir jemand einen Hinweis in welche Richtung ich mich bewegen müsste um das Problem zu lösen?&nbsp;

Vielen Dank euch vorab.&nbsp;

Liebe Grüße

Kevin

&nbsp;

---

<div class="post-metadata">

**Author:** ![Thomas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomas/32/8167_2.png) [@Thomas](https://forum.shopware.com/u/Thomas)\
**Post date:** [18. Oktober 2017 um 08:45 UTC](https://forum.shopware.com/t/directory-not-allowed-by-security-setting-in-engine-library-smarty-sysplugins-smarty-security-php-on/48879/2 "2017-10-18T08:45:59Z")

</div>

Ich hätte jetzt auf dem ersten Blick vermutet das es hier:&nbsp;[KSchmidPriceTag/KSchmidPriceTagPdfPrint.php at master · Kevinschmid86/KSchmidPriceTag · GitHub](https://github.com/Kevinschmid86/KSchmidPriceTag/blob/master/KSchmidPriceTag/Controllers/Backend/KSchmidPriceTagPdfPrint.php#L38) dran liegt.

Ggf. hilft dir folgender Eintrag aus unserer Dokumentation weiter:&nbsp;[Shopware 5 upgrade guide](https://developers.shopware.com/developers-guide/shopware-5-upgrade-guide-for-developers/#security-mode) Der Teil “Load templates from non-registered directories” müsste dir eigentlich weiterhelfen.

Gruß

---

<div class="post-metadata">

**Author:** ![KevinS86](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KevinS86](https://forum.shopware.com/u/KevinS86)\
**Post date:** [18. Oktober 2017 um 13:58 UTC](https://forum.shopware.com/t/directory-not-allowed-by-security-setting-in-engine-library-smarty-sysplugins-smarty-security-php-on/48879/3 "2017-10-18T13:58:52Z")

</div>

Hey Thomas,&nbsp;

ich danke dir vielmals für deinen Tipp.&nbsp;  
Hatte das gesehen aber dummerweise nicht richtig implementiert. Ich habe nun&nbsp; lediglich zwei Zeilen in meinem Code hinzugefügt.&nbsp;

[https://github.com/Kevinschmid86/KSchmidPriceTag/blob/80b3bb5c7eaa1c7cd8b415b79bf6fd1099b1e82c/KSchmidPriceTag/Controllers/Backend/KSchmidPriceTagPdfPrint.php#L37](https://github.com/Kevinschmid86/KSchmidPriceTag/blob/80b3bb5c7eaa1c7cd8b415b79bf6fd1099b1e82c/KSchmidPriceTag/Controllers/Backend/KSchmidPriceTagPdfPrint.php#L37)

Nun funktioniert das Plugin auch schon wieder. Ziemlich doof habe wohl was an den Augen gehabt :)&nbsp;

Vielen Dank.&nbsp;

Liebe Grüße

Kevin
