# MappingException bei Übertragung auf neuen Server

**URL:** <https://forum.shopware.com/t/mappingexception-bei-uebertragung-auf-neuen-server/86419>\
**Category:** Shopware 5\
**Created:** [23. März 2021 um 21:51 UTC](https://forum.shopware.com/t/mappingexception-bei-uebertragung-auf-neuen-server/86419 "2021-03-23T21:51:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pherczeg89](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@pherczeg89](https://forum.shopware.com/u/pherczeg89)\
**Post date:** [23. März 2021 um 21:51 UTC](https://forum.shopware.com/t/mappingexception-bei-uebertragung-auf-neuen-server/86419/1 "2021-03-23T21:51:23Z")

</div>

Hallo,

wir sind dabei, unsere Shopware auf einen neuen vServer zu übertragen. Zuerst werde ich eine exakte Kopie auf eine temporäre Domain erstellen. Ich bin den Schritten gefolgt: zuerst habe ich alle Dateien an den neuen Ort kopiert und auch die gesamte Datenbank exportiert. Ich habe den Eintrag in der Tabelle s\_core\_shops geändert. Wenn ich nun versuche, die Site zu öffnen, erhalte ich diese Meldung:

`Fatal error: Uncaught Doctrine\ORM\Mapping\MappingException: The target-entity Shopware\Models\Attribute\Shop cannot be found in 'Shopware\Models\Shop\Shop#attribute'. in /var/www/vhosts/MYTESTDOMAIN/httpdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:772 Stack trace: #0 /var/www/vhosts/MYTESTDOMAIN/httpdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1032): Doctrine\ORM\Mapping\MappingException::invalidTargetEntityClass('Shopware\\Models...', 'Shopware\\Models...', 'attribute') #1 /var/www/vhosts/MYTESTDOMAIN/httpdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(266): Doctrine\ORM\Mapping\ClassMetadataInfo->validateAssociations() #2 /var/www/vhosts/MYTESTDOMAIN/httpdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(245): Doctrine\ORM\Mapping\ClassMetadataFactory->validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NUL in /var/www/vhosts/MYTESTDOMAIN/httpdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php on line 772`  
Ich habe bereits eine Testumgebung auf meinem lokalen Rechner erstellt und es hat reibungslos funktioniert. Unsere Shopware Version ist 5.3.6.  
Die PHP-Version des aktuellen Server ist 5.6.24  
Neu PHP: 7.4.16  
Wo liegt das Problem?

---

<div class="post-metadata">

**Author:** ![Arvien](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@Arvien](https://forum.shopware.com/u/Arvien)\
**Post date:** [21. Juni 2023 um 14:43 UTC](https://forum.shopware.com/t/mappingexception-bei-uebertragung-auf-neuen-server/86419/2 "2023-06-21T14:43:52Z")

</div>

Habt ihr eine Lösung gefunden? Auch wir haben das gleiche Problem nach Migration auf einem neuen Managed Server.
