# Tod nach Update auf 5.5.7

**URL:** <https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459>\
**Category:** Installation/Einstieg\
**Created:** [9. März 2019 um 05:39 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459 "2019-03-09T05:39:09Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strelitzer](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@Strelitzer](https://forum.shopware.com/u/Strelitzer)\
**Post date:** [9. März 2019 um 05:39 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/1 "2019-03-09T05:39:09Z")

</div>

Ich habe gestern das Update von 5.5.1 auf 5.5.7 versucht.  
Dazu habe ich das Updatepaket entpackt, auf das Projekt kopiert und hochgeladen.  
Der Updateprozess lief zügig durch. Das Backend lässt sich aufrufen, im Shop gibt es aber nur eine Fehlermeldung:

> **Fatal error** :&nbsp;  
> Uncaught Doctrine\ORM\Mapping\MappingException: The target-entity Shopware\Models\Attribute\Shop cannot be found in ‚Shopware\Models\Shop\Shop#attribute‘.  
> in /is/htdocs/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:762  
> Stack trace:  
> #0 /is/htdocs/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1028):  
> &nbsp;&nbsp;&nbsp; Doctrine\ORM\Mapping\MappingException::invalidTargetEntityClass(‚Shopware\Models…‘, ‚Shopware\Models…‘, ‚attribute‘)  
> #1 /is/htdocs/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(272):  
> &nbsp;&nbsp;&nbsp; Doctrine\ORM\Mapping\ClassMetadataInfo-\>validateAssociations()  
> #2 /is/htdocs/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(251):  
> &nbsp;&nbsp;&nbsp; Doctrine\ORM\Mapping\ClassMetadataFactory-\>validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata),  
> in **/is/htdocs/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php** on line **762**

Was kann ich nun tun?&nbsp;

---

<div class="post-metadata">

**Author:** ![Thola](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@Thola](https://forum.shopware.com/u/Thola)\
**Post date:** [10. März 2019 um 11:19 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/2 "2019-03-10T11:19:08Z")

</div>

Hast Du mal den Cache über das Backend komplett gelöscht? Das könnte helfen.

> Dazu habe ich das Updatepaket entpackt, auf das Projekt kopiert und hochgeladen.

Nur so als Frage: Warum nutzt Du nicht die Update-Funktion aus dem Backend? Würde ich immer bevorzugen.&nbsp; ![Halo](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/d6f31fb007077fa834e26f5b6a29275ae615cbd1.png "Halo")

VG

Thorsten

---

<div class="post-metadata">

**Author:** ![Strelitzer](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@Strelitzer](https://forum.shopware.com/u/Strelitzer)\
**Post date:** [20. März 2019 um 06:04 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/3 "2019-03-20T06:04:39Z")

</div>

Leider kann man mit dem Löschen des Cache nicht alle Probleme in Shopware fixen. Es gibt da eine eingebaute Fallgrube.  
Wer im Normalbetrieb über die Servervariable&nbsp;SHOPWARE\_ENV eine bestimmte config.php lädt, wird beim Update sein blaues Wunder erleben.

**// shopware.php:  
$environment = getenv(‚SHOPWARE\_ENV‘) ?: getenv(‚REDIRECT\_SHOPWARE\_ENV‘) ?: ‚production‘;  
// engine/Shopware/Configs/Default.php:  
if (file\_exists($this-\>DocPath() . ‚config\_‘ . $this-\>Environment() . ‚.php‘)) {  
&nbsp; &nbsp; $customConfig = $this-\>loadConfig($this-\>DocPath() . ‚config\_‘ . $this-\>Environment() . ‚.php‘);**

Es wird nämlich nicht die config geladen, die der Shop im laufenden Betrieb benutzt, sondern einfach die „config.php“  
Dadurch erfolgt das Update der Datenbank woanders.

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [20. März 2019 um 08:38 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/4 "2019-03-20T08:38:20Z")

</div>

> habe ich das Updatepaket entpackt, auf das Projekt kopiert und hochgeladen

Vielleicht wurden hier nicht alle Dateien komplett übertragen. So ein Update kann man auch über das Backend machen.&nbsp;

---

<div class="post-metadata">

**Author:** ![shop13](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shop13](https://forum.shopware.com/u/shop13)\
**Post date:** [23. Februar 2022 um 18:36 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/5 "2022-02-23T18:36:23Z")

</div>

Hallo, ich habe auch diese Fehlermeldung und kriege den Fehler nicht elimiert.

**Fatal error** : Uncaught Doctrine\ORM\Mapping\MappingException: The target-entity Shopware\Models\Attribute\Emotion cannot be found in ‚Shopware\Models\Emotion\Emotion#attribute‘. in /kunden/387923\_45141/webhost/K442778/T104275/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:762 Stack trace: #0 /kunden/387923\_45141/webhost/K442778/T104275/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1028): Doctrine\ORM\Mapping\MappingException::invalidTargetEntityClass(‚Shopware\Models…‘, ‚Shopware\Models…‘, ‚attribute‘) #1 /kunden/387923\_45141/webhost/K442778/T104275/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(272): Doctrine\ORM\Mapping\ClassMetadataInfo-\>validateAssociations() #2 /kunden/387923\_45141/webhost/K442778/T104275/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(251): Doctrine\ORM\Mapping\ClassMetadataFactory-\>validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL) #3 /kunden/387923\_45 in **/kunden/387923\_45141/webhost/K442778/T104275/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php** on line **762**

Ich habe schon die Reperatur der Forerign Keys durchgeführt und der Cache ist auch geleert. Ich habe versucht das System von 5.5.10 auf 5.6.0 zu updaten, was nicht funktioniert, da ahbe ich das Backup jetzt eingespielt und habe nun das Problem. Ich habe auch bereits das Updatepaket 5.5.10 noch mal eingespielt, und dennoch habe ich den Fehler. Den Eintrag von „Strelitzer“ verstehe ich leider nicht. Was kann man machen um das Frontend wieder zum laufen zu bringen.

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [23. Februar 2022 um 22:51 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/6 "2022-02-23T22:51:23Z")

</div>

Hallo @shop13,

der Fehler wird durch die Emotion-Attribute verursacht.  
Hast du auch mal versucht nach dem Update die Shopware Attribut Modelle zu generieren?

Über die Shopware CLI kannst du die Attribut Modelle generieren. Den Befehl findest du in der Shopware Dokumentation [Shopware 5 - Tutorials & FAQs - Nutzung der CLI Befehle in Shopware](https://docs.shopware.com/de/shopware-5-de/tutorials-und-faq/shopware-cli#core-befehle) .

Bitte anschließend auch alle Shopware Caches leeren und ggf. den Shopware Cache Order „production\_XXXX“ entfernen.

lg  
Abdullah

---

<div class="post-metadata">

**Author:** ![shop13](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shop13](https://forum.shopware.com/u/shop13)\
**Post date:** [24. Februar 2022 um 04:28 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/7 "2022-02-24T04:28:12Z")

</div>

Guten Morgen @abdullah ,

danke für den Tip. Ich habe den Befehl php bin/console sw:generate:attributes eingegeben und bekomme das als output:

PHP Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“? in /kunden/387923\_45141/webhost/K442778/T104275/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2636  
PHP Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“? in /kunden/387923\_45141/webhost/K442778/T104275/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2665  
PHP Fatal error: Interface ‚Doctrine\Persistence\ObjectRepository‘ not found in /kunden/387923\_45141/webhost/K442778/T104275/shopware/engine/Shopware/Models/Mail/LogRepositoryInterface.php on line 32

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [24. Februar 2022 um 22:16 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/8 "2022-02-24T22:16:31Z")

</div>

Hallo @shop13,

das sieht mir nach einer Doctrine-Inkompatibilität mit PHP aus, siehe auch [Shopware Issuetracker](https://issues.shopware.com/issues/SW-23142)

Welche Shopware und PHP Version verwendest du gerade? Sind beide Versionen miteinander kompatibel?

Grüße  
Abdullah

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [24. Februar 2022 um 22:23 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/9 "2022-02-24T22:23:48Z")

</div>

Hallo,

das sieht nach einer falschen PHP Version aus - probier’ mal PHP 7.2

Viele Grüße

---

<div class="post-metadata">

**Author:** ![shop13](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shop13](https://forum.shopware.com/u/shop13)\
**Post date:** [26. Februar 2022 um 11:06 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/10 "2022-02-26T11:06:37Z")

</div>

Guten Morgen, erst mal danke für die Antworten. Ich hatte die PHP Version 7.2, habe jetzt aber auf 7.3 umgestellt. Leider ist die letzte Seite des Updates leer geblieben (weiße Seite).  
Wenn ich allerdings jetzt noch mal versuche die Atrribute zu generieren mit dem Befehl

bin/console sw:generate:attributes

Bekomme ich folgende Antwort:

In MappingException.php line 772:

The target-entity Shopware\Models\Attribute\Emotion cannot be found in ‚Sho  
pware\Models\Emotion\Emotion#attribute‘.

sw:generate:attributes

Ich habe vorher im Backend den Cache geleert, bei allen Punkten, und auch per Console ```  
sw:cache:clear  
Dabei habe ich auch folgende Beitrag gefunden:  
[LINK](https://forum.shopware.com/t/update-5-5-7-the-target-entity-shopware-models-attribute-shop-cannot-be-found-in-shopware-models/58988), aber der Fehler ist immer noch da. Hat noch jemand Rat?

LG

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [26. Februar 2022 um 11:37 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/11 "2022-02-26T11:37:18Z")

</div>

Hallo,

versuch nochmal nach Umstellung der PHP Version Deine Shop URL am Ende mit /recovery/update aufzurufen, ob das Update dann durchläuft.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![shop13](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shop13](https://forum.shopware.com/u/shop13)\
**Post date:** [26. Februar 2022 um 12:50 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/12 "2022-02-26T12:50:35Z")

</div>

> [@SCOOPEX](#):
>
> /recovery/update

Guten Morgen, also ich abe jetzt noch mal versucht von 5.5.10 auf 5.6.2 zu updaten.  
PHP Version ist bei 7.3.  
Auf der letzten Seite zeigt er jetzt folgendes:

# Slim Application Error

The application could not run because of the following error:

## Details

**Type:** Doctrine\ORM\Mapping\MappingException

**Message:** The target-entity Shopware\Models\Attribute\Emotion cannot be found in ‚Shopware\Models\Emotion\Emotion#attribute‘.

**File:** /kunden/387923\_45141/webhost/K442778/T104275/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php

**Line:** 772

Den Cache habe ich per Console geleert  
ohne Erfolg  
Cache im Backend geleert, dabei alles angewählt  
ohne erfolg  
shopware/var/cache/production\_201909250854 gelöscht  
ohne erfolg  
die foreign key reperatur für 5.6.2 durchgeführt  
ohne erfolg  
danach per console noch mal sw:generate:attributes abgesetzt:  
In MappingException.php line 772:

The target-entity Shopware\Models\Attribute\Emotion cannot be found in ‚Sho  
pware\Models\Emotion\Emotion#attribute‘.

Wenn ich die URL lade, dann kommt da die Fehlermeldung:  
**Fatal error** : Uncaught Doctrine\ORM\Mapping\MappingException: The target-entity Shopware\Models\Attribute\Emotion cannot be found in ‚Shopware\Models\Emotion\Emotion#attribute‘…

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [2. März 2022 um 20:33 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/13 "2022-03-02T20:33:07Z")

</div>

Hallo @shop13,

könntest du in der Datenbank einmal überprüfen, ob die Tabelle s\_emotion\_attributes vorhanden ist?

vg

---

<div class="post-metadata">

**Author:** ![shop13](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shop13](https://forum.shopware.com/u/shop13)\
**Post date:** [5. März 2022 um 08:49 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/14 "2022-03-05T08:49:17Z")

</div>

Guten Morgen, ja die s\_emotion\_attributes ist vorhanden. Sie hat allerdings keinen Datensatz. Habe die heute mal gelöscht und neu erstellt, ohne Auswirkung.

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [7. März 2022 um 17:38 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/15 "2022-03-07T17:38:15Z")

</div>

Hallo @shop13,

Normalerweise sollte zu jeder s\_emotion ein entsprechender Eintrag in s\_emotion\_attributes sein.  
Ob dies jedoch zu dem auftretenden Fehler führt, kann ich nicht sagen.

Wenn die Tabelle vorhanden ist, wüsste ich jetzt von der Ferne auch nicht mehr weiter, warum der Fehler auftreten sollte.

vg

---

<div class="post-metadata">

**Author:** ![shop13](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shop13](https://forum.shopware.com/u/shop13)\
**Post date:** [13. April 2022 um 16:47 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/16 "2022-04-13T16:47:08Z")

</div>

Guten Abend, die Lösung war, es gab im Ordner /engine/shopware/emotion eine Datei Ladingpage. Die habe ich entfernt, danach lief alles. Vielen Dank für die Unterstützung.

---

<div class="post-metadata">

**Author:** ![Joscha\_Schultze](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Joscha\_Schultze](https://forum.shopware.com/u/Joscha_Schultze)\
**Post date:** [6. Oktober 2023 um 07:23 UTC](https://forum.shopware.com/t/tod-nach-update-auf-5-5-7/58459/17 "2023-10-06T07:23:02Z")

</div>

Tatsächlich gab es bei einem Kunden von mir ein ähnliches Problem. Da die Lösung nicht ganz 100% korrekt ist, hier nochmal genauer:

in engine/Shopware/Models/Emotion/ die Datei Landingpage.php löschen (vorher sichern) hat den Fehler beseitigt.
