# Ajax Validierung der E-Mail und des Passworts schlägt mit 500er fehl

**URL:** https://forum.shopware.com/t/ajax-validierung-der-e-mail-und-des-passworts-schlagt-mit-500er-fehl/47065
**Category:** Allgemein
**Created:** [22. Juli 2017 um 20:18 UTC](https://forum.shopware.com/t/ajax-validierung-der-e-mail-und-des-passworts-schlagt-mit-500er-fehl/47065 "2017-07-22T20:18:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![timomayer](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@timomayer](https://forum.shopware.com/u/timomayer)
#### Post date: [22. Juli 2017 um 20:18 UTC](https://forum.shopware.com/t/ajax-validierung-der-e-mail-und-des-passworts-schlagt-mit-500er-fehl/47065/1 "2017-07-22T20:18:31Z")

</div>

Hallo,

seit einem Update von 5.2.21 auf 5.2.27 bekomme ich folgende Fehler bei der AJAX Validierung der Passwörter und E-Mail Adresse bei Neuanmeldungen:

Exception: DateTime::\_\_construct(): Failed to parse time string (NULL) at position 0 (N): The timezone could not be found in the database in /var/www/clients/client1/web1/web/var/cache/production\_201707131430/doctrine/attributes/Customer.php:153 Stack trace:  
#0 /var/www/clients/client1/web1/web/var/cache/production\_201707131430/doctrine/attributes/Customer.php(153): DateTime-\>\_\_construct(‚NULL‘)  
#1 /vendor/symfony/form/Extension/Core/Type/FormType.php(139): Shopware\Models\Attribute\Customer-\>\_\_construct()  
#2 /vendor/symfony/form/Form.php(607): Symfony\Component\Form\Extension\Core\Type\FormType-\>Symfony\Component\Form\Extension\Core\Type{closure}(Object(Symfony\Component\Form\Form), NULL)  
#3 /vendor/symfony/form/Form.php(567): Symfony\Component\Form\Form-\>submit(Array, true)  
#4 /engine/Shopware/Controllers/Frontend/Register.php(418): Symfony\Component\Form\Form-\>submit(Array)  
#5 /engine/Shopware/Controllers/Frontend/Register.php(111): Shopware\_Controllers\_Frontend\_Register-\>createCustomerForm(Array)  
#6 /var/www/clients/client1/web1/web/var/cache/production\_201707131430/proxies/ShopwareControllersFrontendRegisterProxy.php(6): Shopware\_Controllers\_Frontend\_Register-\>saveRegisterAction()  
#7 /engine/Library/Enlight/Hook/HookManager.php(186): Shopware\_Proxies\_ShopwareControllersFrontendRegisterProxy-\>executeParent(‚saveRegisterAct…‘, Array)  
#8 /var/www/clients/client1/web1/web/var/cache/production\_201707131430/proxies/ShopwareControllersFrontendRegisterProxy.php(17): Enlight\_Hook\_HookManager-\>executeHooks(Object(Shopware\_Proxies\_ShopwareControllersFrontendRegisterProxy), ‚saveRegisterAct…‘, Object(Enlight\_Hook\_HookArgs))  
#9 /engine/Library/Enlight/Controller/Action.php(159): Shopware\_Proxies\_ShopwareControllersFrontendRegisterProxy-\>saveRegisterAction()  
#10 /engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch(‚saveRegisterAct…‘)  
#11 /engine/Library/Enlight/Controller/Front.php(223): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp))  
#12 /engine/Shopware/Kernel.php(182): Enlight\_Controller\_Front-\>dispatch()  
#13 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(491): Shopware\Kernel-\>handle(Object(Enlight\_Controller\_Request\_RequestHttp), 1, true)  
#14 /engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)  
#15 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true)  
#16 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(275): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true)  
#17 /engine/Shopware/Components/HttpCache/AppCache.php(141): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true)  
#18 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(206): Shopware\Components\HttpCache\AppCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true)  
#19 /engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#20 /var/www/clients/client1/web1/web/shopware.php(117): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request))  
#21 {main}

Demzufolge kann sich leider kein neuer User aktuell anmelden ☹

Weiß jemand Hilfe dazu?

---

<div class="post-metadata">

### Author: ![AndreHerking](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/andreherking/32/7839_2.png) [@AndreHerking](https://forum.shopware.com/u/AndreHerking)
#### Post date: [24. Juli 2017 um 09:43 UTC](https://forum.shopware.com/t/ajax-validierung-der-e-mail-und-des-passworts-schlagt-mit-500er-fehl/47065/2 "2017-07-24T09:43:49Z")

</div>

Kannst du mal einen Ausschnitt aus der “/var/www/clients/client1/web1/web/var/cache/production\_201707131430/doctrine/attributes/Customer.php” posten, speziell Zeile 153. Ich habe die Vermutung das hier ein Fehler in der MySQL Datenbank vorliegt.

---

<div class="post-metadata">

### Author: ![timomayer](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@timomayer](https://forum.shopware.com/u/timomayer)
#### Post date: [25. Juli 2017 um 09:56 UTC](https://forum.shopware.com/t/ajax-validierung-der-e-mail-und-des-passworts-schlagt-mit-500er-fehl/47065/3 "2017-07-25T09:56:08Z")

</div>

Hi,

danke dir dein Eintrag hat mich bereits auf die richtige Fährte geschickt. Tatsächlich gab es in der customer\_attributes Tabelle noch Spalten eines uralt Plugins. Diese waren auf das Format Date eingestellt, der default Value war aber NULL. Das verursachte den Fehler. Ein Rätsel ist mir warum das erst nach dem Update von 5.2.21 auf 5.2.27 aufgetreten ist.
