# Cronjob Lagerbestand Warnung schlägt fehl

**URL:** <https://forum.shopware.com/t/cronjob-lagerbestand-warnung-schlagt-fehl/53005>\
**Category:** Allgemein\
**Created:** [19. Mai 2018 um 13:02 UTC](https://forum.shopware.com/t/cronjob-lagerbestand-warnung-schlagt-fehl/53005 "2018-05-19T13:02:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ginpalace](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@Ginpalace](https://forum.shopware.com/u/Ginpalace)\
**Post date:** [19. Mai 2018 um 13:02 UTC](https://forum.shopware.com/t/cronjob-lagerbestand-warnung-schlagt-fehl/53005/1 "2018-05-19T13:02:54Z")

</div>

Der Cronjob zur Lagerbestands Warnung schlägt plötzlich fehl.

Das manuelle Starten des Cronjobs gibt eine Warnung aus.

Der Error Log sieht so aus:

2018/05/19 14:27:12 [error] 20245#20245: \*1227443 FastCGI sent in stderr: "PHP message: PHP Fatal error:&nbsp; Uncaught Error: Call to a member function getTemplate() on null in /var/www/clients/client1/web36/web/engine/Shopware/Components/TemplateMail.php:167

Stack trace:

#0 /var/www/clients/client1/web36/web/engine/Shopware/Plugins/Community/Core/ViisonPickwareERP/ViisonCommon/Components/TemplateMailServiceDecorator.php(113): Shopware\_Components\_TemplateMail-\>createMail(Object(Shopware\Models\Mail\Mail), Array, NULL, Array)

#1 /var/www/clients/client1/web36/web/var/cache/production\_201805041539/proxies/ShopwarePluginsViisonCommonComponentsTemplateMailServiceDecoratorProxy.php(7): Shopware\Plugins\ViisonCommon\Components\TemplateMailServiceDecorator-\>createMail(‘sARTICLESTOCK’, Array, NULL, Array)

#2 /var/www/clients/client1/web36/web/engine/Library/Enlight/Hook/HookManager.php(186): Shopware\_Proxies\_ShopwarePluginsViisonCommonComponentsTemplateMailServiceDecoratorProxy-\>executeParent(‘createMail’, Array)

#3 /var/www/clients/client1/web36/web/var/cache/production\_201805041539/proxie" while reading response header from upstream, client: 24.134.79.113,&nbsp; request: “GET /backend/cron HTTP/2.0”, upstream: “fastcgi://unix:/var/lib/php5-fpm/web36.sock:”,&nbsp;

2018/05/19 14:31:32 [error] 20245#20245: \*1230521 FastCGI sent in stderr: "PHP message: PHP Fatal error:&nbsp; Uncaught Error: Call to a member function getTemplate() on null in /var/www/clients/client1/web36/web/engine/Shopware/Components/TemplateMail.php:167

Stack trace:

#0 /var/www/clients/client1/web36/web/engine/Shopware/Plugins/Community/Core/ViisonPickwareERP/ViisonCommon/Components/TemplateMailServiceDecorator.php(113): Shopware\_Components\_TemplateMail-\>createMail(Object(Shopware\Models\Mail\Mail), Array, NULL, Array)

#1 /var/www/clients/client1/web36/web/var/cache/production\_201805041539/proxies/ShopwarePluginsViisonCommonComponentsTemplateMailServiceDecoratorProxy.php(7): Shopware\Plugins\ViisonCommon\Components\TemplateMailServiceDecorator-\>createMail(‘sARTICLESTOCK’, Array, NULL, Array)

#2 /var/www/clients/client1/web36/web/engine/Library/Enlight/Hook/HookManager.php(186): Shopware\_Proxies\_ShopwarePluginsViisonCommonComponentsTemplateMailServiceDecoratorProxy-\>executeParent(‘createMail’, Array)

#3 /var/www/clients/client1/web36/web/var/cache/production\_201805041539/proxie" while reading response header from upstream, client: 24.134.79.113, request: “GET /backend/cron HTTP/2.0”, upstream: “fastcgi://unix:/var/lib/php5-fpm/web36.sock:”,&nbsp;

&nbsp;

Kann da jemand helfen?

VG Alex

---

<div class="post-metadata">

**Author:** ![vape\_junkies](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@vape\_junkies](https://forum.shopware.com/u/vape_junkies)\
**Post date:** [19. Mai 2018 um 14:11 UTC](https://forum.shopware.com/t/cronjob-lagerbestand-warnung-schlagt-fehl/53005/2 "2018-05-19T14:11:56Z")

</div>

Schließe mich da an. Seit dem Update bekomm ich auch keine Mails mehr.

---

<div class="post-metadata">

**Author:** ![vape\_junkies](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@vape\_junkies](https://forum.shopware.com/u/vape_junkies)\
**Post date:** [19. Mai 2018 um 14:34 UTC](https://forum.shopware.com/t/cronjob-lagerbestand-warnung-schlagt-fehl/53005/3 "2018-05-19T14:34:33Z")

</div>

> [Sat May 19 16:32:38.861175 2018] [fcgid:warn] [pid 30843] [client xxxx:37514] mod\_fcgid: stderr: PHP Fatal error:&nbsp; Uncaught Error: Call to a member function getTemplate() on null in /var/www/vhosts/vape-junkies.de/httpdocs/engine/Shopware/Components/TemplateMail.php:167
> 
> [Sat May 19 16:32:38.861220 2018] [fcgid:warn] [pid 30843] [client xxxx:37514] mod\_fcgid: stderr: Stack trace:
> 
> [Sat May 19 16:32:38.861224 2018] [fcgid:warn] [pid 30843] [client xxxx:37514] mod\_fcgid: stderr: #0 /var/www/vhosts/vape-junkies.de/httpdocs/engine/Shopware/Plugins/Community/Backend/ViisonDHL/ViisonCommon/Components/TemplateMailServiceDecorator.php(113): Shopware\_Components\_TemplateMail-\>createMail(Object(Shopware\Models\Mail\Mail), Array, NULL, Array)
> 
> [Sat May 19 16:32:38.861244 2018] [fcgid:warn] [pid 30843] [client xxx:37514] mod\_fcgid: stderr: #1 /var/www/vhosts/vape-junkies.de/httpdocs/var/cache/production\_201805041539/proxies/ShopwarePluginsViisonCommonComponentsTemplateMailServiceDecoratorProxy.php(7): Shopware\Plugins\ViisonCommon\Components\TemplateMailServiceDecorator-\>createMail(‚sARTICLESTOCK‘, Array, NULL, Array)
> 
> [Sat May 19 16:32:38.861250 2018] [fcgid:warn] [pid 30843] [client xxx:37514] mod\_fcgid: stderr: #2 /var/www/vhosts/vape-junkies.de/httpdocs/engine/Library/Enlight/Hook/HookManager.php(186): Shopware\_Proxies\_ShopwarePluginsViisonCommonComponentsTemplateMailServiceDecoratorProxy-\>executeParent(‚createMail‘, Array)
> 
> [Sat May 19 16:32:38.861253 2018] [fcgid:warn] [pid 30843] [client xxx:37514] mod\_fcgid: stderr: #3 /var/www/vhosts/vape-junkies.de/httpdocs/var/cache/production\_201805041539/proxies/Shopware in /var/www/vhosts/vape-junkies.de/httpdocs/engine/Shopware/Components/TemplateMail.php on line 167

---

<div class="post-metadata">

**Author:** ![piweck](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@piweck](https://forum.shopware.com/u/piweck)\
**Post date:** [19. Mai 2018 um 17:35 UTC](https://forum.shopware.com/t/cronjob-lagerbestand-warnung-schlagt-fehl/53005/4 "2018-05-19T17:35:50Z")

</div>

Hey,

welche Shopware-Version nutzt ihr beiden?

Bei dir, Ginpalace, könnte es mit Pickware zusammenhängen und bei dir, vape\_junkies, mit dem DHL-Adapter-Plugin. Das ist allerdings nur ein Indiz. Kannst du das DHL-Adapter-Plugin ein Mal deaktivieren und prüfen, ob das dann geht?

Grüße

---

<div class="post-metadata">

**Author:** ![Ginpalace](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@Ginpalace](https://forum.shopware.com/u/Ginpalace)\
**Post date:** [19. Mai 2018 um 19:35 UTC](https://forum.shopware.com/t/cronjob-lagerbestand-warnung-schlagt-fehl/53005/5 "2018-05-19T19:35:19Z")

</div>

Ich hab die 5.4.3. sowohl Pickware, als auch DHL Adapter im Einsatz.

&nbsp;

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [19. Mai 2018 um 21:55 UTC](https://forum.shopware.com/t/cronjob-lagerbestand-warnung-schlagt-fehl/53005/6 "2018-05-19T21:55:19Z")

</div>

Siehe Thread&nbsp;[https://forum.shopware.com/discussion/comment/222203/](https://forum.shopware.com/discussion/comment/222203/)
