Forums

Solve a bug

zaplcgn 21 Mar, 2015
Hi I programmed a form but it doesn't work good. Debugging Mode shows the following:
[attachment=0]ChronoBUG.jpg[/attachment]

it's my first problem

The second problem i use Captcha Image . it s displayd But always on top of the form the information : You entered a wrong code...." How does it happens before entering any captcha code

THIRD problem I need to send the form via email to me...Sending the email works but with EMPTY informations Onlay the sender email is displayed, but all values are missing, too in the database

any idea?

best regards
GreyHead 22 Mar, 2015
1 Likes
Hi zaplcgn,

As you can see your form isn't returning any data at all apart from the values in the URL. Please post a link to the form so I can take a quick look.

Bob
zaplcgn 22 Mar, 2015
Using my form : Bug report: Casn fill out everything, the sender get a copy, me too but the mails are empty...only the labels are displayed😟

Vielen Dank für Ihre Anfrage.

Ich setze mich so schnell wie möglich auf dem gewünschten Weg in Verbindung

Data Array

Array
(
    [chronoform] => Beratungsanfrage
    [event] => submit
    [tvout] => ajax
    [text1] => test
    [Ihr_Vorname_-_Angabe_freiwillig] => test
    [Art_der_Gewalt] => Koerperliche Gewalt
    [Gegen_wen_richtet_sich_meisst_Ihre_Gewalt] => ihre Partnerin - ihren Partner
    [Weitere_Opfer_Ihrer_Gewalt] => ihre Partnerin - ihren Partner
    [Seit_wann_üben_Sie_Gewalt_aus] => 2010
    [Ich_bitte_um_einen_Termin_am] => 31-03-2015
    [Alternativ_Termin] => 30-03-2015
    [Sie_erreichen_mich_unter_Telefon] => 0123456
    [Mailadresse] => xxxxxxxx@xxx.de
    [captcha] => 
    [Absenden] => Absenden
    [ip_address] => xx.xx.78.47
    [id] => 15
)

Array
(
)

Errors

Array
(
)

Debug Info

Array
(
    [11] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:, xxxxx@xxxxxxxxx.de
                    [2] => Subject:Beratungsanfrage
                    [3] => From name:
                    [4] => From email:xxxxxxxi@xxx.de
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:Name - Angabe freiwillig
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tr><td>Vorwort</td><td></td></tr>
<tr><td>Ihr Name - freiwillig</td><td>test</td></tr>
<tr><td>Ihr Vorname - freiwillig</td><td>{Ihr Vorname - Angabe freiwillig}</td></tr>
<tr><td>Art der ausgeübten Gewalt</td><td>{Art der Gewalt}</td></tr>
<tr><td>Gegen wenn richtet sich Ihre Gewalt</td><td>{Gegen wen richtet sich meisst Ihre Gewalt}</td></tr>
<tr><td>Weitere Opfer Ihrer Gewalt</td><td>{Weitere Opfer Ihrer Gewalt}</td></tr>
<tr><td>Seit wann üben Sie Gewalt aus</td><td>{Seit wann üben Sie Gewalt aus}</td></tr>
<tr><td>Terminvorschlag</td><td>{Ich bitte um einen Termin am}</td></tr>
<tr><td>Alternativer Termin</td><td>{Alternativ Termin}</td></tr>
<tr><td>Ihre Telefonnummer</td><td>{Sie erreichen mich unter Telefon}</td></tr>
<tr><td>Mailadresse</td><td>meyerdrei@gmx.de</td></tr>
<tr><td>Captcha</td><td></td></tr>
<tr><td></td><td></td></tr>
</table>
                )

        )

    [4] => Array
        (
            [DB Save] => Array
                (
                    [Queries] => Array
                        (
                            [0] => INSERT INTO `c2v3k_chronoengine_chronoforms_datatable_Beratungsanfrage` (`Mailadresse`, `captcha`, `Absenden`, `user_id`, `uniq_id`, `created`) values ('xxxxxxxxxx@xxx.de', '', 'Absenden', '0', 'a5af963f13c28e98ea7cf8b2ae210ce2de507780', '2015-03-22 21:05:13');
                        )

                )

        )

    [5] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:xxxxxx@xxx.de, xxxxxxx@xxxxxxxxx.de
                    [2] => Subject:Beratungsanfrage
                    [3] => From name:
                    [4] => From email:Mailadresse
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:Name - Angabe freiwillig
                    [8] => Reply email:xxxxxxxx@xxx.de
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tbody>
<tr>
<td>Ihr Name (freiwillig)</td>
<td>{Ihr Name (Angabe freiwillig)}</td>
</tr>
<tr>
<td>Ihr Vorname (freiwillig)</td>
<td>{Ihr Vorname (Angabe freiwillig)}</td>
</tr>
<tr>
<td>Art der ausgeübten Gewalt</td>
<td>{Art der Gewalt}</td>
</tr>
<tr>
<td>Gegen wenn richtet sich Ihre Gewalt</td>
<td>{Gegen wen richtet sich meisst Ihre Gewalt}</td>
</tr>
<tr>
<td>Weitere Opfer Ihrer Gewalt</td>
<td>{Weitere Opfer Ihrer Gewalt}</td>
</tr>
<tr>
<td>Seit wann üben Sie Gewalt aus</td>
<td>{Seit wann üben Sie Gewalt aus}</td>
</tr>
<tr>
<td>Terminvorschlag</td>
<td>{Ich bitte um einen Termin am}</td>
</tr>
<tr>
<td>Alternativer Termin</td>
<td>{Alternativ Termin}</td>
</tr>
<tr>
<td>Ihre Telefonnummer</td>
<td>{Sie erreichen mich unter Telefon:}</td>
</tr>
<tr>
<td>Text Label</td>
<td>mxxxxxxxx@xxx.de</td>
</tr>
<tr>
<td>Captcha</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table><br /><br />IP: 78.35.78.47
                )

        )

)

Data Array

Array
(
)

Array
(
)

Errors

Array
(
)

Debug Info

Array
GreyHead 22 Mar, 2015
1 Likes
HI zaplcgn,

The entries in the Email template in {} need to match the input names in your form - they don't - for example you have {Art der Gewalt} instead of {Art_der_Gewalt}.

Bob
zaplcgn 23 Mar, 2015
The Output Result will be now;[code]Ihr Name test
Ihr Vorname	test
Art der ausgeübten Gewalt	Beides
Gegen wen richtet sich Ihre Gewalt überwiegend	ihre_Partnerin_/_ihren_Partner
Weitere Opfer Ihrer Gewalt	Kinder_ausserhalb_Ihrer_Familie
Seit wann üben Sie Gewalt aus	2012
Terminvorschlag	24-03-2015
Alternativer Termin	31-03-2015
Telefonnummer	123456
Mailadresse	xxxxxxxx@xxx.de


In database are only Entriesface-meh-blankUBMIT and teh mail adrress of sender, but not the important entries. Whats wrong Do i have to use EXTERNAL database?

Why the underspaces "_" in the email result? it's not important but.....don't look well

What happens with the ARRAY error????
GreyHead 23 Mar, 2015
1 Likes
Hi zaplcgn,

I can't see where the underscores '_' in the data are being added. Please post a link to the form so I can take a quick look.

The column names in your database table need to match the names of the form inputs. If you changed the input names then they probably do not match any more.

Bob
GreyHead 23 Mar, 2015
1 Likes
Hi zaplcgn,

I can see immediately that you have spaces in some of the input names.
<input name="Ihr Name" id="text1" . . .

Please remove these I use _ e,g, ihr_Name.

The problem with spaces (and other special characters) is that they are illegal HTML and worse, ChronoForms tries to use them as variable names which breaks the code.

Bob
zaplcgn 23 Mar, 2015
works fine now...THANK YOU Greyhead....

but why "Root user"...? in response mail?
GreyHead 24 Mar, 2015
1 Likes
Hi zaplcgn,

Usually that happens when the From Email address is left empty - or it set to an address other than the Mailer login address.

Bob
zaplcgn 26 Mar, 2015
i'll check it thanks
zaplcgn 26 Mar, 2015
hmm i did enter my sender mail adress "from mail...."the mailer login adress is the same as in the form
This topic is locked and no more replies can be posted.