ReCaptcha don't work in custom Contact Form articles

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
Huho
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Apr 05, 2017 2:41 pm

ReCaptcha don't work in custom Contact Form articles

Post by Huho » Thu Sep 21, 2017 7:43 am

When manually coding a contact form in the standard article format, the old ReCaptcha worked fine for us.
Now, after changing to ReCaptcha 2, the ReCaptcha doesn't turn up -- while a form post request is rejected due to "ReCaptcha not solved".
ReCaptcha is enabled in the settings tab and configured in extensions.

This is the site: http://jugger.se/index.php/kontakt
This is the code:

Code: Select all

(...) </textarea></dd></dl>
<div class="g-recaptcha" data-sitekey="xxx">&nbsp;</div>
<p><input type="submit" value="Send" /> <input type="reset" value="Cancel" /></p>
</form>
Alternately, I could put the ReCaptcha js code manually in the header ... if I would find a way to do so for just this one page. Yet this shouldn't be necessary, should it?

Huho
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Apr 05, 2017 2:41 pm

Re: ReCaptcha don't work in custom Contact Form articles

Post by Huho » Fri Sep 22, 2017 7:44 am

I bluntly integrated the Google ReCaptcha js code in the template header now (through the shape5 vertex configuration).
Although the checkbox now turns up, the verification is not done, it only throws a "-sol" error code.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30832
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: ReCaptcha don't work in custom Contact Form articles

Post by Per Yngve Berg » Fri Sep 22, 2017 8:11 am

Why don't you use a Contact Extension?

Huho
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Apr 05, 2017 2:41 pm

Re: ReCaptcha don't work in custom Contact Form articles

Post by Huho » Fri Sep 29, 2017 1:38 pm

Because it is either not customizable enough, or it has to be bought. At least I couldn't find a free satisfying solution, and I like to skip modules if possible for different reasons (like security).

ecat42
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jun 21, 2017 8:41 am

Re: ReCaptcha don't work in custom Contact Form articles

Post by ecat42 » Mon Nov 20, 2017 12:35 am

I have had the same problem with Creative Solutions Contact form which, for ReCaptcha 2 to work properly, according to their forum, requires a config of allow_url_fopen = on. I have a shared web hosting and this setting is described as a security risk by my web host.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30832
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: ReCaptcha don't work in custom Contact Form articles

Post by Per Yngve Berg » Mon Nov 20, 2017 4:48 am

Your host have made a mistake. It's allow_url_finclude that is a security risk.


Locked

Return to “Extensions for Joomla! 3.x”