# Problem beim Update von 5.5.10 auf 5.6

**URL:** <https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115>\
**Category:** Installation/Einstieg\
**Created:** [15. August 2019 um 18:21 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115 "2019-08-15T18:21:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertos](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@robertos](https://forum.shopware.com/u/robertos)\
**Post date:** [15. August 2019 um 18:21 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/1 "2019-08-15T18:21:43Z")

</div>

Hallo,  
beim Update auf die 5.6 erhalte ich folgende Fehlermeldung beim Update der Datenbank:

Error

Received the following error message:  
Could not apply migration (Migrations\_Migration1602). Error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘resourceID’ cannot be null

Please try to fix this error and restart the update.

Response

```
 {"valid":false,"errorMsg":"Could not apply migration (Migrations\_Migration1602). Error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'resourceID' cannot be null "}

```

&nbsp;

**2 / 3**

Datenbank-Update wird durchgeführt…

&nbsp;

Hat jemand eine Idee, was das sein könnte??

&nbsp;

---

<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:** [15. August 2019 um 18:26 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/2 "2019-08-15T18:26:18Z")

</div>

```
SELECT id FROM s_core_acl_resources WHERE name = "pluginmanager"

SELECT id FROM s_core_acl_resources WHERE name = "swagupdate"

```

Schau mal was die beiden Querys zurück liefern

---

<div class="post-metadata">

**Author:** ![robertos](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@robertos](https://forum.shopware.com/u/robertos)\
**Post date:** [15. August 2019 um 18:28 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/3 "2019-08-15T18:28:21Z")

</div>

```
SELECT id FROM s_core_acl_resources WHERE name = "pluginmanager"

```

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/2/2daeaa8b5f19f0bc209d976c02bd6acb51b00b0a.gif) Zeige Datensätze 0 - 0 (1 insgesamt, Die Abfrage dauerte 0.0007 Sekunden.)

`SELECT id FROM s_core_acl_resources WHERE name = "pluginmanager" `

&nbsp;

```
SELECT id FROM s_core_acl_resources WHERE name = "swagupdate"

```

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/2/2daeaa8b5f19f0bc209d976c02bd6acb51b00b0a.gif) MySQL lieferte ein leeres Resultat zurück (d.h. null Datensätze). (Die Abfrage dauerte 0.0004 Sekunden.)

`SELECT id FROM s_core_acl_resources WHERE name = "swagupdate" `

&nbsp;

&nbsp;

---

<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:** [15. August 2019 um 18:29 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/4 "2019-08-15T18:29:39Z")

</div>

Leg mal in der Tabelle einen neuen Datensatz mit swagupdate als Namen an. Danach nochmal das Update aufrufen.

---

<div class="post-metadata">

**Author:** ![robertos](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@robertos](https://forum.shopware.com/u/robertos)\
**Post date:** [15. August 2019 um 18:35 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/5 "2019-08-15T18:35:04Z")

</div>

Update lief 2-3 Sekunden länger, jetzt kommt diese Fehlermeldung:

Error

Received the following error message:  
Could not apply migration (Migrations\_Migration1632). Error: Undefined index: update

Please try to fix this error and restart the update.

Response

```
 {"valid":false,"errorMsg":"Could not apply migration (Migrations\_Migration1632). Error: Undefined index: update "}
```

---

<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:** [15. August 2019 um 18:43 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/6 "2019-08-15T18:43:38Z")

</div>

Ja, es fehlen Dir irgendwie Benutzer-Rechte.

Wahrscheinlich fehlt read, update und notification für die Resource swagupdate. Vielleicht kannst du die auch noch manuell anlegen.

---

<div class="post-metadata">

**Author:** ![robertos](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@robertos](https://forum.shopware.com/u/robertos)\
**Post date:** [15. August 2019 um 18:46 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/7 "2019-08-15T18:46:27Z")

</div>

> [@Moritz Naczenski schrieb:](https://forum.shopware.com/profile/14574/Moritz%20Naczenski "Moritz%20Naczenski")
> 
> Ja, es fehlen Dir irgendwie Benutzer-Rechte.
> 
> Wahrscheinlich fehlt read, update und notification für die Resource swagupdate. Vielleicht kannst du die auch noch manuell anlegen.

Da bin ich jetzt raus…  
Kannst du mir mal bitte nen Screenshot schicken, wie das richtig angelegt sein sollte?

---

<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:** [15. August 2019 um 18:54 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/8 "2019-08-15T18:54:19Z")

</div>

Muss ich morgen mal schauen, gerade keine Datenbank zur Hand und auch nur mit Handy online. Schick mir mal den Datenbank Zugang an [forum@shopware.com](mailto:forum@shopware.com) und am besten die Domain dazu.

---

<div class="post-metadata">

**Author:** ![vc-nm](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/vc-nm/32/8114_2.png) [@vc-nm](https://forum.shopware.com/u/vc-nm)\
**Post date:** [28. August 2019 um 15:55 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/9 "2019-08-28T15:55:06Z")

</div>

Hallo Zusammen,&nbsp;

bei einem Kundenshop kommt genau die selbste Fehlermeldung.&nbsp;

“Could not apply migration (Migrations\_Migration1632). Error: Undefined index: update”

Die rechte sind vorhanden…&nbsp;

Wie sah die Lösung für das Problem denn aus?&nbsp;

---

<div class="post-metadata">

**Author:** ![site-concept](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@site-concept](https://forum.shopware.com/u/site-concept)\
**Post date:** [4. September 2019 um 12:26 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/10 "2019-09-04T12:26:51Z")

</div>

Wir hatten auch das Problem bei der Installation.  
Da wird auf eine nicht vorhandene Variable zugegriffen.

Die Datei /files/update/update-assets/migrations/1632-add-acl-privilege-requirements.php Zeile 499  
kann bearbeitet werden, um das Problem zu umgehen.

```
 $this-\>addSql('INSERT INTO `s_core_acl_privilege_requirements` (`privilege_Id`, `required_privilege_id`) VALUES (' . $privilegeMapping[$resource][$resourcePrivilege] . ', ' . $privilegeMapping[$requirementResource][$requirementPrivilege] . ')');

```

&nbsp;

ändern in

&nbsp;

```
**if** ( **isset** ($privilegeMapping[$resource][$resourcePrivilege]) && $privilegeMapping[$requirementResource][$requirementPrivilege]) { $this-\>addSql('INSERT INTO `s_core_acl_privilege_requirements` (`privilege_Id`, `required_privilege_id`) VALUES (' . $privilegeMapping[$resource][$resourcePrivilege] . ', ' . $privilegeMapping[$requirementResource][$requirementPrivilege] . ')'); }
```

---

<div class="post-metadata">

**Author:** ![Grafik-Artist](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Grafik-Artist](https://forum.shopware.com/u/Grafik-Artist)\
**Post date:** [4. September 2019 um 14:16 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/11 "2019-09-04T14:16:16Z")

</div>

Auch ich habe ein Problem beim Datenbankupdate auf die Version 5.6. Es erscheint eine Fehlermeldung und die Aufforderung den Fehler zu beseitigen damit das Update zu Ende gebracht werden kann. Doch was soll ich tun?

Micha

---

<div class="post-metadata">

**Author:** ![NicoDD](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@NicoDD](https://forum.shopware.com/u/NicoDD)\
**Post date:** [4. September 2019 um 14:21 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/12 "2019-09-04T14:21:11Z")

</div>

PS mit version 5.6.1 gibt es auch probleme wenn man auf PHP 7.3 umgestellt hat. scheint wohl alles nicht mehr so richtig zu laufen.

---

<div class="post-metadata">

**Author:** ![NicoDD](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@NicoDD](https://forum.shopware.com/u/NicoDD)\
**Post date:** [4. September 2019 um 14:23 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/13 "2019-09-04T14:23:09Z")

</div>

> [@Grafik-Artist schrieb:](https://forum.shopware.com/profile/20558/Grafik-Artist "Grafik-Artist")
> 
> Auch ich habe ein Problem beim Datenbankupdate auf die Version 5.6. Es erscheint eine Fehlermeldung und die Aufforderung den Fehler zu beseitigen damit das Update zu Ende gebracht werden kann. Doch was soll ich tun?
> 
> Micha
> 
> &nbsp;
> 
> Schau mal drauf, es kann sein, dass du die PHP Version auf mindestens 7.2 stellen musst bei deinem Webspace anbieter. Aber vorsicht, bei mir ging danach nichts mehr.&nbsp; Villt ist es ja bei dir anders.

---

<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 14:31 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/14 "2019-09-04T14:31:40Z")

</div>

> [@NicoDD schrieb:](https://forum.shopware.com/profile/24641/NicoDD "NicoDD")
> 
> PS mit version 5.6.1 gibt es auch probleme wenn man auf PHP 7.3 umgestellt hat. scheint wohl alles nicht mehr so richtig zu laufen.

Das hat aber mit der Version nichts zu tun, sondern wohl eher mit den Plugins im System. „Nichts geht mehr“ wird auch ein einfacher Fehler sein, den man auslesen kann:&nbsp;[Shopware 5 - Tutorials & FAQs -Debugging error messages in Shopware](https://docs.shopware.com/en/shopware-5-en/tutorials-and-faq/debugging-error-messages-in-shopware#enhanced-error-debugging)

Also umstellen, config.php anpassen, Fehlermeldung auslesen und dann schauen, was die verursacht.&nbsp;

---

<div class="post-metadata">

**Author:** ![fittken](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@fittken](https://forum.shopware.com/u/fittken)\
**Post date:** [4. September 2019 um 20:02 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/15 "2019-09-04T20:02:58Z")

</div>

Wir haben exakt den gleichen Fehler und auch noch keine Lösung für das Problem gefunden.&nbsp;

&nbsp;

PHP 7.2 ist aktiviert, die Datei /files/update/update-assets/migrations/1632-add-acl-privilege-requirements.php Zeile 499 &nbsp;haben wir nicht, also keine mit „1632“

---

<div class="post-metadata">

**Author:** ![fittken](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@fittken](https://forum.shopware.com/u/fittken)\
**Post date:** [5. September 2019 um 17:44 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/16 "2019-09-05T17:44:07Z")

</div>

Hat jemand eine Lösung für das Problem?

---

<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:** [5. September 2019 um 18:11 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/17 "2019-09-05T18:11:17Z")

</div>

Der update-assets ist im Stammverzeichnis, je nachdem über welchen Weg man Updates einspielt. Das oben ist aber auch nicht wirklich die Lösung. Die Frage ist ja eher, warum die Rechte erst garnicht existieren. Problem kann man sicherlich damit umgehen, ist aber eigentlich schon einige Updates vorher entstanden.

---

<div class="post-metadata">

**Author:** ![AkustikProjekt](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/akustikprojekt/32/18382_2.png) [@AkustikProjekt](https://forum.shopware.com/u/AkustikProjekt)\
**Post date:** [25. September 2019 um 06:38 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/18 "2019-09-25T06:38:54Z")

</div>

Wir haben beim Update von 5.5.10 auf 5.6.1 dasselbe Problem mit den Rechten. Update hängt auch immer beim Eintragen der fehlenden Rechte. Können die Rechte eventuell auch manuell eingetragen werden.

Schöne Grüße  
Christian Steinmetz  
AKUSTIK-PROJEKT

&nbsp;

---

<div class="post-metadata">

**Author:** ![Ake](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@Ake](https://forum.shopware.com/u/Ake)\
**Post date:** [15. Oktober 2019 um 10:24 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/19 "2019-10-15T10:24:32Z")

</div>

Kann mir vielleicht jemand mit dieser Fehlermeldung mit der Datenbankmigration weiterhelfen? Versuche von 5.5.10 auf 5.6.2 upzudaten, bringt aber immer die gleiche Fehlermeldung.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/f/f503f5183d32ff194601d033138d7a9ae7ff8f29.png)

---

<div class="post-metadata">

**Author:** ![kulli](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kulli](https://forum.shopware.com/u/kulli)\
**Post date:** [15. Oktober 2019 um 15:16 UTC](https://forum.shopware.com/t/problem-beim-update-von-5-5-10-auf-5-6/61115/20 "2019-10-15T15:16:58Z")

</div>

[https://forum.shopware.com/discussion/comment/255812/#Comment\_255812](https://forum.shopware.com/discussion/comment/255812/#Comment_255812)

[https://forum.shopware.com/discussion/comment/255786/#Comment\_255786](https://forum.shopware.com/discussion/comment/255786/#Comment_255786)

&nbsp;
