No mapping found for field 'customerGroup'

Bekomme plötzlich folgende Fehlermeldung Der Shop ist bis jetzt einwandfrei gelaufen. Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. No mapping found for field ‚customerGroup‘ on class ‚Shopware\Models\Attribute\CustomerGroup‘. in Doctrine/ORM/Mapping/MappingException.php on line 78 Stack trace: #0 Doctrine/ORM/Mapping/ClassMetadataInfo.php(961): Doctrine\ORM\Mapping\MappingException::mappingNotFound('Shopware\Models...', 'customerGroup') #1 Doctrine/ORM/Persisters/BasicEntityPersister.php(1051): Doctrine\ORM\Mapping\ClassMetadataInfo-\>getAssociationMapping('customerGroup') #2 Doctrine/ORM/Persisters/BasicEntityPersister.php(921): Doctrine\ORM\Persisters\BasicEntityPersister-\>\_getSelectColumnListSQL() #3 Doctrine/ORM/Persisters/BasicEntityPersister.php(606): Doctrine\ORM\Persisters\BasicEntityPersister-\>\_getSelectEntitiesSQL(Array, NULL, 0, NULL) #4 cache/doctrine/proxies/201308121426\_\_CG\_\_ShopwareModelsCustomerGroup.php(31): Doctrine\ORM\Persisters\BasicEntityPersister-\>load(Array, Object(Shopware\Proxies\_\_CG\_\_\Shopware\Models\Customer\Group)) #5 cache/doctrine/proxies/201308121426\_\_CG\_\_ShopwareModelsCustomerGroup.php(62): Shopware\Proxies\_\_CG\_\_\Shopware\Models\Customer\Group-\>\_\_load() #6 Shopware/Models/Shop/Shop.php(652): Shopware\Proxies\_\_CG\_\_\Shopware\Models\Customer\Group-\>getKey() #7 Shopware/Plugins/Default/Core/HttpCache/Bootstrap.php(303): Shopware\Models\Shop\Shop-\>get('defaultcustomer...') #8 Shopware/Plugins/Default/Core/HttpCache/Bootstrap.php(249): Shopware\_Plugins\_Core\_HttpCache\_Bootstrap-\>setNoCacheCookie() #9 Enlight/Event/Handler/Plugin.php(149): Shopware\_Plugins\_Core\_HttpCache\_Bootstrap-\>onPreDispatch(Object(Enlight\_Event\_EventArgs)) #10 Enlight/Event/EventManager.php(165): Enlight\_Event\_Handler\_Plugin-\>execute(Object(Enlight\_Event\_EventArgs)) #11 Enlight/Controller/Action.php(128): Enlight\_Event\_EventManager-\>notify('Enlight\_Control...', Array) #12 Enlight/Controller/Dispatcher/Default.php(521): Enlight\_Controller\_Action-\>dispatch('indexAction') #13 Enlight/Controller/Front.php(214): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #14 Shopware/Components/HttpCache/HttpKernel.php(79): Enlight\_Controller\_Front-\>dispatch() #15 Symfony/Component/HttpKernel/HttpCache/HttpCache.php(434): Shopware\Components\HttpCache\HttpKernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 Shopware/Components/HttpCache/AppCache.php(234): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #17 Symfony/Component/HttpKernel/HttpCache/HttpCache.php(403): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #18 Symfony/Component/HttpKernel/HttpCache/HttpCache.php(303): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>fetch(Object(Symfony\Component\HttpFoundation\Request), true) #19 Shopware/Components/HttpCache/AppCache.php(158): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true) #20 Symfony/Component/HttpKernel/HttpCache/HttpCache.php(192): Shopware\Components\HttpCache\AppCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true) #21 Shopware/Components/HttpCache/AppCache.php(110): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 Shopware/Bootstrap.php(70): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #23 Enlight/Application.php(192): Shopware\_Bootstrap-\>run() #24 shopware.php(83): Enlight\_Application-\>run() #25 {main} Wer könnte mir hier bitte helfen? Besten Dank schon einmal im Vorraus -------------------------------------------- Nachtrag: So wie es aussieht hat es was mit den Kunden zu tun! Sobald ich ein Bestandskunde bearbeiten will oder neu anlegen, kommt folgende Fehlermeldung im Backend: Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xxx\_xxx.s\_user\_shippingaddress\_attributes' doesn't exist in Doctrine/DBAL/Connection.php on line 633 Stack trace: #0 Doctrine/DBAL/Connection.php(633): PDO-\>query('SELECT s0\_.lang...') #1 Doctrine/ORM/Query/Exec/SingleSelectExecutor.php(46): Doctrine\DBAL\Connection-\>executeQuery('SELECT s0\_.lang...', Array, Array, NULL) #2 Doctrine/ORM/Query.php(260): Doctrine\ORM\Query\Exec\SingleSelectExecutor-\>execute(Object(Doctrine\DBAL\Connection), Array, Array) #3 Doctrine/ORM/AbstractQuery.php(595): Doctrine\ORM\Query-\>\_doExecute() #4 Doctrine/ORM/AbstractQuery.php(456): Doctrine\ORM\AbstractQuery-\>execute(Array, 2) #5 Shopware/Controllers/Backend/Customer.php(569): Doctrine\ORM\AbstractQuery-\>getOneOrNullResult(2) #6 Shopware/Controllers/Backend/Customer.php(312): Shopware\_Controllers\_Backend\_Customer-\>getCustomer('64') #7 Enlight/Controller/Action.php(148): Shopware\_Controllers\_Backend\_Customer-\>getDetailAction() #8 Enlight/Controller/Dispatcher/Default.php(521): Enlight\_Controller\_Action-\>dispatch('getDetailAction') #9 Enlight/Controller/Front.php(214): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #10 Shopware/Components/HttpCache/HttpKernel.php(79): Enlight\_Controller\_Front-\>dispatch() #11 Symfony/Component/HttpKernel/HttpCache/HttpCache.php(434): Shopware\Components\HttpCache\HttpKernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 Shopware/Components/HttpCache/AppCache.php(234): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #13 Symfony/Component/HttpKernel/HttpCache/HttpCache.php(230): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #14 Shopware/Components/HttpCache/AppCache.php(99): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #15 Shopware/Bootstrap.php(70): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #16 Enlight/Application.php(192): Shopware\_Bootstrap-\>run() #17 shopware.php(83): Enlight\_Application-\>run() #18 {main}  --------------------------------------------- So wie es aussieht liegt es an den Foreign Keys… Mit der Wiki Anleitung komme ich nicht weiter. Richtigerweise kommt die Meldung zu einer korrupten Datei wie beschrieben. Mit dem Ausführen von: DELETE FROM s\_order\_basket\_attributes WHERE basketID NOT IN ( SELECT id FROM s\_order\_basket ); erhalte ich die Rückmeldung das 0 Datensätze gelöscht wurden? -------------------------------------------- Nachtrag: Durch ettliche korrupte Dateien in der Datenbank ist mir nur ein Weg geblieben, Neuinstallation. Das System wurde von der Version 4.0.6 bis 4.1.2 immer per Update durchgefürt. Denke das hier einiges in der Datenbank schiefgegangen ist und das nicht mehr sauber zu lösen ist. ebenso bestanden schon ein paar Fehler in der übernommenen 4.0.6 Version. Somit ist und war es der Beste Weg ohne hier noch weiter Zeit in die Fehlersuche zu investieren.

Hab den Fehler jetzt auch in einer Test-Umgebung, nachdem ich ein Plugin deaktiviert habe! Alle Caches usw. sind natürlich gelöscht … woran kann das liegen?

Was total verrückt ist: Die automatisch generierte Datei unter cache/doctrine/attributes/CustomerGroup.php ist unvollständig und kürzer als die Version des live-Systems! Was ist denn die Basis, worauf diese generiert werden?