Hallo,
ich bekomme unter Contao 3.0.3 und EFG 2.0.0 rc1 die Auswahl des E-Mail-Empfängers nicht zum Laufen. EFG 2.0.0 rc1 Build 4 ist bereits installiert, andere Formulare mit festen E-Mail-Empfängern funktionieren problemlos wie gewünscht.
Ich bin wie folgt vorgegangen:
1) protectedselect (1.0.1 Build 7) installiert, Autoload-Dateien erstellt, IDE-Kompatibilitätsdatei aktualisiert
2) formrecipient (1.1.0 Build 5) installiert, Autoload-Dateien erstellt, IDE-Kompatibilitätsdatei aktualisiert
==> Ich weiß, diese Erweiterungen sind noch nicht für Contao 3.0.x freigegeben, es werden bisher aber keine Fehlermeldungen im Error-Log angezeigt
3) Im Formular ein geschütztes Select-Menü mit folgenden Einstellungen erstellt:
select-menu.jpg
4) In den Formulareinstellungen "per E-Mail versenden (EFG)" aktiviert mit den folgenden Einstellungen:
efg-einstellungen.jpg
Wenn jetzt das Formular ausgefüllt und abgesendet wird erscheint die folgende Fehlermeldung im Frontend:
fehlermeldung-frontend.jpg
In der Datei Error.log ist jetzt ebenfalls eine Fehlermeldung sichtbar:
Code:
[11-Feb-2013 19:03:49 UTC]
PHP Warning: Invalid argument supplied for foreach() in /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/library/Contao/Widget.php on line 1035
#0 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/library/Contao/Widget.php(1035): __error(2, 'Invalid argumen...', '/is/htdocs/wp10...', 1035, Array)
#1 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/forms/FormSelectMenu.php(130): Contao\Widget->isValidOption('chef')
#2 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/forms/Form.php(160): Contao\FormSelectMenu->validate()
#3 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/classes/Hybrid.php(210): Contao\Form->compile()
#4 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/forms/Form.php(62): Contao\Hybrid->generate()
#5 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/library/Contao/Controller.php(446): Contao\Form->generate()
#6 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/modules/ModuleArticle.php(179): Contao\Controller->getContentElement(Object(Contao\Model\Collection))
#7 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/modules/Module.php(148): Contao\ModuleArticle->compile()
#8 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/modules/ModuleArticle.php(59): Contao\Module->generate()
#9 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/library/Contao/Controller.php(374): Contao\ModuleArticle->generate(false)
#10 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/library/Contao/Controller.php(227): Contao\Controller->getArticle(Object(Contao\Model\Collection), false, false, 'main')
#11 /is/htdocs/accountnummer/www/domain-ordner/system/modules/core/pages/PageRegular.php(109): Contao\Controller->getFrontendModule('0', 'main')
#12 /is/htdocs/accountnummer/www/domain-ordner/index.php(250): Contao\PageRegular->generate(Object(Contao\PageModel))
#13 /is/htdocs/accountnummer/www/domain-ordner/index.php(411): Index->run()
#14 {main}
Die Option "(EFG) Formular-Daten speichern" ist ebenfalls aktiviert, hier wird aber kein Eintrag vorgenommen.
Wenn ich einen festen E-Mail-Empfänger eintrage funktioniert das Formular problemlos, auch der Inhalt der Variable {{form::empfaenger}} wird je nach Auswahl richtig übermittelt.
Muss hier protectedselect und formrecipient für Contao 3 angepasst werden oder mache ich einen Fehler?
Danke für die Hilfe.
Schmidty
Lesezeichen