Hi,
ich bekomme momentan nach testweisem Ausfüllen eine Formulars mit Newsletteranmeldung folgende Fehlermeldung:
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 '-Mail, Telefon, Nachricht, Newsletter) VALUES (1426973054, 'Me', 'mail@meine-mai' at line 1 (INSERT INTO tl_newsletter_recipients (tstamp, Name, E-Mail, Telefon, Nachricht, Newsletter) VALUES (1426973054, 'Me', 'mail@meine-mail.de', '012345679', 'Hallo', 'Newsletter')) thrown in system/modules/core/library/Contao/Database/Statement.php on line 297
#0 system/modules/core/library/Contao/Database/Statement.php(266): Contao\Database\Statement->query()
#1 system/modules/core/forms/Form.php(478): Contao\Database\Statement->execute()
#2 system/modules/core/forms/Form.php(230): Contao\Form->processFormData(Array, Array)
#3 system/modules/core/classes/Hybrid.php(228): Contao\Form->compile()
#4 system/modules/core/forms/Form.php(68): Contao\Hybrid->generate()
#5 system/modules/core/library/Contao/Controller.php(473): Contao\Form->generate()
#6 system/modules/core/modules/ModuleArticle.php(196): Contao\Controller::getContentElement(Object(Contao \ContentModel), 'main')
#7 system/modules/core/modules/Module.php(163): Contao\ModuleArticle->compile()
#8 system/modules/core/modules/ModuleArticle.php(59): Contao\Module->generate()
#9 system/modules/core/library/Contao/Controller.php(409): Contao\ModuleArticle->generate(false)
#10 system/modules/core/library/Contao/Controller.php(273): Contao\Controller::getArticle(Object(Contao\Articl eModel), true, false, 'main')
#11 system/modules/core/pages/PageRegular.php(138): Contao\Controller::getFrontendModule('0', 'main')
#12 system/modules/core/controllers/FrontendIndex.php(253): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#13 index.php(22): Contao\FrontendIndex->run()
#14 {main}
Ich muss manuell in der Datenbank Felder anlegen, soviel weiß ich. Doch wie müssen die konfiguriert sein, damit es funktionert? Die ersten eigenen Versuche waren erfolglos.
VG
Michael
Lesezeichen