• Resolved ImageManja Neumann

    (@tippl)


    Hi,

    I use the form block for two contact forms, one in German and one in English.
    When I submit a message through the english version I get:

    Hello,

    you have just received a new form submission with the following data from “xxx”:

    Name: Max Muster
    Email address: test@beispiel.de
    Message: test

    Your “xxx” WordPress

    But the German form submission is empty:

    Hallo,

    du hast soeben eine neue Formularabsendung von „xxx“ mit den folgenden Daten erhalten:

    Dein WordPress von „xxx“

    What could be the reason for this?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ImageMatthias Kittsteiner

    (@kittmedia)

    Hi @tippl,

    can you share a link to the page where this issue occurs, please?

    Best regards,
    Matthias

    Thread Starter ImageManja Neumann

    (@tippl)

    Plugin Author ImageMatthias Kittsteiner

    (@kittmedia)

    Frontend looks good to me so far.

    Are you able to provide me with the result of an SQL query from within your database? Usually, you can execute it via a tool like phpMyAdmin provided by your hoster. The query would be:

    SELECT	option_value
    FROM wp_options
    WHERE option_name = 'form_block_data_470a7665-dc64-4115-affc-84e8803dff08';

    Aside of that, what plugin are you using for the multilingual functionality? And did you copy the content/page from English to German or from anywhere else?

    Thread Starter ImageManja Neumann

    (@tippl)

    The result is:

    a:3:{s:10:"block_type";s:4:"form";s:6:"fields";a:5:{i:0;a:6:{s:4:"name";s:0:"";s:4:"type";s:4:"text";s:8:"required";s:0:"";s:10:"spellcheck";s:5:"false";s:5:"label";s:4:"Name";s:10:"block_type";s:5:"input";}i:1;a:8:{s:9:"isReplyTo";b:1;s:4:"name";s:0:"";s:4:"type";s:5:"email";s:8:"required";s:0:"";s:10:"spellcheck";s:5:"false";s:5:"label";s:14:"E-Mail-Adresse";s:10:"block_type";s:5:"input";s:11:"is_reply_to";b:1;}i:2;a:5:{s:4:"name";s:0:"";s:8:"required";s:0:"";s:10:"spellcheck";s:5:"false";s:5:"label";s:9:"Nachricht";s:10:"block_type";s:8:"textarea";}i:3;a:6:{s:4:"name";s:15:"data-processing";s:4:"type";s:8:"checkbox";s:8:"required";s:0:"";s:5:"value";s:260:"Ich willige ein, dass meine Daten zum Zwecke der Kontaktaufnahme gespeichert und verarbeitet werden. Weitere Informationen erhältst du in unserer <a href="https://biapsy.lechatinformatique.de/impressum/" data-type="page" data-id="3">Datenschutzerklärung</a>.";s:5:"label";s:169:"Ich willige ein, dass meine Daten zum Zwecke der Kontaktaufnahme gespeichert und verarbeitet werden. Weitere Informationen erhältst du in unserer Datenschutzerklärung.";s:10:"block_type";s:5:"input";}i:4;a:5:{s:4:"type";s:6:"submit";s:5:"value";s:8:"Absenden";s:5:"class";s:39:"wp-block-button__link wp-element-button";s:5:"label";s:0:"";s:10:"block_type";s:5:"input";}}s:7:"subject";s:0:"";}

    I use Polylang for multilingual functionality. I’m not sure, but I think I might have copied it from English to German.

    Plugin Author ImageMatthias Kittsteiner

    (@kittmedia)

    Did you manually tried to clear the value of the Name value in the sidebar of each field? Then, I can reproduce the issue, as an empty value is stored for this field and is then later not matched with the processed data.

    As a quick fix, you can manually edit the field names, e.g. adding an “s” and remove it, then save the post again, and it should solve the issue.

    I will release a fix so that empty name values there properly use the auto-generated ones from the label, as it should be.

    Thread Starter ImageManja Neumann

    (@tippl)

    I added the s and removed it afterwards. It actually works now.

    The field values were exactly what the labels were called.
    Name – name
    E-Mail-Adresse – e-mail-adresse
    Nachricht – nachricht

    I hope this helps you find the cause.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘eMail empty’ is closed to new replies.