Closed (fixed)
Project:
CAPTCHA
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
27 Feb 2006 at 08:09 UTC
Updated:
17 Aug 2007 at 21:03 UTC
Jump to comment: Most recent file
On a clean install of drupal cvs_2-26 with captcha.module cvs_2-26 (before & after patching with captcha_1.patch)...
Images are not rendering. I get the alt text instead. ('Captcha Image: you will need to recognize the text in it.')
in the admin log, I get these messages: 'captcha/image/1141027312 not found.'
I could be wrong, but am thinking that in 4.6, the paths to the rendered images included the .png extension (or .gif, whichever they were)
Also, the 'create a node' captcha point is not working (captcha form not displayed in node/add).
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | captcha_6.module | 5.19 KB | oleykin |
Comments
Comment #1
coplan commentedFor the first issue, make sure that your PHP is compiled with the "gd" option (this is required). Please note that if you're using a web server module, you'll need to recompile the module with the GD option. For example, if you use apache, it's actually 'mod_php' that needs to be compiled with the gd option.
It took me a little while to figure this out on my system.
Comment #2
guckie commentedYes, I'm on semi-dedicated hosting, but GD support is definitely in place on their apache server.. all the other applications I've installed in the last couple of years that required GD (or GD Lib 2) have worked fine. I actually had captcha working on a 4.6 drupal test site on the same server.
Thanks for this suggestion though. =)
Comment #3
ngstigator commentedI'm having the same problem with HEAD with rendering a captcha image at all. Captcha works just fine with version 4.6.5, however. I wonder if the problem is that I put the textimage folder into the modules directory, rather than the module itself.
Neither drupal version 4.7 nor 4.6 settings have TrueType fonts specified.
Any advice is appreciated.
Comment #4
peter_n commentedMight be a silly point, but did you allow the access captchas under access control? I hadn't and experienced the same problem.
Comment #5
arnabdotorg commentedThis might have something to do with bug #52578, which I just fixed. Can you please fix & confirm?
Comment #6
guckie commentedHi!
Sorry to take so long getting back to this... went out of town.
I came back planning to look at this. First, I upgraded to drupal 4.7b6. After doing that, it seems the captcha forms don't display at all (neither math nor image, on any captcha point, for any role - access is granted).
Will see if I can get more time to look closer this week.
Comment #7
t3rmin commentedI'm seeing this same problem with the latest CVS HEAD version of Drupal.
Comment #8
wundo commentedDid you download the Captcha for 4.7? ;)
Comment #9
ngaur commentedI've just had this symptom also. As with another poster's comment [#5], my problem was that 'access captchas' was not enabled in the access control settings.
Is there really a good reason why access to captcha images should be restricted in any case?
Captcha Access permissions should default to enabled for anonymous user and authenticated user.
There should at least be some mention of the need to enable access in the install instructions in the README.txt file.
Comment #10
ngaur commentedI've just had this symptom also. As with another poster's comment [#4], my problem was that 'access captchas' was not enabled in the access control settings.
Is there really a good reason why access to captcha images should be restricted in any case?
Captcha Access permissions should default to enabled for anonymous user and authenticated user.
There should at least be some mention of the need to enable access in the install instructions in the README.txt file.
Comment #11
quicksketchAnother cause of images not rendering on some forms but working on others has to do with the caching mechanism. See http://drupal.org/node/57454 for a patch.
Comment #12
oleykin commentedThis patch will fix the second part of your issue with 'Create a node'
in line 34 of captcha.module replace:
'node_form' => t('Create a node'),
with
'story_node_form' => t('Create a story'),
'page_node_form' => t('Create a page'),
It just uses correct value for $formid and plus you get a separate checkbox for story and page.
Modified module is attached.
By the way, anyone can tip me on how to create .patch files (with neat +/- signs) on Windows? Without doing something big, like installing cygwin?
Thanks,
Alex
Comment #13
DaveNotik commentedTortoiseCVS has a patch command. You edit a file you've checked out, then right-click and run the patch command.
WinDiff also has patch capability.
Comment #14
vthirteen commentedcaptcha works fine in registration form, but it does not in node add forum page. i used the above patch but i wonder if it suits for foum nodes too or just stories/pages.
thank you!
Comment #15
vthirteen commented(sorry, title changed by mistake)
Comment #16
vthirteen commentedi applied oleykin's patch at #12 and the new options appear at admin/settings/captcha, but still the captcha does not in node/add/story even if a check the "Create a story" option.
it doesnt seem to be a cache problem since i refreshed the page various times and also because captcha appears correctly in other forms if the respective option is checked in settings page.
any clue?
Comment #17
mike stewart commented#12 submitted by oleykin worked well for me.
in fact expeanded on his change to this, didnt test forum, but everything else rocks!
Comment #18
vthirteen commentedindeed! it works allright, thank you
Comment #19
wundo commented