# Kundenlogin führt zu "Fatal error!

**URL:** <https://forum.shopware.com/t/kundenlogin-fuhrt-zu-fatal-error/64321>\
**Category:** Administration\
**Created:** [28. Januar 2020 um 18:07 UTC](https://forum.shopware.com/t/kundenlogin-fuhrt-zu-fatal-error/64321 "2020-01-28T18:07:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvpuser\_amg](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@mvpuser\_amg](https://forum.shopware.com/u/mvpuser_amg)\
**Post date:** [28. Januar 2020 um 18:07 UTC](https://forum.shopware.com/t/kundenlogin-fuhrt-zu-fatal-error/64321/1 "2020-01-28T18:07:52Z")

</div>

Hey Zusammen,

ich bin komplett neu in&nbsp;Shopware (VERSION 5.6.4) und habe direkt ein Problem:

**Fatal error** : Uncaught TypeError: Argument 1 passed to sAdmin::convertToLegacyAddressArray() must be an instance of Shopware\Models\Customer\Address, null given, called in /var/www/clients/client1/web17/web/engine/Shopware/Core/sAdmin.php on line 3879 and defined in /var/www/clients/client1/web17/web/engine/Shopware/Core/sAdmin.php:3460 Stack trace: #0 /var/www/clients/client1/web17/web/engine/Shopware/Core/sAdmin.php(3879): sAdmin-\>convertToLegacyAddressArray(NULL) #1 /var/www/clients/client1/web17/web/engine/Shopware/Core/sAdmin.php(1496): sAdmin-\>getUserBillingData(2, Array) #2 /var/www/clients/client1/web17/web/engine/Shopware/Core/sBasket.php(2006): sAdmin-\>sGetUserData() #3 /var/www/clients/client1/web17/web/engine/Shopware/Components/Cart/CartMigration.php(85): sBasket-\>sRefreshBasket() #4 /var/www/clients/client1/web17/web/engine/Shopware/Core/sAdmin.php(3258): Shopware\Components\Cart\CartMigration-\>migrate() #5 /var/www/clients/client1/web17/web/engine/Shopware/Core/sAdmin.php(843): sAdmin-\>loginUser(Array, 'pzei in&nbsp; **/var/www/clients/client1/web17/web/engine/Shopware/Core/sAdmin.php** &nbsp;on line&nbsp; **3460**

Dies passiert, sobald man versucht sich mit einem Kundenaccount anzumelden.  
Hat jemand eine Idee, was da sein könnte?&nbsp;

**Das hier kommt aus dem LOG :**

[2020-01-28 18:38:14] core.CRITICAL: Multiple non-persisted new entities were found through the given association graph: &nbsp; \* A new entity was found through the relationship ‚Shopware\Models\Customer\Customer#defaultBillingAddress‘ that was not configured to cascade persist operations for entity: Shopware\Models\Customer\Address@0000000042cf86090000000028440d5d. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={„persist“}). If you cannot find out which entity causes the problem implement ‚Shopware\Models\Customer\Address#\_\_toString()‘ to get a clue. &nbsp;\* A new entity was found through the relationship ‚Shopware\Models\Customer\Customer#defaultShippingAddress‘ that was not configured to cascade persist operations for entity: Shopware\Models\Customer\Address@0000000042cf860e0000000028440d5d. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={„persist“}). If you cannot find out which entity causes the problem implement ‚Shopware\Models\Customer\Address#\_\_toString()‘ to get a clue. {„uid“:„34ce74d“}  
[2020-01-28 18:38:14] core.CRITICAL: Multiple non-persisted new entities were found through the given association graph: &nbsp; \* A new entity was found through the relationship ‚Shopware\Models\Customer\Customer#defaultBillingAddress‘ that was not configured to cascade persist operations for entity: Shopware\Models\Customer\Address@0000000042cf86090000000028440d5d. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={„persist“}). If you cannot find out which entity causes the problem implement ‚Shopware\Models\Customer\Address#\_\_toString()‘ to get a clue. &nbsp;\* A new entity was found through the relationship ‚Shopware\Models\Customer\Customer#defaultShippingAddress‘ that was not configured to cascade persist operations for entity: Shopware\Models\Customer\Address@0000000042cf860e0000000028440d5d. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={„persist“}). If you cannot find out which entity causes the problem implement ‚Shopware\Models\Customer\Address#\_\_toString()‘ to get a clue. {„uid“:„34ce74d“}  
[2020-01-28 18:38:14] core.ERROR: Doctrine\ORM\ORMInvalidArgumentException: Multiple non-persisted new entities were found through the given association graph: &nbsp; \* A new entity was found through the relationship ‚Shopware\Models\Customer\Customer#defaultBillingAddress‘ that was not configured to cascade persist operations for entity: Shopware\Models\Customer\Address@0000000042cf86090000000028440d5d. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={„persist“}). If you cannot find out which entity causes the problem implement ‚Shopware\Models\Customer\Address#\_\_toString()‘ to get a clue. &nbsp;\* A new entity was found through the relationship ‚Shopware\Models\Customer\Customer#defaultShippingAddress‘ that was not configured to cascade persist operations for entity: Shopware\Models\Customer\Address@0000000042cf860e0000000028440d5d. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={„persist“}). If you cannot find out which entity causes the problem implement ‚Shopware\Models\Customer\Address#\_\_toString()‘ to get a clue. in /var/www/clients/client1/web17/web/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:105 Stack trace: #0 /var/www/clients/client1/web17/web/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(3445): Doctrine\ORM\ORMInvalidArgumentException::newEntitiesFoundThroughRelationships(Array) #1 /var/www/clients/client1/web17/web/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(364): Doctrine\ORM\UnitOfWork-\>assertThatThereAreNoUnintentionallyNonPersistedAssociations() #2 /var/www/clients/client1/web17/web/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(359): Doctrine\ORM\UnitOfWork-\>commit(NULL) #3 /var/www/clients/client1/web17/web/engine/Shopware/Controllers/Backend/Customer.php(380): Doctrine\ORM\EntityManager-\>flush() #4 /var/www/clients/client1/web17/web/engine/Library/Enlight/Controller/Action.php(192): Shopware\_Controllers\_Backend\_Customer-\>saveAction() #5 /var/www/clients/client1/web17/web/engine/Library/Enlight/Controller/Dispatcher/Default.php(478): Enlight\_Controller\_Action-\>dispatch(‚saveAction‘) #6 /var/www/clients/client1/web17/web/engine/Library/Enlight/Controller/Front.php(228): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #7 /var/www/clients/client1/web17/web/engine/Shopware/Kernel.php(186): Enlight\_Controller\_Front-\>dispatch() #8 /var/www/clients/client1/web17/web/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #9 /var/www/clients/client1/web17/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(447): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 /var/www/clients/client1/web17/web/engine/Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #11 /var/www/clients/client1/web17/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(238): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #12 /var/www/clients/client1/web17/web/engine/Shopware/Components/HttpCache/AppCache.php(99): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #13 /var/www/clients/client1/web17/web/shopware.php(122): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #14 {main} {„uid“:„34ce74d“}

Und ich sehe bei den Kunden:

- Standard Lieferadresse = NULL
- Standard Rechnungsadresse = NULL

&nbsp;

Vielen Dank euch!!  
VG, Patrick  
&nbsp;
