Hallo Leute,
ich habe hier noch einen alten Shopware 5.1.1 Shop, welche ich auf die aktuellste 5er Version updaten möchte.
Da dort noch PHP5.6 läuft, muss ich mit Zwischenschritten arbeiten.
Bisherige Versuche auf die Zwischenschritte 5.4 oder 5.2 zu updaten schlagen immer fehl.
Die folgende Fehlermeldung kommt immer, wenn man im Updatetool das Aufräumen aktiviert.
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\CustomerStream cannot be found in ‚Shopware\Models\CustomerStream\CustomerStream#attribute‘.
File: /var/www/web2715/html/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php
Line: 762
Trace
#0 /var/www/web2715/html/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1023): Doctrine\ORM\Mapping\MappingException::invalidTargetEntityClass(‚Shopware\Models…‘, ‚Shopware\Models…‘, ‚attribute‘)#1 /var/www/web2715/html/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(272): Doctrine\ORM\Mapping\ClassMetadataInfo->validateAssociations()#2 /var/www/web2715/html/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(251): Doctrine\ORM\Mapping\ClassMetadataFactory->validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL)#3 /var/www/web2715/html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(332): Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)#4 /var/www/web2715/html/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(78): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata(‚Shopware\Models…‘)#5 /var/www/web2715/html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(216): Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata(‚Shopware\Models…‘)#6 /var/www/web2715/html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(115): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor(‚Shopware\Models…‘)#7 /var/www/web2715/html/engine/Shopware/Components/Model/ModelManager.php(263): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata()#8 /var/www/web2715/html/engine/Shopware/Components/Model/ModelManager.php(247): Shopware\Components\Model\ModelManager->regenerateAttributeProxies(Array)#9 /var/www/web2715/html/engine/Shopware/Components/DependencyInjection/Bridge/Models.php(93): Shopware\Components\Model\ModelManager->generateAttributeModels()#10 /var/www/web2715/html/engine/Shopware/Components/DependencyInjection/Bridge/Models.php(81): Shopware\Components\DependencyInjection\Bridge\Models->generateAttributeModels(Object(Shopware\Components\Model\ModelManager))#11 /var/www/web2715/html/var/cache/production_201607011315/proxies/ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer.php(579): Shopware\Components\DependencyInjection\Bridge\Models->factory(Object(Doctrine\Common\EventManager), Object(Shopware\Components\Model\Configuration), Object(Enlight_Loader), Object(Doctrine\DBAL\Connection), Object(Doctrine\ORM\Mapping\Driver\AnnotationDriver))#12 /var/www/web2715/html/vendor/symfony/dependency-injection/Container.php(314): ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer->getModelsService()#13 /var/www/web2715/html/engine/Shopware/Components/DependencyInjection/Container.php(178): Symfony\Component\DependencyInjection\Container->get(‚models‘, 1)#14 /var/www/web2715/html/engine/Shopware/Components/DependencyInjection/Container.php(137): Shopware\Components\DependencyInjection\Container->doLoad(‚models‘, 1)#15 /var/www/web2715/html/recovery/update/src/DependencyInjection/Container.php(178): Shopware\Components\DependencyInjection\Container->get(‚models‘)#16 /var/www/web2715/html/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(113): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))#17 /var/www/web2715/html/recovery/update/src/DependencyInjection/Container.php(184): Pimple\Container->offsetGet(‚shopware.contai…‘)#18 /var/www/web2715/html/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(113): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))#19 /var/www/web2715/html/recovery/common/src/DependencyInjection/Container.php(80): Pimple\Container->offsetGet(‚shopware.theme_…‘)#20 /var/www/web2715/html/recovery/update/src/app.php(164): Shopware\Recovery\Common\DependencyInjection\Container->get(‚shopware.theme_…‘)#21 [internal function]: {closure}()#22 /var/www/web2715/html/recovery/common/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Object(Closure), Array)#23 /var/www/web2715/html/recovery/common/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()#24 /var/www/web2715/html/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()#25 /var/www/web2715/html/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()#26 /var/www/web2715/html/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()#27 /var/www/web2715/html/recovery/common/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()#28 /var/www/web2715/html/recovery/update/index.php(46): Slim\Slim->run()
#29 {main}
Anschließend ist der Shop nicht korrekt lauffähig und bringt beim Aufruf der Artikelübersiht z.B. dies hier:
Ups! An error has occurred! The following hints should help you. Type of association must be one of *_TO_ONE or MANY_TO_MANY in vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php on line 1028 Stack trace: #0 vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php(1155): Doctrine\ORM\Query\SqlWalker->walkJoinAssociationDeclaration(Object(Doctrine\ORM\Query\AST\JoinAssociationDeclaration), 3, NULL) #1 vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php(837): Doctrine\ORM\Query\SqlWalker->walkJoin(Object(Doctrine\ORM\Query\AST\Join)) #2 vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php(815): Doctrine\ORM\Query\SqlWalker->walkIdentificationVariableDeclaration(Object(Doctrine\ORM\Query\AST\IdentificationVariableDeclaration)) #3 vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php(522): Doctrine\ORM\Query\SqlWalker->walkFromClause(Object(Doctrine\ORM\Query\AST\FromClause)) #4 vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/CountOutputWalker.php(86): Doctrine\ORM\Query\SqlWalker->walkSelectStatement(Object(Doctrine\ORM\Query\AST\SelectStatement)) #5 vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php(42): Doctrine\ORM\Tools\Pagination\CountOutputWalker->walkSelectStatement(Object(Doctrine\ORM\Query\AST\SelectStatement)) #6 vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php(277): Doctrine\ORM\Query\Exec\SingleSelectExecutor->__construct(Object(Doctrine\ORM\Query\AST\SelectStatement), Object(Doctrine\ORM\Tools\Pagination\CountOutputWalker)) #7 vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(390): Doctrine\ORM\Query\SqlWalker->getExecutor(Object(Doctrine\ORM\Query\AST\SelectStatement)) #8 vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php(263): Doctrine\ORM\Query\Parser->parse() #9 vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php(123): Doctrine\ORM\Tools\Pagination\Paginator->getCountQuery() #10 engine/Shopware/Components/MultiEdit/Resource/Product/Filter.php(171): Doctrine\ORM\Tools\Pagination\Paginator->count() #11 engine/Shopware/Components/MultiEdit/Resource/Product/Filter.php(197): Shopware\Components\MultiEdit\Resource\Product\Filter-
Jemand eine Idee, was das Problem sein kann?