# Fatal error: Uncaught exception ‘SmartyException’ with message ‘Unable to load template snippet’

**URL:** <https://forum.shopware.com/t/fatal-error-uncaught-exception-smartyexception-with-message-unable-to-load-template-snippet/95122>\
**Category:** Plugins\
**Tags:** administration, programming\
**Created:** [5. Juli 2022 um 09:56 UTC](https://forum.shopware.com/t/fatal-error-uncaught-exception-smartyexception-with-message-unable-to-load-template-snippet/95122 "2022-07-05T09:56:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.sommer](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@a.sommer](https://forum.shopware.com/u/a.sommer)\
**Post date:** [5. Juli 2022 um 09:56 UTC](https://forum.shopware.com/t/fatal-error-uncaught-exception-smartyexception-with-message-unable-to-load-template-snippet/95122/1 "2022-07-05T09:56:27Z")

</div>

Hi guys,  
I’ve made a plugin to extend the buttons on the orders listing page in the administration.  
As soon as I load the Backend I get a error box with the following error:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/5/2/5295d73286919a6519bb4bf11eb5c716c9f1fc76.png)

The content of the `backend/arv_extend_order/view/list/filter.js` reads as follows:

```auto
//{block name="backend/order/view/list/filter"}
// {$smarty.block.parent}
Ext.define('Shopware.apps.ArvExtendOrder.view.list.Filter', {
    override: 'Shopware.apps.Order.view.list.Filter',
    createFilterButtons: function () {
       // shortend for readability reasons
});
//{/block}

```

If I remove the 2nd line in question, then I get a different error message:

```auto
<br />
<b>Fatal error</b>: Uncaught SmartyException: Unable to load template snippet 'backend/arv_extend_order/controller/arv_order_controller.js' in 'backend/order/app.js|backend/arv_extend_order/app.js' in /var/www/html/engine/Library/Smarty/sysplugins/smarty_internal_templatebase.php:127

```

The content of the `backend/arv_extend_order/controller/arv_order_controller.js`:

```auto
//{block name="backend/order/controller/filter"}
// {$smarty.block.parent}
Ext.define('Shopware.apps.ArvExtendOrder.controller.Filter', {
    override: 'Shopware.apps.Order.controller.Filter',
    init: function () {
       // shortend for readability reasons
    }
});
//{/block}

```

The content of the `backend/arv_extend_order/app.js`:

```auto
//{block name="backend/order/application"}
// {$smarty.block.parent}
// {include file="backend/arv_extend_order/controller/arv_order_controller.js"}
// {include file="backend/arv_extend_order/view/list/filter.js"}
//{/block}

```

Can you help me fix this? I have been trying for ages…

---

<div class="post-metadata">

**Author:** ![a.sommer](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@a.sommer](https://forum.shopware.com/u/a.sommer)\
**Post date:** [5. Juli 2022 um 12:38 UTC](https://forum.shopware.com/t/fatal-error-uncaught-exception-smartyexception-with-message-unable-to-load-template-snippet/95122/2 "2022-07-05T12:38:25Z")

</div>

I finally fixed it…  
The Problem seems to have been that I tryed to include the files in the app.js and also loaded it via the EventSubscriber
