I have Image captcha with the dejavu-ttf-2.20 fonts, and DejaVuSans.ttf as my font, for the comments for anonymous users.

I have i18n module installed, with default to Arabic (ar/), and second is English (en/).

It seems to me that everytime i'm on the node page with
mysite.com/en/node/2
I can see the captcha image. However, Everytime i'm on the node through
myslite.com/ar/node/2
or
myslite.com/node/2
The image seems broken, and i cannot see it. I had to go onto Opera to notice the alt text.

Looking at the image URL when it works, It is like so
http://mysite.com/en/image_captcha/1193157528

I tried to manually change it to
http://mysite.com/ar/image_captcha/1193157528
and
http://mysite.com/image_captcha/1193157528

And i got broken links.

I also tried to let Drupal generate it's own one in the ar/ part, which gave me
http://mysite.com/ar/image_captcha/1702733722
which is also broken.

So it seems it only works on en/ , and not on anything else.

Comments

soxofaan’s picture

I can't reproduce this problem.
I have a i18n setup with English (en) and Dutch (nl).
All these work with image CAPTCHA om comments:
?q=en/node/13
?q=nl/node/13
?q=en/comment/reply/13
?q=nl/comment/reply/13

Concerning your experiments with the image URLs: note that an CAPTCHA image can only be requested once: you can't reload a CAPTCHA image, or copy the URL from source view and try to view it.

If you want to 'rerequest' the CAPTCHA image for testing, look for this line in image_captcha.module (around line 390):

  // unset the code from $_SESSION to prevent rerendering the CAPTCHA
  unset($_SESSION['image_captcha'][$seed]);

and disable it (remove it or make it a comment)

soxofaan’s picture

Status: Active » Postponed (maintainer needs more info)
soxofaan’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Closing issues for unsupported 5.x release (due to Drupal 7 release).

If you are still experiencing this bug for 6.x or 7.x releases, please reopen this issue.