# \[gelöst\] Error bei Update SW 5.1.0 zu 5.3

**URL:** <https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236>\
**Category:** Administration\
**Created:** [1. August 2017 um 16:15 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236 "2017-08-01T16:15:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [1. August 2017 um 16:15 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/1 "2017-08-01T16:15:25Z")

</div>

Hallo zusammen,&nbsp;

leider will das Update bei mir nicht durchlaufen … Habe schon alle Plug-Ins deinstalliert die der Updater&nbsp;als nicht kompatible markiert hatte, bekomme jedoch trotzdem folgende Fehlermeldung mit der ich leider so gar nichts anfangen kann.&nbsp; ![Foot-in-Mouth](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/foot-in-mouth.png "Foot-in-Mouth")

```
Error
Received the following error message:
Could not apply migration (Migrations_Migration919). Error: SQLSTATE[21000]: Cardinality violation: 1242 Subquery returns more than 1 row 

Please try to fix this error and restart the update.
Response
{"valid":false,"errorMsg":"Could not apply migration (Migrations_Migration919). Error: SQLSTATE[21000]: Cardinality violation: 1242 Subquery returns more than 1 row "}

2 / 3 Datenbank-Update wird durchgeführt...

```

Ich hoffe Ihr habt da eine Idee zu.&nbsp;

VG&nbsp;

Paul

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [1. August 2017 um 16:54 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/2 "2017-08-01T16:54:19Z")

</div>

Guck mal ob in s\_core\_menu&nbsp;controller = „PluginManager“ mehrfach vorkommt. Dann einen löschen?

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [1. August 2017 um 17:15 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/3 "2017-08-01T17:15:43Z")

</div>

Hey Mike,

danke für Deine Antwort. Ich konnte folgende 4 Einträge finden. Welche meinst Du sollte ich am besten löschen?

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/e2db421f631a304921ec46cfe323c0a6ea543ee2.jpeg)

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [1. August 2017 um 17:27 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/4 "2017-08-01T17:27:55Z")

</div>

hmmm…&nbsp;Migrations\_Migration919 gibt es 2 Mal.

Ist in&nbsp;s\_library\_component irgendwas mit&nbsp;x\_type = ‘emotion-components-article’ oder emotion-components-article-slider doppelt?

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [1. August 2017 um 17:35 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/5 "2017-08-01T17:35:11Z")

</div>

> [@NextMike schrieb:](https://forum.shopware.com/profile/19433/NextMike "NextMike")
> 
> hmmm…&nbsp;Migrations\_Migration919 gibt es 2 Mal.

Wäre toll wenn einem die Fehlermeldung auch mitteilen würde was doppelt ist.&nbsp; ![Grin](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/70033cde8e8ff79cfa538293ae71318d6f788423.png "Grin")

Hier wäre article doppelt …&nbsp;

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/b/bd555244bb1c50f0092ee779913a85ae7573a844.jpeg)

Evtl. Artikel2 löschen?!&nbsp;

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [1. August 2017 um 18:26 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/6 "2017-08-01T18:26:07Z")

</div>

Das wäre auszuprobieren. Vorher sichern.&nbsp;

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [1. August 2017 um 18:32 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/7 "2017-08-01T18:32:24Z")

</div>

Gelöscht… immer noch die Fehlermeldung … bzw. muss ich das Update nochmal komplett neustarten oder reicht es wenn ich den laufenden Updater mit F5 neu anschubse?

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [2. August 2017 um 13:34 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/8 "2017-08-02T13:34:21Z")

</div>

Hmm… hab jetzt auch mal die 4 „PluginManager“ gelöscht, ergab leider auch kein Erfolg.&nbsp; ![Foot-in-Mouth](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/foot-in-mouth.png "Foot-in-Mouth")

Gibts keine Möglichkeit rauszufinden welcher Eintrag doppelt ist?

---

<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:** [2. August 2017 um 18:01 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/9 "2017-08-02T18:01:11Z")

</div>

Laut Migration können das nur emotion-components-article-slider oder emotion-components-article sein.

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [2. August 2017 um 19:49 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/10 "2017-08-02T19:49:48Z")

</div>

Die Suche hat mir jeweils nur einen Eintrag angezeigt. Habe zum test mal beide gelöscht, leider ergab beides kein Erfolg … Fehlermeldung bleibt bestehen.&nbsp; ![Foot-in-Mouth](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bedbc37f276faa6d086ddea9cd70cb0550bbd56e.png "Foot-in-Mouth")&nbsp;Wenn ich weiter so fröhlich rumlösche bleibt bald nichts mehr von der DB übrig.&nbsp; ![Grin](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/70033cde8e8ff79cfa538293ae71318d6f788423.png "Grin")

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [2. August 2017 um 19:59 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/11 "2017-08-02T19:59:49Z")

</div>

Oh ich seh gerade, dass sich die Fehlermeldung doch geändert hat. Ich vermute mal das jetzt fehlen die beiden Einträge die ich gerad gelöscht habe…

```
Error
Received the following error message:
Could not apply migration (Migrations_Migration919). Error: array_column() 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_Migration919). Error: array_column() expects parameter 1 to be array, null given "}

```

Was aber auch bedeutet, wenn ich die wieder herstelle, hab ich wieder die alte Fehlermeldung?!

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [2. August 2017 um 21:11 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/12 "2017-08-02T21:11:16Z")

</div>

Yey habs rausbekommen.&nbsp; ![Halo](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/halo.png "Halo")&nbsp;Lag wirklich&nbsp;an dem doppelten&nbsp;emotion-components-article Eintrag aus dem Bild oben. Hatte jetzt nochmal ein Backup eingespielt und vor dem Update den zweiten Eintrag gelöscht. Danach das Update gestartet und es lief ohne Probleme durch.&nbsp;

Aber ich hatte mich natürlich zufrüh gefreut.&nbsp; ![Foot-in-Mouth](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/foot-in-mouth.png "Foot-in-Mouth")&nbsp;HTTP ERROR 500&nbsp; ![Undecided](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/undecided.png "Undecided")&nbsp;

Im Log steht folgenes:&nbsp;

```
[2017-08-02 22:47:06] core.ERROR: exception 'Symfony\Component\Filesystem\Exception\IOException' with message 'Cannot rename because the target "/home/xxx/www.xxx.de/xxx/files/update//update-assets/" already exists.' in /home/xxx/www.xxx.de/vendor/symfony/filesystem/Filesystem.php:272 
Stack trace: 
#0 /home/xxx/www.xxx.de/engine/Shopware/Plugins/Default/Backend/SwagUpdate/Controllers/Backend/SwagUpdate.php(351): Symfony\Component\Filesystem\Filesystem->rename('/xxx/xxx...', '/xxx/xxx...') 
#1 /home/xxx/www.xxx.de/engine/Library/Enlight/Controller/Action.php(158): Shopware_Controllers_Backend_SwagUpdate->unpackAction() 
#2 /home/xxx/www.xxx.de/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight_Controller_Action->dispatch('unpackAction') 
#3 /home/xxx/www.xxx.de/engine/Library/Enlight/Controller/Front.php(227): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp)) 
#4 /home/xxx/www.xxx.de/engine/Shopware/Kernel.php(148): Enlight_Controller_Front->dispatch() 
#5 /home/xxx/www.xxx.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(492): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#6 /home/xxx/www.xxx.de/engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) 
#7 /home/xxx/www.xxx.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(263): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true) 
#8 /home/xxx/www.xxx.de/engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true) 
#9 /home/xxx/www.xxx.de/shopware.php(101): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request)) 
#10 {main} [] {"uid":"e84b337"}

```

Ich hatte jetzt vor diesem Update die Plug-Ins nicht aufgeräumt, da ich das Backup vor dem löschen der Plug-Ins gemacht hatte. Könnte es laut der Fehlermeldung ausschließlich daran liegen oder zickt da noch was anderes rum?&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:** [3. August 2017 um 05:01 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/13 "2017-08-03T05:01:05Z")

</div>

Der Fehler ist nicht weiter schlimm, lösche am besten einfach den Ordner /update-assets/ und im Ordner files/ den Ordner “update”. Dann sollte das Update auch durch sein.

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [3. August 2017 um 10:35 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/14 "2017-08-03T10:35:57Z")

</div>

> [@Moritz Naczenski schrieb:](https://forum.shopware.com/profile/14574/Moritz%20Naczenski "Moritz%20Naczenski")
> 
> Dann sollte das Update auch durch sein.

Ach wär das schön, wenns so einfach wär. ^^ Den Ordner update in files/ konnte ich finden und hab ihn gelöscht, daraufhin verschwand die Fehlermeldung und die Seite vom Backend wie auch vom Shop wurden komplett weiß. ![Foot-in-Mouth](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bedbc37f276faa6d086ddea9cd70cb0550bbd56e.png "Foot-in-Mouth") Einen Logeintrag gibt es nun auch nicht mehr. Den Ordner /update-assets/ konnte ich jedoch nicht finden. Dafür konnte ich einen Ordner „assets“ in /recovery/update/ , den hab ich zum Test auch mal gelöscht, leider ohne Erfolg. Gleiches gilt für den Cache-Ordner Production, nach löschen keine Änderung. ![Foot-in-Mouth](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bedbc37f276faa6d086ddea9cd70cb0550bbd56e.png "Foot-in-Mouth")

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [3. August 2017 um 11:20 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/15 "2017-08-03T11:20:22Z")

</div>

Ist das produktiv oder ein Hobby?

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [3. August 2017 um 13:18 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/16 "2017-08-03T13:18:35Z")

</div>

Es handelt sich um eine Testumgebung vom produktiven Shop. Ich mach kein Update vom produktiven Shop solange ich die Testumgebung nicht sauber zum laufen bekomme. Die Daten selbst sind 1:1 vom aktiven Shop in einen Unterordner kopiert und die entsprechenden Verweise angepasst.

---

<div class="post-metadata">

**Author:** ![Domagical](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@Domagical](https://forum.shopware.com/u/Domagical)\
**Post date:** [11. Oktober 2017 um 10:38 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/17 "2017-10-11T10:38:59Z")

</div>

> [@WOLLkenSchaf schrieb:](https://forum.shopware.com/profile/3926/WOLLkenSchaf "WOLLkenSchaf")
> 
> Oh ich seh gerade, dass sich die Fehlermeldung doch geändert hat. Ich vermute mal das jetzt fehlen die beiden Einträge die ich gerad gelöscht habe…
> 
> Error  
> Received the following error message:  
> Could not apply migration (Migrations\_Migration919). Error: array\_column() 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\_Migration919). Error: array\_column() expects parameter 1 to be array, null given "}
> 
> Was aber auch bedeutet, wenn ich die wieder herstelle, hab ich wieder die alte Fehlermeldung?!

&nbsp;

&nbsp;

Ich erhalte die gleiche Fehlermeldung. Wie kann ich Sie beheben?

---

<div class="post-metadata">

**Author:** ![viktor\_mk](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@viktor\_mk](https://forum.shopware.com/u/viktor_mk)\
**Post date:** [8. November 2017 um 09:19 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/18 "2017-11-08T09:19:48Z")

</div>

Konntest du das Problem lösen ?

---

<div class="post-metadata">

**Author:** ![WOLLkenSchaf](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@WOLLkenSchaf](https://forum.shopware.com/u/WOLLkenSchaf)\
**Post date:** [8. November 2017 um 14:43 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/19 "2017-11-08T14:43:44Z")

</div>

Ja, wie ich schon oben geschrieben habe, lag es an dem doppelten&nbsp;emotion-components-article Eintrag, Nachdem ich den eintrag mit dem Namen „Artikel2“ komplett gelöscht hatte lief das Update ohne Problem durch.

Eventuell könnte mal bitte ein Admin den zweiten Beitrag von NextMike als Lösung markieren. Leider hatte ich das zu früh&nbsp;das als nicht Lösung makiert. Danke. 🙂

---

<div class="post-metadata">

**Author:** ![nauralos](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@nauralos](https://forum.shopware.com/u/nauralos)\
**Post date:** [30. Mai 2018 um 16:23 UTC](https://forum.shopware.com/t/gelost-error-bei-update-sw-5-1-0-zu-5-3/47236/20 "2018-05-30T16:23:08Z")

</div>

Ergänzend dazu noch eine Lösung für ein Problem mit Migration919, das mir bei einem Update von 5.2.27 auf 5.4.3 untergekommen ist.

Vermutlich wenn der Shop ursprünglich mal SW 3.x oder 4.x war und immer schön weiter upgedatet wurde, kann sein sein, dass in der Tabelle „s\_emotion\_element\_value“ noch Werte stehen mit Pipe-Zeichen (|)

SELECT \* FROM s\_emotion\_element\_value&nbsp; WHERE value = ‚||‘;

Die Migration919 macht in der „function convertSelectedProductsOfProductSlider“ dann ein json\_decode dieses Wertes, was in „NULL“ resultiert und somit den nachfolgenden Aufruf von array\_column() in einen Fehler laufen lässt:

> Could not apply migration (Migrations\_Migration919) array\_column() expects parameter 1 to be array

Mit nachfolgendem SQL Befehl lässt sich das Problem lösen:

UPDATE s\_emotion\_element\_value SET value=‚‘&nbsp; WHERE value = ‚||‘;
