# Plugin Ausgabe im Frontend funktioniert einmalig nach Cache löschen - danach erscheint ein Fehler

**URL:** <https://forum.shopware.com/t/plugin-ausgabe-im-frontend-funktioniert-einmalig-nach-cache-loschen-danach-erscheint-ein-fehler/47766>\
**Category:** Plugins\
**Created:** [23. August 2017 um 12:38 UTC](https://forum.shopware.com/t/plugin-ausgabe-im-frontend-funktioniert-einmalig-nach-cache-loschen-danach-erscheint-ein-fehler/47766 "2017-08-23T12:38:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davida](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@davida](https://forum.shopware.com/u/davida)\
**Post date:** [23. August 2017 um 12:38 UTC](https://forum.shopware.com/t/plugin-ausgabe-im-frontend-funktioniert-einmalig-nach-cache-loschen-danach-erscheint-ein-fehler/47766/1 "2017-08-23T12:38:58Z")

</div>

Hallo zusammen,

ich versuche gerade ein Plugin zu entwickeln, welches auf einer Shopseite Daten ausgibt.&nbsp;

Als Grundlage hierfür habe ich hierfür folgendes Plugin verwendet:&nbsp;[GitHub - shopwarrior/OssCustomModel: Odessite Custom Model. Shopware 5.2 Plugin System. Create Widget, Menu Item, Custom Model, Assign Custom Model as attribute,Show Custom model content like banner slider on Custom Pages.](https://github.com/shopwarrior/OssCustomModel)

Die Ausgabe der Daten im Frontend klappt nun auch, jedoch nur einmalig. Sobald die Seite neu geladen wird erscheint folgender Fehler:

PHP Fatal error: Uncaught exception ‚SmartyException‘ with message ‚Unable to load template snippet ‚widgets/oss\_custom\_model/index.tpl|frontend/detail/data.tpl|frontend/detail/index.tpl|frontend/listing/product-box/box-minimal.tpl|frontend/listing/product-box/box-basic.tpl‘‘ in /html/shopware/development/engine/Library/Smarty/sysplugins/smarty\_internal\_templatebase.php:127

&nbsp;

Nach Recherche glaube ich, dass es mit&nbsp;

```
 addTemplateDir bzw. dem Controller zu tun haben könnte. Hat hier jemand eine Idee für mich? 

```

&nbsp;

Vielen Dank und Grüße

&nbsp;

David

---

<div class="post-metadata">

**Author:** ![natertec](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@natertec](https://forum.shopware.com/u/natertec)\
**Post date:** [3. November 2017 um 10:43 UTC](https://forum.shopware.com/t/plugin-ausgabe-im-frontend-funktioniert-einmalig-nach-cache-loschen-danach-erscheint-ein-fehler/47766/2 "2017-11-03T10:43:04Z")

</div>

Hast du dazu eine Lösung gefunden? Ich habe grade exakt den gleichen Fehler.
