# Captcha funktioniert im Formular nicht

**URL:** <https://forum.shopware.com/t/captcha-funktioniert-im-formular-nicht/34497>\
**Category:** Allgemein\
**Created:** [15. Februar 2016 um 15:31 UTC](https://forum.shopware.com/t/captcha-funktioniert-im-formular-nicht/34497 "2016-02-15T15:31:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erzshop](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@erzshop](https://forum.shopware.com/u/erzshop)\
**Post date:** [15. Februar 2016 um 15:31 UTC](https://forum.shopware.com/t/captcha-funktioniert-im-formular-nicht/34497/1 "2016-02-15T15:31:32Z")

</div>

Nach dem Update von Shopware 4.3.2 auf 5.1.2 habe ich folgendes Problem bei den Formularen (Kontakt, Empfehlen u.s.w.):

Egal was man für einen Captcha-Wert ins Formularfeld eingibt, es erfolgt keine Prüfung der Eingabe&nbsp;auf Korrektheit. Beim falschen und auch bei einem korrekten Wert kommt nach dem Absenden die Fehlermeldung “Ups! Ein Fehler ist aufgetreten!”. Bei einem falschen Captcha-Wert sollte normalerweise im Formular oben die rote Fehlermeldung “Bitte füllen Sie alle rot markierten Felder aus.” erscheinen. Das tut es jedoch nicht bei meiner Installation. Es kommt stehts das “Ups” und es erfolgt kein Versand des ausgefüllten&nbsp;Formular.

Kennt jemand dieses Verhalten?

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [15. Februar 2016 um 15:33 UTC](https://forum.shopware.com/t/captcha-funktioniert-im-formular-nicht/34497/2 "2016-02-15T15:33:23Z")

</div>

Welches Formular? Standard oder Plugin? Ggf liegts an veralteter Validierung z.b. Emailfeld

---

<div class="post-metadata">

**Author:** ![erzshop](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@erzshop](https://forum.shopware.com/u/erzshop)\
**Post date:** [15. Februar 2016 um 15:40 UTC](https://forum.shopware.com/t/captcha-funktioniert-im-formular-nicht/34497/3 "2016-02-15T15:40:36Z")

</div>

Es geht im die Standard-Formulare von Shopware. Was genau meinst du mit „veraltete Validierung“? Wie sieht eine neue Validierung aus?

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [15. Februar 2016 um 16:06 UTC](https://forum.shopware.com/t/captcha-funktioniert-im-formular-nicht/34497/4 "2016-02-15T16:06:47Z")

</div>

Das wäre jetzt nur wenn du es in einem Plugin hättest. Hieran wird es wohl nicht liegen.

alte Validierung: &nbsp;$validator = new Zend\_Validate\_EmailAddress();  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;  
neue Validierung: $validator = Shopware()-\>Container()-\>get(‚validator.email‘);
