# CronJob Geburtstagsmail

**URL:** <https://forum.shopware.com/t/cronjob-geburtstagsmail/73033>\
**Category:** Allgemein\
**Created:** [26. Februar 2021 um 10:28 UTC](https://forum.shopware.com/t/cronjob-geburtstagsmail/73033 "2021-02-26T10:28:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_marco](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/_marco/32/8582_2.png) [@\_marco](https://forum.shopware.com/u/_marco)\
**Post date:** [26. Februar 2021 um 10:28 UTC](https://forum.shopware.com/t/cronjob-geburtstagsmail/73033/1 "2021-02-26T10:28:42Z")

</div>

Hallo zusammen.

Ich probiere in einem Shopware 5.6.7 gerade die Geburtstagsgruß Email zum Laufen zu bekommen. Gutschein mit Codes ist angelegt. Rufe ich den CronJob über die Shell mit dem Befehl php bin/console sw:cron:run auf, bekomme ich in der Ausgabe des CronJob im Backend folgende Fehlermeldung angezeigt:

array (  
&nbsp; ‘error’ =\> ‘Call to a member function getModuleName() on null’,  
)

Rufe ich den Cron über die die URL …shop.de/backend/cron auf, funktioniert alles wunderbar. Hat jemand ne Idee warum es zu dieser Fehlermeldung kommt und wie diese behoben werden kann?

---

<div class="post-metadata">

**Author:** ![\_marco](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/_marco/32/8582_2.png) [@\_marco](https://forum.shopware.com/u/_marco)\
**Post date:** [26. Februar 2021 um 11:51 UTC](https://forum.shopware.com/t/cronjob-geburtstagsmail/73033/2 "2021-02-26T11:51:24Z")

</div>

Hat sich erledigt.
