# Problem mit dem var/cache/production.... Ordner

**URL:** <https://forum.shopware.com/t/problem-mit-dem-var-cache-production-ordner/51588>\
**Category:** Allgemein\
**Created:** [7. März 2018 um 09:28 UTC](https://forum.shopware.com/t/problem-mit-dem-var-cache-production-ordner/51588 "2018-03-07T09:28:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)\
**Post date:** [7. März 2018 um 09:28 UTC](https://forum.shopware.com/t/problem-mit-dem-var-cache-production-ordner/51588/1 "2018-03-07T09:28:52Z")

</div>

Hallo,

immer wenn wir das Template kompilieren und die Cache Speicher leeren, dann wirft der Shop anschliessend einen http500 Fehler bei der Suche nach Artikeln aus.

Löschen wir dann den production Ordner und lassen ihn von Shopware neu anlegen, dann geht wieder alles, bis wir das Template wieder neu kompilieren und die Cache Speicher löschen.

Warum ist das so? Kennt jemand das Problem?

Shopware 5.3.7 bei Mittwald mit PHP7

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [7. März 2018 um 10:59 UTC](https://forum.shopware.com/t/problem-mit-dem-var-cache-production-ordner/51588/2 "2018-03-07T10:59:00Z")

</div>

Die Fehlermeldung wäre erstmal gut zu erfahren - ein 500er ist erstmal ein PHP-Fehler. Den kannst du im Serverlog finden oder in SW ausgeben lassen: [https://community.shopware.com/Fehlermeldungen-in-Shopware-debuggen\_detail\_1880.html](https://community.shopware.com/Fehlermeldungen-in-Shopware-debuggen_detail_1880.html)

---

<div class="post-metadata">

**Author:** ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)\
**Post date:** [8. März 2018 um 18:24 UTC](https://forum.shopware.com/t/problem-mit-dem-var-cache-production-ordner/51588/3 "2018-03-08T18:24:56Z")

</div>

Also ich habe hier das in den Logfiles:

CRITICAL:&nbsp;directory /engine/Shopware/Plugins/Community/Frontend/ShopsListingStock/Views/frontend/listing/product-box/product-badges.tpl’ not allowed by security setting

ERROR:&nbsp;salutation: The value you selected is not a valid choice.&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [8. März 2018 um 18:29 UTC](https://forum.shopware.com/t/problem-mit-dem-var-cache-production-ordner/51588/4 "2018-03-08T18:29:54Z")

</div>

Da solltest du dich mal an den Hersteller wenden, scheint mir die Ursache zu sein:

```
CRITICAL: directory /engine/Shopware/Plugins/Community/Frontend/ShopsListingStock/Views/frontend/listing/product-box/product-badges.tpl' not allowed by security setting

```

Plugin: ShopsListingStock

Kannst dem Hersteller das hier mitschicken, da ist die Ursache gut beschrieben: [https://forum.shopware.com/discussion/comment/209476/#Comment\_209476](https://forum.shopware.com/discussion/comment/209476/#Comment_209476)

Du kannst das erstmal “umgehen” in der 5.3, wenn du die Smarty Security deaktivierst. WICHTIG: Das ist nur eine temporäre Lösung und keine Dauerlösung. Der Hersteller sollte das Plugin anpassen.

Hierzu musst du folgendes in die config.php packen:

```
  'template_security' => [
      'enabled' => false,
  ],

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)\
**Post date:** [8. März 2018 um 18:50 UTC](https://forum.shopware.com/t/problem-mit-dem-var-cache-production-ordner/51588/5 "2018-03-08T18:50:42Z")

</div>

oh prima, herzlichen Dank!
