Posted by vmanimaran on March 26, 2009 at 12:20pm
Jump to:
| Project: | CAPTCHA |
| Version: | 6.x-2.0-beta2 |
| Component: | Image Captcha (image_captcha) |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
hi,
image captcha not reloading the image in my custom form.how to solve this ..?
image captcha working fine in user/register page..
Comments
#1
hi,
image captcha not reloading when click on save if return some error .how to solve this ..?
image captcha working fine in user/register page..
#2
please provide more information
what do you mean with "reloading"?
what is your custom form?
#3
I think this is probably the same thing I've been seeing, so I'll explain.
I saw this when running captcha-6.x-1.0-rc2 on Drupal 6.12. Switching to 6.x-2.0-beta5 solved the problem for me.
I'm using image captcha, and it was working fine till recently. The page I've just been looking at is a node page, being submitted by an anonymous user. I haven't investigated other situations, so can't report if they're affected.
When loading the form the first time, the captcha displays just fine. After submitting the form with an error, the form displays without the captcha, showing the alt text for the captcha image instead.
The html on the page looks fine, except that the captcha URL is the same in both cases. Is a given captcha only able to be served once? If so, this re-use of the image url is important. Checking another site (working, and running CAPTCHA 6.x-2.0-beta5) I see that a different URL is produced the second time.
I've had a look at the HTTP interaction with a packet sniffer. The second request for the captcha image is identical in every response except that it has an If-Modified-Since header at the end of the request.
The response to the second request is quite different:
* HTTP/1.1 200 OK
* Content-Encoding: gzip
* Content-Length: 20
* Content-Type: text/html; charset=utf-8
* gzipped empty data