Events Made Easy › Forums › How do I … › Captcha Image disappeared
- This topic has 27 replies, 4 voices, and was last updated 3 years, 8 months ago by Franky.
-
AuthorPosts
-
Mon 8 Jul 2019 at 12:27 #60098AnonymousInactive
Hi there
On my customized booking form I’ve been using the captcha option. It all worked fine up until today.
-> php-gd support is still working
The captcha-image doesn’t get created/shown anymore. In the HTML-code I only get a source-attribute looking like that
src=”?eme_captcha=generate&f=5d22fe3c3e0bf_a8029e5af9e5bf665be9014a7ea383a5&ts=1562574396”
Do others have the same problem? Is that releated to the recent update of EME?
Thank you for your input.
Mon 8 Jul 2019 at 13:30 #60099FrankyKeymasterDemo page? And what placeholder are you using to show the captcha?
Mon 8 Jul 2019 at 13:58 #60100AnonymousInactiveThank you for the quick reply.
I’m using solely the #_CAPTCHA placeholder (not the deprecated CAPTCHAHTML)
… (cut)
<div class=”twelve columns”><label for=”captcha”>Sicherheitscode</label>
#_CAPTCHA</div>
</div>
#_SEATS
#_SUBMIT
… (cut)DEMO-PAGE: https://www.sensus-academy.ch/events/?event_id=3
Additional info: I installed the Google reCaptcha-plugin recently. But I deactivated it and the problem still exists. So I don’t think it does interfere somehow with EME.
Mon 8 Jul 2019 at 17:58 #60104FrankyKeymasterI’m guessing something is blocking access to the captcha url, you should check your webserver logfiles for more info …
Mon 8 Jul 2019 at 21:20 #60105AnonymousInactiveOk. Thanks. Will check.
Mon 8 Jul 2019 at 21:50 #60106AnonymousInactiveI could solve the problem by changing some coding in “function.php”.
I still don’t know what EXACTLY created the malfunction. I’ll figure it out though.Anyway, thanks Frank.
Mon 8 Jul 2019 at 22:10 #60107FrankyKeymasterAnd what exactly did you change? Because your change will be gone with the next plugin update.
Mon 8 Jul 2019 at 22:13 #60108AnonymousInactiveNot talking about “eme-functions.php” of your plugin.
I was applying some changes in “functions.php” of WordPress.
Thu 25 Feb 2021 at 13:47 #62113AnonymousInactiveI have the exact same problem as you mickey.
The image does not get generated. Any clue on your end?
Thanks!Thu 25 Feb 2021 at 14:29 #62116FrankyKeymasterThe only way the image doesn’t get generated is if the php extension gd is not loaded, or if you haven’t activated the EME option to use the captcha for forms (in the EME options, tab “General”).
Sun 28 Feb 2021 at 20:18 #62137AnonymousInactiveMe too, it happened I think 2 EME updates ago, it wasn’t like this in december/beginning of january.
I just removed the captcha alltogether and enabled the ‘honey pot’ feature. Hope that helps, no spams as of yet.
Mon 1 Mar 2021 at 00:35 #62141FrankyKeymasterThe captcha should work just fine. EME detects if php-gd is installed and active for it to be used, but otherwise I don’t see a reason for it not working.
Mon 1 Mar 2021 at 16:10 #62153FrankyKeymaster@G_Woman : any info on the captcha? If possible/wanted: give me temp access to some test site or so, so I can see if something easy needs fixing.
Mon 1 Mar 2021 at 22:09 #62161AnonymousInactiveSorry, just read your comment. Send you the temp access.
Could it be, btw, that your CAPTCHA registration is unvalid? I read somewhere that Google gives this x-amount of tries, after that it blocks the captcha. Or maybe I’m just saying nonsense, :-SMon 1 Mar 2021 at 22:19 #62163FrankyKeymasterThe captcha is not google-related, so it is not invalid.
I checked your theme: it inserts an empty line at the top. I edited the header.php file and removed the empty line, but I assume some caching is still going on as the empty line remains. If you can clear the cache (or remove the empty line in the theme if not in header.php) then the image will appear just fine.Mon 1 Mar 2021 at 22:40 #62165AnonymousInactiveOh ok, my bad.
I couldn’t see that blank line in header.php anymore. And it still shows the broken captcha.
I didn’t know I could remove cache from my website? I installed a plugin, but it couldn’t remove any.Sorry, how to do that? I already removed cookies from my webbrowser.
Mon 1 Mar 2021 at 23:09 #62167FrankyKeymasterWell, in the html output the empty line is still present. I’m not sure who’s generating that line …
I edited the EME plugin to hook into wordpress even earlier (there’s a hook called “init”, but apparently setup_theme comes before that and also before the theme gets loaded). This seems to resolve the empty-line issue causing the image not to show.Tue 2 Mar 2021 at 09:05 #62169FrankyKeymasterDue to the fact that some themes/plugins add an empty line at the top of the html output rendered, this renders programmatically rendered images unusable. I’m now moving that action higher up the chain (before the theme is even being called), so this should work better. I’m still evaluating the possible issues with this, but it is looking ok so far.
Tue 2 Mar 2021 at 10:03 #62170AnonymousInactiveWell, that sounds very smart to me, even though I don’t quite understand it. Great work as usual! It’s working perfect now!
Tue 2 Mar 2021 at 15:42 #62176AnonymousInactiveI feel that getting rid of this captcha procedure and investing in recaptcha integration will greatly reduce your time in supporting this outdated feature. 😉
Tue 2 Mar 2021 at 18:02 #62177FrankyKeymasterrecaptcha has other limitations: first of all, it is a google product with usage limits (the same reason why I switched to openstreetmap in the first place). Second: it has issues with multiple forms on one page (which is requested to be possible). Basic code is in place, but I’m reluctant to spend time on that if the second issue can’t get resolved …
Tue 2 Mar 2021 at 18:28 #62178AnonymousInactiveSeems you can have multiple recaptchas on one page. You just have to put multiple div elements for the recaptchas and render the recaptchas inside them explicitly.
Hoping this helps
Tue 2 Mar 2021 at 23:33 #62179FrankyKeymasterWell, it took me some hours but I think I got the recaptcha working (only v2 with the checkbox, otherwise too much playing needed with javascript).
Wed 3 Mar 2021 at 14:27 #62323AnonymousInactiveSorry Franky, was that a reply on my question in another thread? I read your words like 3 times, but couldn’t process them. I’ll try again this evening, hopefully then I understand what you are explaining.😂
Wed 3 Mar 2021 at 17:33 #62325FrankyKeymasterI moved it to the correct thread, sorry (it is your other thread about memberships).
Sat 6 Mar 2021 at 11:15 #62330AnonymousInactiveNp, I would also get confused by a user opening 23538534543 threads XD
Wed 10 Mar 2021 at 19:16 #62350AnonymousInactiveCan you confirm the exact procedure to put in place a Google Recaptcha?
Thanks!Wed 10 Mar 2021 at 19:26 #62351FrankyKeymasterCreate your google captcha v2 tickbox keys in google, add those in the EME settings and use #_RECAPTCHA in your forms.
The next version will add #_RECAPTCHA automatically if not present in your form where needed, so you can always download the dev version too … -
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.