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.
Version is actually beta-4, wasn't available above.
Trying to add a CAPTCHA element to an existing webform and after clicking the "Add Element" link and selecting CAPTCHA, nothing happens. Progress spinner spins, nothing happens. Checking the the logs I see:
Error: Call to undefined function Drupal\webform\Plugin\WebformElement\_captcha_available_challenge_types() in Drupal\webform\Plugin\WebformElement\Captcha->form() (line 128 of /home/****/public_html/modules/contrib/webform/src/Plugin/WebformElement/Captcha.php)
Comment | File | Size | Author |
---|---|---|---|
#5 | 3090735-5-patch-for-webform-5_5.patch | 1.65 KB | audacus |
#2 | 3090735-2.patch | 3.02 KB | jrockowitz |
|
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
audacus CreditAttribution: audacus at Previon Plus AG commentedI had the same issue using
webform 5.5
and so I adapted the patch from #2 patch to run with it.Comment #6
Tichris59 CreditAttribution: Tichris59 commentedPatch #5 works for me with 5.5.0
Comment #7
malphas CreditAttribution: malphas as a volunteer commentedI ran into this issue after updating captcha and webform. Got an ajax error while trying to add the captcha element on a webform & nothing happened. Patch #5 did the trick. Thanks!
Comment #8
Anybody#5 also did the trick for us. Looking forward to a new stable release :)
Comment #9
kruser CreditAttribution: kruser commented#5 worked for me too.
Comment #10
Mike Dodd CreditAttribution: Mike Dodd commented#5 worked for me too.
Comment #11
Nicolas S. CreditAttribution: Nicolas S. commented#5 worked for me too
thanks audacus
Comment #12
alexrayu CreditAttribution: alexrayu as a volunteer commentedPatch from #5 has worked here. Thank you!
Comment #13
kruser CreditAttribution: kruser commentedThis seems to be fixed in 5.6