Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If Math CAPTCHA is used when a trusted user is logged in, it shows a presolved example. If reCAPTCHA or Egglue is used, it bounces to a blank page trying to access the APIs. I suspect it's trying to generate a presolved example when there isn't one.
Comments
Comment #1
soxofaan CreditAttribution: soxofaan commentedconfirmed (only tested reCAPTCHA)
after disabling javascript, the page loads normal and the form processing works as expected
further looking into it..
I guess the easiest way to solve this is to disable the admin mode (presolving) for challenges like reCAPTCHA and egglue
Comment #2
soxofaan CreditAttribution: soxofaan commentedOk, I think I'm on to something (which was not easy, the mix of iframes, javascript, external api's is not very comfortable to debug)
The admin mode CAPTCHA example is inside a collapsible fieldset.
If I set the '#collapsible' property to false, there is no problem of a blank page and trying to access the apis.
Setting the '#collapsed' property to false does not change the weird behavior on the other hand
Apparently the Javascript that handles the collapsible fieldset interferes with the reCAPTCHA/egglue javascript, which causes the weird behavior.
I'm no Javascript expert, and the problem is hard to debug, so I welcome other people to look into this
Comment #3
soxofaan CreditAttribution: soxofaan commenteda bit more confirmation:
the problem is not related to admin mode on itself: if I make the fieldset for non admin, anonymous challenges collapsible, the same problem occurs.
Comment #4
TimNorman CreditAttribution: TimNorman commentedsubscribe
Comment #5
soxofaan CreditAttribution: soxofaan commented#525586: AJAX API seems to tackle the same problem as this thread and has more eyes on it
setting this one as duplicate for now
Comment #6
TimNorman CreditAttribution: TimNorman commentedSoxofaan - Not really the same issue, but might be related. I'm not using the ajax comment module that the other person who started the #525586: AJAX API issue is. But I'm no fluent in java at all.
Comment #7
soxofaan CreditAttribution: soxofaan commentedHi all,
In preparation for a final 6.x-2.0 release I added temporary workaround for the problem:
reCAPTCHA and Egglue are now blacklisted for the CAPTCHA admin preview:
http://drupal.org/cvs?commit=265144
This is a temporary workaround and should be removed once the problem itself is solved.
Setting this issue to a postponed feature request now
Comment #8
wundo CreditAttribution: wundo commented