# Shopware()-\>Db()-\>fetchAll($sql) plötzlich fehlerhaft im Cronjob

**URL:** <https://forum.shopware.com/t/shopware-db-fetchall-sql-plotzlich-fehlerhaft-im-cronjob/52811>\
**Category:** Programmierung\
**Created:** [9. Mai 2018 um 09:48 UTC](https://forum.shopware.com/t/shopware-db-fetchall-sql-plotzlich-fehlerhaft-im-cronjob/52811 "2018-05-09T09:48:23Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [11. Mai 2018 um 08:45 UTC](https://forum.shopware.com/t/shopware-db-fetchall-sql-plotzlich-fehlerhaft-im-cronjob/52811/7 "2018-05-11T08:45:11Z")

</div>

Hey @beierle‍,

da ist in 5.4.3 ein Fehler eingeschlichen. Ein Workaround ist den Shop Parameter bei der createMail Methode anzugeben. Dadurch sollte dein Cron wieder laufen.

Für das Verhalten gibs bereits ein Ticket&nbsp;[Shopware Issuetracker](https://issues.shopware.com/issues/SW-21737) und wird mit 5.4.4 angegangen.

---

_[View the full topic](https://forum.shopware.com/t/shopware-db-fetchall-sql-plotzlich-fehlerhaft-im-cronjob/52811)._
