Das ist korrekt. Die Validierung ist jedoch deaktiviert und selbst wenn ich das Formular auf ein einziges Namensfeld begrenze, kommt derselbe Fehler. Mit GET kommt kein Fehler, die Mail kommt dennoch nicht an.
EDIT: Es kommt ein anderer Fehler mit validen Daten; Mit validen Daten wird die Mail immerhin ausgeliefert:
Code:
[02-Feb-2015 09:10:20 GMT] PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-plz, telefon, wunschgebiet, email, nachricht) VALUES (1422868220, 'Hans Peter',' at line 1 (INSERT INTO tl_comments (tstamp, name, ort-plz, telefon, wunschgebiet, email, nachricht) VALUES (1422868220, 'Hans Peter', '12345 Musterstadt', '0123456789', 'Mustergebiet', 'test@testmail.com', 'Testnachricht, Testnachricht Lorem Ipsum'))' thrown in /www/htdocs/w00e31a6/ps3/system/modules/core/library/Contao/Database/Statement.php on line 297
#0 /www/htdocs/w00e31a6/ps3/system/modules/core/library/Contao/Database/Statement.php(266): Contao\Database\Statement->query()
#1 /www/htdocs/w00e31a6/ps3/system/modules/core/forms/Form.php(478): Contao\Database\Statement->execute()
#2 /www/htdocs/w00e31a6/ps3/system/modules/core/forms/Form.php(230): Contao\Form->processFormData(Array, Array)
#3 /www/htdocs/w00e31a6/ps3/system/modules/core/classes/Hybrid.php(228): Contao\Form->compile()
#4 /www/htdocs/w00e31a6/ps3/system/modules/core/forms/Form.php(68): Contao\Hybrid->generate()
#5 /www/htdocs/w00e31a6/ps3/system/modules/core/library/Contao/Controller.php(473): Contao\Form->generate()
#6 /www/htdocs/w00e31a6/ps3/system/modules/core/modules/ModuleArticle.php(196): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#7 /www/htdocs/w00e31a6/ps3/system/modules/core/modules/Module.php(163): Contao\ModuleArticle->compile()
#8 /www/htdocs/w00e31a6/ps3/system/modules/core/modules/ModuleArticle.php(59): Contao\Module->generate()
#9 /www/htdocs/w00e31a6/ps3/system/modules/core/library/Contao/Controller.php(409): Contao\ModuleArticle->generate(false)
#10 /www/htdocs/w00e31a6/ps3/system/modules/core/library/Contao/Controller.php(273): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#11 /www/htdocs/w00e31a6/ps3/system/modules/core/pages/PageRegular.php(138): Contao\Controller::getFrontendModule('0', 'main')
#12 /www/htdocs/w00e31a6/ps3/system/modules/core/controllers/FrontendIndex.php(253): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#13 /www/htdocs/w00e31a6/ps3/index.php(22): Contao\FrontendIndex->run()
#14 {main}
EDIT: Ich habe die automatische DB Speicherung ausgestellt. Es kommt jetzt keine Fehlermeldung mehr, wenn man valide Daten eingibt. Ich habe jedoch bei keinem einzelnen Feld eine Überprüfung der Daten eingestellt. Das Formular soll aber in jedem Fall versandt werden und das ohne Fehlermeldung.
Lesezeichen