Problem with CAPTCHA

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
tshore
Posts: 266
Joined: Fri Nov 18, 2005 12:48 pm
Location: Hamilton, Ontario
Contact:

Problem with CAPTCHA

Postby tshore » Sat Feb 13, 2010 9:50 pm

Has anyone seen this problem before:

OCS_CAPTCHA_problem.png
OCS_CAPTCHA_problem.png (11.26 KiB) Viewed 1286 times


The CAPTCHA characters are all stacked on top of each other on the left-hand side of the CAPTCHA image. I'm thinking it's maybe a problem with how PHP was compiled? Some details:

OCS Version 2.1.2.1

OS platform Linux
PHP version 5.0.4
Apache version Apache/2.0.54 (Mandriva Linux/PREFORK-13.3.20060mdk)

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.10

The CAPTCHA image is created in:

/classes/captcha/CaptchaManager.inc.php

in the function:

generateImage()

and the PHP function that seems to be getting it wrong is:

imagefttext()

I also tried switching it to:

imagettftext()

but that didn't help.

Please, if anyone has come across anything like this before, I would appreciate any suggestions you can offer.

Thank you.

jmacgreg
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am
Contact:

Re: Problem with CAPTCHA

Postby jmacgreg » Wed Feb 17, 2010 7:47 pm

Hi Trudy,

I haven't heard of this problem before. A couple of suggestions: Does the problem persist if you refresh the page? In your config.inc.php, is your font location pointing to a font that exists? Can you try another font and see if it makes a difference? Let us know, and we can investigate further.

Cheers,
James

tshore
Posts: 266
Joined: Fri Nov 18, 2005 12:48 pm
Location: Hamilton, Ontario
Contact:

Re: Problem with CAPTCHA

Postby tshore » Wed Feb 17, 2010 8:46 pm

Refreshing the page doesn't help.

Yes, the font exists. I've tried using a few different fonts and it doesn't help.

Here is the URL of the create account page:

http://imrf.mcmaster.ca/IMRF/ocs2/index.php/imrf/2010/user/account

RickMath
Posts: 264
Joined: Fri Feb 27, 2009 12:30 am

Re: Problem with CAPTCHA

Postby RickMath » Thu Feb 18, 2010 9:07 pm

I also have a problem with the CAPTCHA feature. When activated in config.inc.php I only get a blank box with a red x.

I also have this problem with OJS.

Maybe there is something wrong with both of my installations.

I can say that the CAPTCHA turned on the BOTs can't seem to sign up as users. This is good.

Thanks

Rick

RickMath
Posts: 264
Joined: Fri Feb 27, 2009 12:30 am

Re: Problem with CAPTCHA

Postby RickMath » Tue Feb 23, 2010 9:44 am

I have acheived a solution for both OCS and OJS with the help of James and Tyler. See my post at viewtopic.php?f=2&t=5610

I have tested the solution sisnce last night and all is well.

Rick


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests