Hallo Freunde....
ich hatte ja am Anfang Shopware gleich geliebt weil alles so einfach und selbsterklärend war. Leider wurde durch den Kundenimport von einem alten Oxid alles erschwert.
Nun hatte ich alles bereits wieder am Laufen, da hab ich zufällig mal die Bestellungen angesehen, und wollte bei einer meiner Testbestellung den Status ändern.
Ich hatte dabei einen Fehler und sah, dass quasi fehlerhafte Testbestellungen das Problem verursachten, weil, ich glaube, die IDs nicht mehr zusammenpassten.
Mit viel Glück und Geschick hab ich das händisch ausmerzen können, und dachte mir meine Probleme wären wieder gelöst.
Jetzt funktionier allerdings der normale Kundenlogin und die Registrierung nicht mehr. Ich muss auch sagen, dass ich alte Testaccounts drinnen hatte und ein Duplikat, und ich befürchte ich habe das nicht richtig entfernt. Weil mir jetzt bei Login (1) und bei Registrierung (2) das ausgeworfen wird.... ich bin am verzweifeln wenn ich jetzt nochmal den ganzen Shop mit den übernommenen 270 Kunden neu aufsetzen muss, vor allem würd ich dadurch ja die anderen Probleme wieder "mitimportieren" mit der Datenbank. Wie kann ich meine Kundendatensätze "reparieren"?
Hab einen Userkommentar dazu gesehen, aber der war ziemlich komplex und unsicher denk ich.
No mapping found for field 'customerAddress' on class 'Shopware\Models\Attribute\CustomerAddress'. in vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php on line 163
Stack trace:
#0 vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1238): Doctrine\ORM\Mapping\MappingException::mappingNotFound('Shopware\\Models...', 'customerAddress')
#1 engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(1287): Doctrine\ORM\Mapping\ClassMetadataInfo->getAssociationMapping('customerAddress')
#2 engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(1100): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getSelectColumnsSQL()
#3 engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(740): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getSelectSQL(Array, NULL, NULL, NULL, NULL, NULL)
#4 engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(760): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(Array, Object(Shopware\Proxies\__CG__\Shopware\Models\Customer\Address))
#5 vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/ProxyFactory.php(187): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById(Array, Object(Shopware\Proxies\__CG__\Shopware\Models\Customer\Address))
#6 var/cache/production_201610051330/doctrine/proxies/__CG__ShopwareModelsCustomerAddress.php(108): Doctrine\ORM\Proxy\ProxyFactory->Doctrine\ORM\Proxy\{closure}(Object(Shopware\Proxies\__CG__\Shopware\Models\Customer\Address), '__load', Array)
#7 var/cache/production_201610051330/doctrine/proxies/__CG__ShopwareModelsCustomerAddress.php(108): Closure->__invoke(Object(Shopware\Proxies\__CG__\Shopware\Models\Customer\Address), '__load', Array)
#8 engine/Shopware/Components/Model/ModelManager.php(125): Shopware\Proxies\__CG__\Shopware\Models\Customer\Address->__load()
#9 engine/Shopware/Components/Model/ModelManager.php(178): Shopware\Components\Model\ModelManager->serializeEntity(Object(Shopware\Proxies\__CG__\Shopware\Models\Customer\Address))
#10 engine/Shopware/Core/sAdmin.php(1578): Shopware\Components\Model\ModelManager->toArray(Object(Shopware\Proxies\__CG__\Shopware\Models\Customer\Address))
#11 engine/Shopware/Core/sAdmin.php(3540): sAdmin->convertToLegacyAddressArray(Object(Shopware\Proxies\__CG__\Shopware\Models\Customer\Address))
#12 engine/Shopware/Core/sAdmin.php(1461): sAdmin->getUserBillingData('1', Array)
#13 engine/Shopware/Controllers/Frontend/Account.php(64): sAdmin->sGetUserData()
#14 engine/Library/Enlight/Controller/Action.php(150): Shopware_Controllers_Frontend_Account->preDispatch()
#15 engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight_Controller_Action->dispatch('loginAction')
#16 engine/Library/Enlight/Controller/Front.php(223): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#17 engine/Shopware/Kernel.php(177): Enlight_Controller_Front->dispatch()
#18 vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel->handle(Object(Enlight_Controller_Request_RequestHttp), 1, true)
#19 engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#20 vendor/symfony/http-kernel/HttpCache/HttpCache.php(444): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#21 vendor/symfony/http-kernel/HttpCache/HttpCache.php(344): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)
#22 engine/Shopware/Components/HttpCache/AppCache.php(178): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#23 vendor/symfony/http-kernel/HttpCache/HttpCache.php(210): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#24 engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 shopware.php(113): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#26 {main}
Fatal error: Uncaught Error: Call to undefined method Shopware\Models\Attribute\CustomerAddress::setCustomerAddress() in /home/.sites/116/site2838013/web/webshop/engine/Shopware/Components/Model/ModelEntity.php:108 Stack trace: #0 /home/.sites/116/site2838013/web/webshop/engine/Shopware/Models/Customer/Address.php(441): Shopware\Components\Model\ModelEntity->setOneToOne(Object(Shopware\Models\Attribute\CustomerAddress), '\\Shopware\\Model...', 'attribute', 'customerAddress') #1 /home/.sites/116/site2838013/web/webshop/vendor/symfony/property-access/PropertyAccessor.php(605): Shopware\Models\Customer\Address->setAttribute(Object(Shopware\Models\Attribute\CustomerAddress)) #2 /home/.sites/116/site2838013/web/webshop/vendor/symfony/property-access/PropertyAccessor.php(201): Symfony\Component\PropertyAccess\PropertyAccessor->writeProperty(Array, 'attribute', Object(Shopware\Models\Attribute\CustomerAddress)) #3 /home/.sites/116/site2838013/web/webshop/vendor/symfony/form/Extension/Core/DataMapper/PropertyPathMapper.php(93): S in /home/.sites/116/site2838013/web/webshop/engine/Shopware/Components/Model/ModelEntity.php on line 108 503 Service Unavailable