# Update auf 5.6.1. schlägt fehl

**URL:** https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506
**Category:** Allgemein
**Created:** [3. September 2019 um 11:10 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506 "2019-09-03T11:10:30Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)
#### Post date: [3. September 2019 um 11:10 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/1 "2019-09-03T11:10:30Z")

</div>

Hallo.

&nbsp;

Ich habe den kleinen Update von 5.6. auf 5.6.1 gemacht und nun kommt der shop nicht mehr aus dem Wartungsmodus. Auch wenn ich das BAckend aufrufe, erscheint das Wartungsfenster.

Dazwischen kam eine Fehlermeldung, die ich aber nicht wieder sichtbar machen kann.  
Was kann ich tun?

Danke, Gerd

---

<div class="post-metadata">

### Author: ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)
#### Post date: [3. September 2019 um 11:16 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/2 "2019-09-03T11:16:56Z")

</div>

Ich habe nun nochmal [https://www.meine-domain.XX/recovery/update/index.php/cleanup](https://www.meine-domain.XX/recovery/update/index.php/cleanup) gestartet. Die Fehlermeldung lautet:  
Shop weiterhin im Wartungsmodus

**Fatal error** : Cannot redeclare Shopware\Models\Attribute\OrderBasket::$orderBasket in **/home/loedxgof/jvshop5/var/cache/production\_201908270823/doctrine/attributes/OrderBasket.php** on line **126**

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [3. September 2019 um 11:19 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/3 "2019-09-03T11:19:23Z")

</div>

Deine Foreign Keys scheinen kaputt zu sein - hat weniger was mit dem Update zu tun, das Update leert nur den Cache für die Models, daher merkt man das Problem erst häufig nach dem Update.

> **[Shopware 5 - Tutorials & FAQs - Reparatur der Foreign Keys](https://docs.shopware.com/de/shopware-5-de/tutorials-und-faq/foreign-keys-reparieren)**

---

<div class="post-metadata">

### Author: ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)
#### Post date: [3. September 2019 um 14:05 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/4 "2019-09-03T14:05:33Z")

</div>

Vielen Dank. Ich habs versucht und bekomme diesen Fehler bei der ausführung von repairForeignKeys\_5.5.7.sql:

Was ist nun zu tun?

```
-- Add missing foreign key
ALTER TABLE `s_emotion_attributes` ADD FOREIGN KEY ( `emotionID` ) REFERENCES `s_emotion` (
        `id`
) ON DELETE CASCADE ON UPDATE NO ACTION

```

&nbsp;

**MySQL meldet:**

`#1452 - Kann Kind-Zeile nicht hinzufügen oder aktualisieren: eine Fremdschlüsselbedingung schlägt fehl (`usrdb\_loedxgof4`.`#sql-30d\_5c5481`, CONSTRAINT `#sql-30d\_5c5481\_ibfk\_1` FOREIGN KEY (`emotionID`) REFERENCES `s\_emotion` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION)`

---

<div class="post-metadata">

### Author: ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)
#### Post date: [3. September 2019 um 15:10 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/5 "2019-09-03T15:10:59Z")

</div>

Ich glaube ich brauche hier Unterstützung. Wer kann hier helfen?

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [3. September 2019 um 16:44 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/6 "2019-09-03T16:44:40Z")

</div>

Im Prinzip kann das mit jeder Tabelle passieren. Unten im Docs-Artikel hast du ein Beispiel dafür wie man das machen kann. Du musst auf Basis der Fehlermeldung anpassen. Das kann so aussehen für die Meldung die du bekommst:

```
DELETE ca
FROM `s_emotion_attributes` ca 
LEFT JOIN s_emotion c
ON c.id = ca.emotionID
WHERE c.id IS NULL   

```

Das müsste man dann ausführen und danach nochmal die Foreign Key Reparatur von vorne starten.

---

<div class="post-metadata">

### Author: ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)
#### Post date: [3. September 2019 um 19:43 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/7 "2019-09-03T19:43:04Z")

</div>

Wie finde ich die betroffenen Tabllen heraus?

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [3. September 2019 um 20:08 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/8 "2019-09-03T20:08:42Z")

</div>

Die stehen ja in der Fehlermeldung von oben&nbsp;

---

<div class="post-metadata">

### Author: ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)
#### Post date: [4. September 2019 um 06:43 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/9 "2019-09-04T06:43:02Z")

</div>

Guten Morgen,

es scheint geklappt zu haben. ALlerdings bekomme ich jetzt den Fehler, der sich aufs Paypal plugin bezieht:

&nbsp;

**Fatal error** : Uncaught Error: Undefined class constant ‘VERSION’ in /home/loedxgof/jvshop5/engine/Shopware/Plugins/Community/Frontend/SwagPaymentPaypal/Bootstrap.php:146 Stack trace: #0 /home/loedxgof/jvshop5/engine/Shopware/Plugins/Community/Frontend/SwagPaymentPaypal/Bootstrap.php(228): Shopware\_Plugins\_Frontend\_SwagPaymentPaypal\_Bootstrap-\>get(‘template’) #1 /home/loedxgof/jvshop5/engine/Shopware/Plugins/Community/Frontend/SwagPaymentPaypal/Subscriber/BackendIndex.php(58): Shopware\_Plugins\_Frontend\_SwagPaymentPaypal\_Bootstrap-\>registerMyTemplateDir() #2 /home/loedxgof/jvshop5/engine/Shopware/Plugins/Community/Frontend/SwagPaymentPaypal/Bootstrap.php(280): Shopware\SwagPaymentPaypal\Subscriber\BackendIndex-\>onPostDispatchBackendIndex(Object(Enlight\_Controller\_ActionEventArgs)) #3 /home/loedxgof/jvshop5/engine/Library/Enlight/Event/Handler/Plugin.php(145): Shopware\_Plugins\_Frontend\_SwagPaymentPaypal\_Bootstrap-\>onExtendBackendIndex(Object(Enlight\_Controller\_ActionEventArgs)) #4 /home/loedxgof/jvshop5/engine/Library/Enlight in **/home/loedxgof/jvshop5/engine/Shopware/Plugins/Community/Frontend/SwagPaymentPaypal/Bootstrap.php** on line **146**

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [4. September 2019 um 06:54 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/10 "2019-09-04T06:54:51Z")

</div>

Für das Plugin müsste es ein Update geben.

---

<div class="post-metadata">

### Author: ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)
#### Post date: [4. September 2019 um 07:51 UTC](https://forum.shopware.com/t/update-auf-5-6-1-schlagt-fehl/61506/11 "2019-09-04T07:51:32Z")

</div>

Problem der Key ist gelöst. Vielen Dank für die Hilfe.

Jetzt muss ich noch das Problem mit SwagPaymentPaypal lösen. Ich hab erstmal das Plugin in der DB deaktiviert, damit der Shop wiederonline ist und ich ins Backend komme.
