Contact Form broken

Hello,
I need to implement contact form for German too.
What I did:

• I did copy the module “Contact Form” to “Contact Form (DE)”.
• I translated the English text to German.
• I copied the article “Contact Us” to “Kontakt”
• I changed the English text to German text.
• I changed the module in the article to “Contact Form (DE)”

The code of the article is now:

<h2 style="text-align: center;">Nehmen Sie Kontakt mit uns auf:</h2>
<div class="row-fluid">
<div class="span6"></div>
<div class="span6">
<p class="lead" style="margin: 0 0 2px;">Adresse</p>
<p>Hauptstrasse 341c, 51465 Bergisch Gladbach, Germany</p>
<p class="lead" style="margin: 0 0 2px;">Telefon</p>
<p>Tel: +49-2202-1093440</p>
<p class="lead" style="margin: 0 0 2px;">Fax</p>
<p>Tel: +49-2202-9599682</p>
</div>
</div>


But I get the following error:
“Fatal error: Cannot redeclare clearData() (previously declared in C:\xampp\htdocs\TC2\modules\mod_ext_quick_contact_form_jquery\mod_ext_quick_contact_form_jquery.php:101) in C:\xampp\htdocs\TC2\modules\mod_ext_quick_contact_form_jquery\mod_ext_quick_contact_form_jquery.php on line 113”

I fiddled around with the article for the English Contact Form and it is now damaged too….

Need help.

Regards
Christian
Responses (10)
  • Accepted Answer

    Tuesday, January 12 2016, 03:27 PM - #Permalink
    The code above is not showing the module Contact Form DE.
    The attached screenshot does show it....
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 13 2016, 04:20 PM - #Permalink
    Hi,

    Got any suggestions on this?

    Regards
    Christian
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 13 2016, 08:01 PM - #Permalink
    Hello,

    I think it was not a good idea to copy the module “Contact form” to “Contact Form (DE)”. I assume that the “duplicated” module is messing up. So I deleted it and the errors are gone.

    But now there is a lot of the text which is still English in the form which I don’t know how to translate. See attachment.

    I really don’t wanted to do a fancy thing. I just wanted to localize the reCAPTCHA texts and now I have a small mess on my system.

    The alternative would be to use the standard Joomla contact form without reCAPTCHA, which is not really professional.

    Got any ideas?

    Regards
    Christian
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Kertis
    Kertis
    Offline
    Thursday, January 14 2016, 01:00 PM - #Permalink
    Hi.

    I'm currently looking into the translation files to see how it can work out.

    Regards.
    The reply is currently minimized Show
  • Accepted Answer

    Kertis
    Kertis
    Offline
    Thursday, January 14 2016, 01:30 PM - #Permalink
    Hi.

    I have found a way to do it, you have to copy the module "Contact Form" and make 2 more copies, so there are 3 (1 for each language).
    In the assignments tab of each module set each according to its own language and edit the fields on the first tab to reflect each language.

    Regards.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, January 15 2016, 09:00 AM - #Permalink
    Hello,

    I followed your advice.
    See attachment.

    But the error is still there:
    Fatal error: Cannot redeclare clearData() (previously declared in /homepages/28/d566486610/htdocs/TC2/modules/mod_ext_quick_contact_form_jquery/mod_ext_quick_contact_form_jquery.php:101) in /homepages/28/d566486610/htdocs/TC2/modules/mod_ext_quick_contact_form_jquery/mod_ext_quick_contact_form_jquery.php on line 113

    I tried it on Chrome and Internet Explorer on different machines (even on a Mac). I cleared the browser cache and pressed CTRL-F5

    I have no idea how to get around that…

    Regards
    Christian
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Kertis
    Kertis
    Offline
    Friday, January 15 2016, 04:35 PM - #Permalink
    Hi.

    That is odd, it's only happening on the DE page, in the CN it's working just fine. :o
    It looks like some sort of bug, I'll research and see if I can find a fix.

    Regards.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 18 2016, 03:12 PM - #Permalink
    Hello,

    I found the solution.

    The only way to load the module in the article is using the command “Loadposition”. For the English article it is “{loadposition contact_form}”. For the German article it must be a different position, I used “{loadposition contact_form_de”}. In the German copy of the contact form module, I added the new position “contact_form_de” and now it works.

    The procedure sounds a little odd to me, but whatever…

    Thanks for the help!
    Please close the case.

    Regards
    Christian
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 18 2016, 03:14 PM - #Permalink
    Can you please remove the duplicated repplies?:p :p
    The reply is currently minimized Show
  • Accepted Answer

    Kertis
    Kertis
    Offline
    Monday, January 18 2016, 03:55 PM - #Permalink
    That's great!

    I have moved this topic and made it sticky for other users to see.
    This topic will now be closed.

    Regards.
    The reply is currently minimized Show
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Start your 7 days Free Trial Today!