Setting the captcha on a Poll form doesn't work.
I used form_store to store the poll form point so that it was visible in the captcha point form but the captcha is not showing at all in the pointed poll form.

Comments

dkdev’s picture

Same no-show problem with Webform, on a 5.1 site.

I'm trying to use a Captcha 5.x-2.1 on a Webform 5.x-1.3 and it also is not showing up at all. I have Form Store installed and I was able to add the web form as a Captcha point. I also was able to add the Captcha as a form element in Webform, and to apparently configure some header text for the item and weight it to the bottom of the form, but it simply does not appear when displaying the page.

I also installed Textimage 5.x-1.2, which would be nice to have, but there seem to be ongoing problems with the Textimage module compatibility with the new Captcha at this point.

The math question will be fine if I can get it working and I don't need to wait for the image version to be fixed. I have a launch for this form (a petition) by the last week in June at the latest. It may have to go up without a Captcha at all, which would be annoying (but I suppose I can delete any spurious signatures in the Webform Results tool, and this site may not be widely visible to robots for a little while at least). This is a brand new site that has not been announced anywhere yet, all current modules downloaded in the last week, and I'm still just barely beyond Drupal newbie status. But this is the last functional configuration remaining to get in place.

Note: I don't know if it may be related or not, but I also can't get the Webform to accept an alias name entered into the URL path settings. I wonder if this is a problem with Webform rather than Captcha?

landover’s picture

Same here, with newest captcha, webform and form store modules.
in the webform editor, i can add a captcha, but it doesn't show in the webform

soxofaan’s picture

with newest captcha, webform and form store modules.

do you mean captcha-5.x-3? you don't need form store then.

in the webform editor, i can add a captcha, but it doesn't show in the webform

Adding the captcha in the webform editor won't work (webform uses some old captcha API that does not work with captcha-5.x-2 or captcha-5.x-3, as far as I can tell).
You should use the standard way to add a captcha: enable the captcha point (with form_store for captcha-5.x-2 or with the captcha administration links for captcha-5.x-3).

I got it working with captcha-5.x-3 (still under development however).

robloach’s picture

Title: captcha on polls » Captcha on Polls
Version: 5.x-2.1 » 5.x-3.x-dev
Status: Active » Postponed (maintainer needs more info)

Does it work with polls now?

nileshgr’s picture

Version: 5.x-3.x-dev » 5.x-3.1
Status: Postponed (maintainer needs more info) » Active

I am using CAPTCHA 5.x-3.1 ON my Drupal 5.7 site ...... with reCAPTCHA 5.x-2.5 ... but the CAPTCHA doesn't work for polls. people are able to vote without CAPTCHA.. I have tried this with Text CAPTCHA also, but it also don't work :(

soxofaan’s picture

Version: 5.x-3.1 » 6.x-2.x-dev
Component: User interface » Code
Priority: Critical » Normal

Issue reproduced on Drupal 5.
The problem here lies in the fact that the poll module does not follow the Drupal standards of form processing: validate handlers are ignored, data is pulled directly from $_POST, all sorts of ugliness that shouldn't be in a core module.
I would mark this as wontfix for CAPTCHA module 5.x-3-x, because it's a problem in poll module and it can't be fixed in the CAPTCHA module. Moreover, I guess it is not very likely this will be fixed in the poll module because it would involve a lot of changes, and the poll module is one of the less loved core modules.

Issue also reproduced on Drupal 6.
Situation is much better here, poll module adheres much better to Drupal form processing standards. The cause of the issue is however different from the Drupal 5 situation. The poll form is set as cacheable but the CAPTCHA module is not compatible with form caching, because the CAPTCHA module makes every form different which conflicts with caching.
Possible solution is to disable the 'cachability' of forms that get a CAPTCHA.

soxofaan’s picture

Status: Active » Fixed

CAPTCHAs on polls now work with CAPTCHA 6.x-2.x-dev

Status: Fixed » Closed (fixed)

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