# Fehler beim Update: Could not apply migration (Migrations\_Migr

**URL:** <https://forum.shopware.com/t/fehler-beim-update-could-not-apply-migration-migrations-migr/59502>\
**Category:** Administration\
**Created:** [13. Mai 2019 um 09:00 UTC](https://forum.shopware.com/t/fehler-beim-update-could-not-apply-migration-migrations-migr/59502 "2019-05-13T09:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![1imOrt](https://avatars.discourse-cdn.com/v4/letter/1/58956e/32.png) [@1imOrt](https://forum.shopware.com/u/1imOrt)\
**Post date:** [13. Mai 2019 um 09:00 UTC](https://forum.shopware.com/t/fehler-beim-update-could-not-apply-migration-migrations-migr/59502/1 "2019-05-13T09:00:50Z")

</div>

Hallo zusammen,

&nbsp;

beim Update (5.2 auf 5.5.8 bricht das DB-Update mit folgender Meldung ab):

Error  
Received the following error message:  
Could not apply migration (Migrations\_Migration917). Error: array\_keys() expects parameter 1 to be array, null given

Please try to fix this error and restart the update.

Response

```
 {"valid":false,"errorMsg":"Could not apply migration (Migrations\_Migration917). Error: array\_keys() expects parameter 1 to be array, null given "}

```

Wenn ich mir das hier anschaue:

[shopware/917-add-sorting-module.php at 5.4 · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/5.4/_sql/migrations/917-add-sorting-module.php) gibt es das array\_keys nur in dem Part:  
$sorting = json\_decode($sorting, true);  
$classes = array\_keys($sorting);

Hat jemand eine Idee, warum hier das Array anscheinend nicht gefüllt wird? In der Tabelle `s_product_streams`&nbsp; sind auf jeden Fall alle sortings gefüllt…

Danke und Grüße, Alex

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [13. Mai 2019 um 09:15 UTC](https://forum.shopware.com/t/fehler-beim-update-could-not-apply-migration-migrations-migr/59502/2 "2019-05-13T09:15:50Z")

</div>

Evtl. hilft das Google Ergebnis -\>&nbsp;[https://support.netinventors.de/hc/de/articles/115000906773-Could-not-apply-migratin-Error-SQLSTATE-21000-Cardinality-violation](https://support.netinventors.de/hc/de/articles/115000906773-Could-not-apply-migratin-Error-SQLSTATE-21000-Cardinality-violation)

---

<div class="post-metadata">

**Author:** ![1imOrt](https://avatars.discourse-cdn.com/v4/letter/1/58956e/32.png) [@1imOrt](https://forum.shopware.com/u/1imOrt)\
**Post date:** [13. Mai 2019 um 09:28 UTC](https://forum.shopware.com/t/fehler-beim-update-could-not-apply-migration-migrations-migr/59502/3 "2019-05-13T09:28:22Z")

</div>

> [@Shopwareianer schrieb:](https://forum.shopware.com/profile/15489/Shopwareianer "Shopwareianer")
> 
> Evtl. hilft das Google Ergebnis -\>&nbsp;[https://support.netinventors.de/hc/de/articles/115000906773-Could-not-apply-migratin-Error-SQLSTATE-21000-Cardinality-violation](https://support.netinventors.de/hc/de/articles/115000906773-Could-not-apply-migratin-Error-SQLSTATE-21000-Cardinality-violation)

Vielen Dank - aber geht es da nicht um&nbsp; komplett andere Tabellen? Irgendwie kann ich den Zusammenhang zu dem Problem bei uns nicht herstellen (oder steh gerade auf der Leitung…)
