Ergebnis 1 bis 9 von 9

Thema: Fehlermeldung beim Senden von Formularen

  1. #1
    Contao-Nutzer
    Registriert seit
    07.04.2016.
    Beiträge
    56

    Frage Fehlermeldung beim Senden von Formularen

    Hallo wenn man auf meiner Seite:

    http://www.goldenerschuh.grossneuhau...enverkauf.html

    die Bestellung abschickt kommt die 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 '+_PLZ, Straße, E-Mail, Telefon, Anzahl_Karten, Anzahl_Kinder, Bezahlung, Versan' at line 1 (INSERT INTO tl_comments (tstamp, Name, Vorname, Ort_+_PLZ, Straße, E-Mail, Telefon, Anzahl_Karten, Anzahl_Kinder, Bezahlung, Versandart) VALUES (1471450517, 'TEST', 'Test', '0000 Test', 'Test-Straße 97', 'test@test.net', '+49127258866', '2', '1', 'Vorkasse', 'Standard Versand im Brief (+1,00 €)')) thrown in system/modules/core/library/Contao/Database/Statement.php on line 295
    #0 system/modules/core/library/Contao/Database/Statement.php(264): Contao\Database\Statement->query()
    #1 system/modules/core/forms/Form.php(527): Contao\Database\Statement->execute()
    #2 system/modules/core/forms/Form.php(255): Contao\Form->processFormData(Array, Array, Array)
    #3 system/modules/core/classes/Hybrid.php(239): Contao\Form->compile()
    #4 system/modules/core/forms/Form.php(90): Contao\Hybrid->generate()
    #5 system/modules/core/library/Contao/Controller.php(484): Contao\Form->generate()
    #6 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao \ContentModel), 'main')
    #7 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
    #8 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
    #9 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
    #10 system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\Articl eModel), false, false, 'main')
    #11 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
    #12 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
    #13 index.php(20): Contao\FrontendIndex->run()
    #14 {main}

    Kann mir jemand sagen wo ich suchen muss?
    Vielen Dank im Voraus.

    Version 3.5.15
    MySQL 5.5 von 1&1

  2. #2
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.078
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Ort_+_PLZ?? Bin mir nicht 100% sicher, glaube aber nicht, dass ein '+' in einem Feldnamen verwendet werden darf.

  3. #3
    Contao-Nutzer
    Registriert seit
    07.04.2016.
    Beiträge
    56

    Standard

    Zitat Zitat von tab Beitrag anzeigen
    Ort_+_PLZ?? Bin mir nicht 100% sicher, glaube aber nicht, dass ein '+' in einem Feldnamen verwendet werden darf.
    ich habe es jetzt geändert auf PLZundOrt

    Fehler bleibt aber:

    #0 system/modules/core/library/Contao/Database/Statement.php(264): Contao\Database\Statement->query()
    #1 system/modules/core/forms/Form.php(527): Contao\Database\Statement->execute()
    #2 system/modules/core/forms/Form.php(255): Contao\Form->processFormData(Array, Array, Array)
    #3 system/modules/core/classes/Hybrid.php(239): Contao\Form->compile()
    #4 system/modules/core/forms/Form.php(90): Contao\Hybrid->generate()
    #5 system/modules/core/library/Contao/Controller.php(484): Contao\Form->generate()
    #6 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao \ContentModel), 'main')
    #7 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
    #8 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
    #9 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
    #10 system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\Articl eModel), false, false, 'main')
    #11 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
    #12 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
    #13 index.php(20): Contao\FrontendIndex->run()
    #14 {main}

  4. #4
    Contao-Fan
    Registriert seit
    11.08.2013.
    Beiträge
    287

    Standard

    Du hast doch aber im Formular 2 Felder einzeln wo kombinierst du denn?


    Gesendet von iPhone mit Tapatalk

  5. #5
    Contao-Urgestein Avatar von Andreas
    Registriert seit
    19.06.2009.
    Ort
    Mönchengladbach
    Beiträge
    7.703
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Benutze Feldbezeichnungen, wie der Core das auch macht. Englische Begriffe, Kleinschreibung oder camelCase. "ß" ist z.B. auch ein Sonderzeichen. Beispiel:
    Code:
    Name          - lastname
    Vorname       - firstname
    Ort_+_PLZ     - cityPostal
    Straße        - street
    E-Mail        - email
    Telefon       - phone
    Anzahl_Karten - tickets
    Anzahl_Kinder - children
    Bezahlung     - payment
    Versandart    - shipment
    Bitte!
    Vor Anfragen im Forum HTML validieren.
    Codesnippets hier im Froum sauber einrücken. Nur Tabs o. nur Leerzeichen verwenden.

    Vielen Dank an alle Wunschlistenerfüller
    Andreas Burg, Web Solutions

  6. #6
    Contao-Fan
    Registriert seit
    22.11.2009.
    Ort
    14943 Luckenwalde
    Beiträge
    373

    Standard

    Ich hatte auch mal Probleme beim versenden eines Formulars, da war es aber die hinterlegte Tabelle. Diese wurde dann durch div und co ersetzt und Fehler war weg
    Freundliche Grüße
    Jens


  7. #7
    Contao-Urgestein Avatar von Andreas
    Registriert seit
    19.06.2009.
    Ort
    Mönchengladbach
    Beiträge
    7.703
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    @Merlin: Sorry, aber das hört sich ziemlich hanebüchen an.
    Bitte!
    Vor Anfragen im Forum HTML validieren.
    Codesnippets hier im Froum sauber einrücken. Nur Tabs o. nur Leerzeichen verwenden.

    Vielen Dank an alle Wunschlistenerfüller
    Andreas Burg, Web Solutions

  8. #8
    Contao-Nutzer
    Registriert seit
    07.04.2016.
    Beiträge
    56

    Standard

    Zitat Zitat von Andreas Beitrag anzeigen
    Benutze Feldbezeichnungen, wie der Core das auch macht. Englische Begriffe, Kleinschreibung oder camelCase. "ß" ist z.B. auch ein Sonderzeichen.
    ich habe jetzt Deine Beispiele eingetragen habe aber weiter folgenden Fehler:

    Fatal error: Uncaught exception Exception with message Query error: Unknown column 'lastname' in 'field list' (INSERT INTO tl_comments (tstamp, lastname, firstname, postal, city, street, email, phone, tickets, children, payment, shipment) VALUES ("Felderinhalte") thrown in system/modules/core/library/Contao/Database/Statement.php on line 295
    #0 system/modules/core/library/Contao/Database/Statement.php(264): Contao\Database\Statement->query()
    #1 system/modules/core/forms/Form.php(527): Contao\Database\Statement->execute()
    #2 system/modules/core/forms/Form.php(255): Contao\Form->processFormData(Array, Array, Array)
    #3 system/modules/core/classes/Hybrid.php(239): Contao\Form->compile()
    #4 system/modules/core/forms/Form.php(90): Contao\Hybrid->generate()
    #5 system/modules/core/library/Contao/Controller.php(484): Contao\Form->generate()
    #6 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao \ContentModel), 'main')
    #7 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
    #8 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
    #9 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
    #10 system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\Articl eModel), false, false, 'main')
    #11 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
    #12 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
    #13 index.php(20): Contao\FrontendIndex->run()
    #14 {main}

  9. #9
    Contao-Urgestein Avatar von Andreas
    Registriert seit
    19.06.2009.
    Ort
    Mönchengladbach
    Beiträge
    7.703
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Ich meine, wenn du nicht gerade [leads] benutzt, dann musst du die Felder in der Ziel-Tabelle in der DB auch manuell erstmal anlegen. Das macht Contao nicht von alleine.
    Bitte!
    Vor Anfragen im Forum HTML validieren.
    Codesnippets hier im Froum sauber einrücken. Nur Tabs o. nur Leerzeichen verwenden.

    Vielen Dank an alle Wunschlistenerfüller
    Andreas Burg, Web Solutions

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •