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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review
FileSize
3.02 KB

  • jrockowitz authored 5cdffa4 on 8.x-5.x
    Issue #3090735 by jrockowitz: Call to undefined function trying to add...
jrockowitz’s picture

Status: Needs review » Fixed
audacus’s picture

I had the same issue using webform 5.5 and so I adapted the patch from #2 patch to run with it.

Tichris59’s picture

Patch #5 works for me with 5.5.0

malphas’s picture

I 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!

Anybody’s picture

#5 also did the trick for us. Looking forward to a new stable release :)

kruser’s picture

#5 worked for me too.

Mike Dodd’s picture

#5 worked for me too.

Nicolas S.’s picture

#5 worked for me too
thanks audacus

alexrayu’s picture

Patch from #5 has worked here. Thank you!

kruser’s picture

This seems to be fixed in 5.6

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.