# Bezahlen mit Amazon Statusupdate via Cron

**URL:** <https://forum.shopware.com/t/bezahlen-mit-amazon-statusupdate-via-cron/37525>\
**Category:** Plugins\
**Tags:** drittanbieter-plugin\
**Created:** [17. Juni 2016 um 09:27 UTC](https://forum.shopware.com/t/bezahlen-mit-amazon-statusupdate-via-cron/37525 "2016-06-17T09:27:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgreiner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/tgreiner/32/13964_2.png) [@tgreiner](https://forum.shopware.com/u/tgreiner)\
**Post date:** [17. Juni 2016 um 09:27 UTC](https://forum.shopware.com/t/bezahlen-mit-amazon-statusupdate-via-cron/37525/1 "2016-06-17T09:27:23Z")

</div>

Moin!

Wenn ich den Cronjob für das Statusupdate laufen lasse, bekomme ich folgenden Fehler:

Processing Login und Bezahlen mit Amazon Statusübermittlung  
**Fatal error** : Cannot access parent:: when current class scope has no parent in **[…]/engine/Shopware/Plugins/Community/Frontend/BestitAmazonPaymentsAdvanced/Components/OffAmazonPaymentsService/Exception.php** on line **62**  
503 Service Unavailable

Kann mir jemand sagen, wie das zu fixen ist bzw. wo der Fehler herkommt?

Danke!

&nbsp;

---

<div class="post-metadata">

**Author:** ![tgreiner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/tgreiner/32/13964_2.png) [@tgreiner](https://forum.shopware.com/u/tgreiner)\
**Post date:** [23. Juni 2016 um 15:16 UTC](https://forum.shopware.com/t/bezahlen-mit-amazon-statusupdate-via-cron/37525/2 "2016-06-23T15:16:00Z")

</div>

Der Fehler entsteht in einer Datei von einem ganzen Satz an Dateien, die von Amazon für das Payment zur Verfügung gestellt werden. Da die Dateien von best-it alle verschlüsselt sind, konnte ich nicht schauen was da passiert. In der Exception.php die ich gefunden habe steht in Zeile 62 folgendes:

```
parent::__construct($this->_message);

```

Warum da jetzt kein parent vonhaden sein soll, kann ich nicht nachvollziehen. Zumindest phpStorm findet Implementierungen. Nun gut… ich habe also spaßeshalber mal die Exception.php von best-it gegen die von Amazon getauscht. Und siehe da. Der Cronjob läuft durch. Schauen wir mal, ob nun auch alles so funktioniert, wie es soll.
