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

CommentFileSizeAuthor
#12 captcha_6.module5.19 KBoleykin

Comments

coplan’s picture

For 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.

guckie’s picture

Yes, 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. =)

ngstigator’s picture

I'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.

peter_n’s picture

Might be a silly point, but did you allow the access captchas under access control? I hadn't and experienced the same problem.

arnabdotorg’s picture

This might have something to do with bug #52578, which I just fixed. Can you please fix & confirm?

guckie’s picture

Hi!

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.

t3rmin’s picture

I'm seeing this same problem with the latest CVS HEAD version of Drupal.

wundo’s picture

Did you download the Captcha for 4.7? ;)

ngaur’s picture

I'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.

ngaur’s picture

I'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.

quicksketch’s picture

Another 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.

oleykin’s picture

Assigned: Unassigned » oleykin
Status: Active » Reviewed & tested by the community
StatusFileSize
new5.19 KB

This 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

DaveNotik’s picture

TortoiseCVS 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.

vthirteen’s picture

Title: Image doesn't render, also - 'Create a node' captcha point not working » captcha in node add forum doesnt work

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

vthirteen’s picture

Title: captcha in node add forum doesnt work » Image doesn't render, also - 'Create a node' captcha point not working

(sorry, title changed by mistake)

vthirteen’s picture

i 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?

mike stewart’s picture

#12 submitted by oleykin worked well for me.

in fact expeanded on his change to this, didnt test forum, but everything else rocks!

'story_node_form' => t('Create a story'),
'page_node_form' => t('Create a page'),
'event_node_form' => t('Create an event'),
'forum_node_form' => t('Create a new forum topic'),
vthirteen’s picture

indeed! it works allright, thank you

wundo’s picture

Status: Reviewed & tested by the community » Closed (fixed)