# Update 5.2.14 Fehler

**URL:** <https://forum.shopware.com/t/update-5-2-14-fehler/42819>\
**Category:** Administration\
**Created:** [16. Januar 2017 um 13:26 UTC](https://forum.shopware.com/t/update-5-2-14-fehler/42819 "2017-01-16T13:26:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [16. Januar 2017 um 13:26 UTC](https://forum.shopware.com/t/update-5-2-14-fehler/42819/1 "2017-01-16T13:26:25Z")

</div>

hallo, nach dem Update und einem Versuch das Theme neu zu kompilieren d wirft mir die Console folgendes aus. Werde daraus nicht schlau.

```
POST https://example.com/backend/cache/themeCacheWarmUp 503 (Service Unavailable)
Uncaught h {sourceClass: "Ext.JSON", sourceMethod: "decode", msg: "You're trying to decode an invalid JSON String: 503 Service Unavailable", message: "You're trying to decode an invalid JSON String: 503 Service Unavailable"}

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [16. Januar 2017 um 13:37 UTC](https://forum.shopware.com/t/update-5-2-14-fehler/42819/2 "2017-01-16T13:37:47Z")

</div>

Weitere Infos: unter web/cache/beispielhash.css ist leer. Beim theme compilieren gesellt sich eine new\_beispielhash2.css dazu. ebenfalls leer.

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [16. Januar 2017 um 13:47 UTC](https://forum.shopware.com/t/update-5-2-14-fehler/42819/3 "2017-01-16T13:47:18Z")

</div>

Ok, es war ein selbstgeschriebene plugin. scheinbar steht in SW 5.2.14 die Variable nicht zur Verfügung die in SW 5.2.13 zur Verfügung stand. Ich buddel weiter.

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [16. Januar 2017 um 13:51 UTC](https://forum.shopware.com/t/update-5-2-14-fehler/42819/4 "2017-01-16T13:51:39Z")

</div>

Ok, scheinbar wurde folgendes geändert, so dass NULL keine Option mehr ist wenn keine Parameter für Less gegeben sind. Fehler:

```
public function addLessFiles(Enlight_Event_EventArgs $args)
    {
        $less = new \Shopware\Components\Theme\LessDefinition(
        /* Configuration */
           null,
            /* Less files to compile */
            array( __DIR__. '/Views/responsive/frontend/_public/src/less/all.less'),
            /* Import directory */
            __DIR__
        );

        return new Doctrine\Common\Collections\ArrayCollection(array($less));
    }

```

&nbsp;

Geht jetzt nur noch so.&nbsp;

```
public function addLessFiles(Enlight_Event_EventArgs $args)
    {
        $less = new \Shopware\Components\Theme\LessDefinition(
          array(),
          array( __DIR__. '/Views/responsive/frontend/_public/src/less/all.less',
          __DIR__
          )
        );
        return new Doctrine\Common\Collections\ArrayCollection(array($less));
    }

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![sschreier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sschreier/32/23296_2.png) [@sschreier](https://forum.shopware.com/u/sschreier)\
**Post date:** [16. Januar 2017 um 14:15 UTC](https://forum.shopware.com/t/update-5-2-14-fehler/42819/5 "2017-01-16T14:15:33Z")

</div>

> [@brettvormkopp schrieb:](https://forum.shopware.com/profile/6611/brettvormkopp "brettvormkopp")
> 
> Ok, scheinbar wurde folgendes geändert, so dass NULL keine Option mehr ist wenn keine Parameter für Less gegeben sind. Fehler:
> 
> public function addLessFiles(Enlight\_Event\_EventArgs $args)  
> {  
> $less = new \Shopware\Components\Theme\LessDefinition(  
> /\* Configuration _/  
> null,  
> /_ Less files to compile _/  
> array( **DIR**. ‚/Views/responsive/frontend/\_public/src/less/all.less‘),  
> /_ Import directory \*/  
> **DIR**  
> );
> 
> return new Doctrine\Common\Collections\ArrayCollection(array($less));  
> }
> 
> &nbsp;
> 
> Geht jetzt nur noch so.&nbsp;
> 
> public function addLessFiles(Enlight\_Event\_EventArgs $args)  
> {  
> $less = new \Shopware\Components\Theme\LessDefinition(  
> array(),  
> array( **DIR**. ‚/Views/responsive/frontend/\_public/src/less/all.less‘,  
> **DIR**  
> )  
> );  
> return new Doctrine\Common\Collections\ArrayCollection(array($less));  
> }
> 
> &nbsp;

Hallo,

die zweite Variante war doch aber immer so und noch nie anders (ich hab die seit Anbeginn so verwendet)? Siehe. [Shopware 5 Plugin update guide](https://developers.shopware.com/developers-guide/shopware-5-plugin-update-guide/#integration) .

Beste Grüße

Sebastian

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [16. Januar 2017 um 14:43 UTC](https://forum.shopware.com/t/update-5-2-14-fehler/42819/6 "2017-01-16T14:43:02Z")

</div>

Nunja, ist nur unlogish ein leeres array zu übergeben&nbsp;und es funktionierte ja auch 😉
