Hello all, I am getting a ReCaptchaState undefined and a denied access to property 'toString'.
Timestamp: 10/29/2012 1:45:29 PM
Error: Error: Permission denied to access property 'toString'
Timestamp: 10/29/2012 1:47:13 PM
Error: ReferenceError: RecaptchaState is not defined
Source File: https://www.google.com/recaptcha/api/js/recaptcha.js
Line: 111
Also, when I submit a post without entering the ReCaptcha, the comment and the ReCaptcha box dissappear and no warning is given. If I do enter the ReCaptcha correctly the comment posts correctly, but the ReCaptcha box then disappears, even though I have it set to always ask. Anyone have any ideas? Thanks!
Comment | File | Size | Author |
---|---|---|---|
#9 | recaptcha_1826404_ajax.patch | 762 bytes | Liam Morland |
Comments
Comment #1
Liam MorlandThat sounds like a mistake on the Google end. Try it again; they may have fixed it.
Comment #2
Liam MorlandPresuming fixed. Please reopen if there is still an issue in the Drupal reCAPTCHA module.
Comment #3
digibrill CreditAttribution: digibrill commentedLiam, thanks for the replies. I was trying out another solution, but that may not work, so I am reopening this as requested. What did you mean by on the Google end? Same problem still. I did wonder, this is currently on a development server. Does the site need public access for the module to work correctly?
Thank you.
Comment #4
Liam MorlandWhat I mean by the Google end is that there could be a bug in the JavaScript file that Google provides. However, it sounds more likely that it won't work on your development server because the API key you are using is not for that server. You'll need to get a new API key for the dev server.
Comment #5
digibrill CreditAttribution: digibrill commentedWill try. Thanks.
Comment #6
Liam MorlandPresuming fixed. Please re-open if you are still having problems.
Comment #7
accy CreditAttribution: accy commentedIn my case when I was getting the "RecaptchaState is not defined" error it helped changing reCAPTCHA js library from https://www.google.com/recaptcha/api/js/recaptcha.js (which Drupal reCAPTCHA module uses) to http://www.google.com/recaptcha/api/js/recaptcha_ajax.js (I am using reCAPTCHA ajax version)
I hope it will save someone some amount of time I wasted;)
Comment #8
Liam MorlandThanks for the report.
Status "needs work" is for issues that have a patch that isn't ready to commit.
Comment #9
Liam MorlandPlease try the attached patch against 7.x-1.x-dev. I would appreciate it if both people who are and are not using AJAX would try it. This patch just changes the AJAX library loaded from Google, as suggested in #7.
Comment #10
panche CreditAttribution: panche commentedI can confirm that #9 works.
Thanks for the patch!
Comment #11
Liam Morlandhttp://drupalcode.org/project/recaptcha.git/commitdiff/c9f2ec6
Comment #12
Liam MorlandComment #16
hass CreditAttribution: hass commentedThis bug does not exists in D6.