Update von 5.5.10 auf 5.6.1 - No mapping found for field ´shop´ - Hilfe

 

Hallo zusammen,

ich versuche auf die aktuelle Version von Shopware 5 upzudaten… aber am Schluss scheitert es immer wieder an dieser Fehlermeldung:

 

Slim Application Error

Details

Type: Doctrine\ORM\Mapping\MappingException

Message: No mapping found for field ‚shop‘ on class ‚Shopware\Models\Attribute\Shop‘.

File: /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php

Line: 163

Trace

 

#0 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1256): Doctrine\ORM\Mapping\MappingException::mappingNotFound(‚Shopware\Models…‘, ‚shop‘)

#1 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(446): Doctrine\ORM\Mapping\ClassMetadataInfo->getAssociationMapping(‚shop‘)

#2 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(2708): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToOneEntity(Array, Object(Shopware\Models\Shop\Shop))

#3 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(271): Doctrine\ORM\UnitOfWork->createEntity(‚Shopware\Models…‘, Array, Array)

#4 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(492): Doctrine\ORM\Internal\Hydration\ObjectHydrator->getEntity(Array, ‚shop‘)

#5 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(162): Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateRowData(Array, Array)

#6 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(152): Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateAllData()

#7 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(976): Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll(Object(PDOStatement), Object(Doctrine\ORM\Query\ResultSetMapping), Array)

#8 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(922): Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(NULL, NULL)

#9 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(765): Doctrine\ORM\AbstractQuery->execute(NULL, NULL)

#10 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Models/Shop/Repository.php(296): Doctrine\ORM\AbstractQuery->getOneOrNullResult()

#11 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Bundle/MediaBundle/MediaService.php(302): Shopware\Models\Shop\Repository->getActiveDefault()

#12 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Bundle/MediaBundle/MediaService.php(74): Shopware\Bundle\MediaBundle\MediaService->createFallbackMediaUrl()

#13 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Bundle/MediaBundle/MediaServiceFactory.php(83): Shopware\Bundle\MediaBundle\MediaService->__construct(Object(League\Flysystem\Filesystem), Object(Shopware\Bundle\MediaBundle\Strategy\Md5Strategy), Object(ShopwareProductioneaaeb247efc16a467dba3edf3216a8c5656c4674ProjectContainer), Array)

#14 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/var/cache/production_201908270823/proxies/ShopwareProductioneaaeb247efc16a467dba3edf3216a8c5656c4674ProjectContainer.php(4175): Shopware\Bundle\MediaBundle\MediaServiceFactory->factory(‚local‘)

#15 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/symfony/dependency-injection/Container.php(306): ShopwareProductioneaaeb247efc16a467dba3edf3216a8c5656c4674ProjectContainer->getShopwareMedia_MediaServiceService()

#16 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Components/DependencyInjection/Container.php(218): Symfony\Component\DependencyInjection\Container->get(‚shopware_media…‘, 1)

#17 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Components/DependencyInjection/Container.php(140): Shopware\Components\DependencyInjection\Container->doLoad(‚shopware_media…‘, ‚shopware_media…‘, 1)

#18 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/var/cache/production_201908270823/proxies/ShopwareProductioneaaeb247efc16a467dba3edf3216a8c5656c4674ProjectContainer.php(5373): Shopware\Components\DependencyInjection\Container->get(‚shopware_media…‘)

#19 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/symfony/dependency-injection/Container.php(306): ShopwareProductioneaaeb247efc16a467dba3edf3216a8c5656c4674ProjectContainer->getThemeServiceService()

#20 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Components/DependencyInjection/Container.php(218): Symfony\Component\DependencyInjection\Container->get(‚theme_service‘, 1)

#21 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Components/DependencyInjection/Container.php(140): Shopware\Components\DependencyInjection\Container->doLoad(‚theme_service‘, ‚theme_service‘, 1)

#22 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/var/cache/production_201908270823/proxies/ShopwareProductioneaaeb247efc16a467dba3edf3216a8c5656c4674ProjectContainer.php(5365): Shopware\Components\DependencyInjection\Container->get(‚theme_service‘)

#23 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/vendor/symfony/dependency-injection/Container.php(306): ShopwareProductioneaaeb247efc16a467dba3edf3216a8c5656c4674ProjectContainer->getThemeInstallerService()

#24 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Components/DependencyInjection/Container.php(218): Symfony\Component\DependencyInjection\Container->get(‚theme_installer‘, 1)

#25 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/engine/Shopware/Components/DependencyInjection/Container.php(140): Shopware\Components\DependencyInjection\Container->doLoad(‚theme_installer‘, ‚theme_installer‘, 1)

#26 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/update/src/DependencyInjection/Container.php(189): Shopware\Components\DependencyInjection\Container->get(‚theme_installer‘)

#27 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(118): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))

#28 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/common/src/DependencyInjection/Container.php(71): Pimple\Container->offsetGet(‚shopware.theme_…‘)

#29 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/update/src/app.php(169): Shopware\Recovery\Common\DependencyInjection\Container->get(‚shopware.theme_…‘)

#30 [internal function]: {closure}()

#31 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/common/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)

#32 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/common/vendor/slim/slim/Slim/Slim.php(1355): Slim\Route->dispatch()

#33 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()

#34 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()

#35 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()

#36 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/common/vendor/slim/slim/Slim/Slim.php(1300): Slim\Middleware\PrettyExceptions->call()

#37 /var/www/vhosts/h46066.server18.configcenter.info/httpdocs/shop/recovery/update/index.php(57): Slim\Slim->run()

#38 {main}

 

Ich hab schon das mit diesen „repairForeignKeys“ probiert und es tut sich nicht.

 

Ich hab auch schon versucht den Ordner „production_…“ unter var/cache manuell zu löschen, aber ebenfalls keine Chance.

 

Weiß jemand wie man mit diesen Fehler umgeht?

 

Lg

 

 

 

Hallo Memaddalena,

ich habe gerade versucht, ein Update zu machen und habe exakt die gleiche Fehlermeldung erhalten.

Hast Du das Problem lösen können und weißt Du noch, wie?

LG

Mike

Hallo, 

nach einem Serverumzug bekomme ich auch diese Fehlermeldung. Gibt es da schon eine Lösung? 

Danke und LG

Hallo,
ich habe auch die gleiche Fehlermeldung nach einem Serverumzug. weiß niemand Rat?

kann es an php-extensions liegen? Der Shop läuft auf dem bisherigen Server wunderbar. Nur ist ein umzug notwendig. Dort möchte ich ihn lauffähig machen und dann die Domain umziehen.

Leider weiß ich nicht mehr wie ich das genau gelöst habe - ich habe sehr viel rumprobiert und letztendlich einige Vergleiche gemacht zwischen den einen „kaputten“ Shopware-Shop und anderen Shops, wo die Aktualisierung erfolgreich funktionierte.

Wenn mich nicht alles täuscht gabe es Veränderungen in der Datenbank - aber ich bin mir leider nicht mehr sicher.