Captcha Window not displaying, but working

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Jun 13, 2014 12:56 am
Reply with quote
Report this post
Hello,
I am setting up K2 comments on a blog page and see that the Captcha plugin is working (it triggers the error message when trying to post) but the capture display is not visible.

    This is what I have checked: Capture plugin is enabled, fresh global capture key obtained, global configuration shows default capture is Captcha-ReCaptcha, K2 Parameters shows Anti-spam protection default is Captcha ReCaptcha

Any suggestions please?

kind regards
Drew
User avatar
Gold Boarder

GK User
Fri Jun 13, 2014 6:10 am
Reply with quote
Report this post
Is the problem on your "profile" site?
User avatar
Moderator

GK User
Fri Jun 13, 2014 6:44 am
Reply with quote
Report this post
Sure is :)
User avatar
Gold Boarder

GK User
Mon Jun 16, 2014 9:29 am
Reply with quote
Report this post
I see captcha correctly. Could you please test the site in chrome/firefox incognito/private mode?
User avatar
Moderator

GK User
Mon Jun 16, 2014 11:43 am
Reply with quote
Report this post
Hello,
I have tested the same K2 item and tried to comment on the same item in 6 different browser sessions, with the site being online and offline.

In K2 items, there is no capture table displayed nor does it display when a comment is submitted. All that is displayed at that point is the error message below.

    "The words you typed did not match the ones displayed. Please try again."
Tested in Firefox (latest) public and private - K2 recapture still does not show but triggers the error message
Tested in chrome public and private - same error.
Tested in Safari (same error)

Any suggestions?

kind regards
Drew
User avatar
Gold Boarder

GK User
Tue Jun 17, 2014 1:58 pm
Reply with quote
Report this post
Strange - there is an error in google recaptcha js library. How did you enabled recaptcha on your site (please describe the process step by step so I can reproduce it on my machine).
User avatar
Moderator

GK User
Sat Jun 21, 2014 8:19 am
Reply with quote
Report this post
Hello,

Here is the process I followed:

    'Enable' plugin - Captcha - ReCaptcha
    enter Public 6LevMPUSAAAAABVyupx0jYOVMyG4rBicrSdr8T9S
    enter Private 6LevMPUSAAAAAFz_aM0ebdEvDNHhWmMO7pQsY4NV
    System/Global config/ select 'default captcha'
    K2/Advanced/Anti-spam Settings
    Add public
    Add private
    Select theme

Additional information:
The capture is visible and working fine on the 'Contact us form'.
Only in K2 comments is the capture not visible

There appears to be a display bug in K2 that might be part of the same problem.
When in K2 Item, go to image and then browse server - the windows remains blank (and you cannot see the buttons to browse servicer). I wonder if this could be a compounding error?

Appreciate your thoughts

Kind regards
Drew
User avatar
Gold Boarder

GK User
Sat Jun 28, 2014 11:33 am
Reply with quote
Report this post
Hello,

@drdrew - could you provide an URL to your website? I need to check few things connected with reCAPTCHA.
User avatar
Administrator

GK User
Mon Jun 30, 2014 2:51 pm
Reply with quote
Report this post
Hello,
the site is offline so I will PM you the details.

KInd regards
Drew
User avatar
Gold Boarder

GK User
Tue Jul 01, 2014 6:52 pm
Reply with quote
Report this post
Please open file html/com_k2/templates/default/item_comments_form.php and please replace fragment:

Code: Select all
<?php if($this->params->get('recaptcha') && $this->user->guest): ?>


to:

Code: Select all
<?php if($this->params->get('recaptcha') && ($this->user->guest || $this->params->get('recaptchaForRegistered', 1))): ?>
User avatar
Administrator

GK User
Wed Jul 02, 2014 11:48 am
Reply with quote
Report this post
Hi I have the same problem. I've installed john's template. I tried evething on this post, but doesn't work.
the url is http://www.robertacalandra.it/
User avatar
Fresh Boarder

GK User
Wed Jul 02, 2014 12:38 pm
Reply with quote
Report this post
dziudek wrote:Please open file html/com_k2/templates/default/item_comments_form.php and please replace fragment:

Code: Select all
<?php if($this->params->get('recaptcha') && $this->user->guest): ?>


to:

Code: Select all
<?php if($this->params->get('recaptcha') && ($this->user->guest || $this->params->get('recaptchaForRegistered', 1))): ?>


It works with forms, but not with k2 comments
User avatar
Fresh Boarder

GK User
Thu Jul 03, 2014 12:10 pm
Reply with quote
Report this post
@lelardi - sorry but how it can works with other forms if this code is dedicated for K2 comments?
User avatar
Administrator

GK User
Thu Jul 03, 2014 2:30 pm
Reply with quote
Report this post
Hello again,
I have opened the file requested (html/com_k2/templates/default/item_comments_form.php) and already have the K2 string present.
Here is the screen capture.
What do you suggest?

Kind regards
Drew
User avatar
Gold Boarder

GK User
Thu Jul 03, 2014 5:06 pm
Reply with quote
Report this post
dziudek wrote:@lelardi - sorry but how it can works with other forms if this code is dedicated for K2 comments?

Hi, this is the link where It works: http:www.robertacalandra.it
this is the link where doesn't works: http://www.robertacalandra.it/index.php ... continenze
User avatar
Fresh Boarder

GK User
Fri Jul 04, 2014 7:59 am
Reply with quote
Report this post
You had opened the file in the K2 component files not the overrided one - the html/com_k2/templates/default/item_comment_form.php file is located in the template directory.
User avatar
Administrator

GK User
Sun Jul 06, 2014 3:48 am
Reply with quote
Report this post
Perfect! - I never stop learning something new from your team :D

Thanks for being so helpful.

Kind regards
Drew
User avatar
Gold Boarder


cron