You are viewing the PKP Support Forum | PKP Home Wiki

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
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Problem with CAPTCHA

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

Has anyone seen this problem before:

OCS_CAPTCHA_problem.png (11.26 KiB) Viewed 1253 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

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:


in the function:


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


I also tried switching it to:


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.
Posts: 266
Joined: Fri Nov 18, 2005 12:48 pm
Location: Hamilton, Ontario

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.

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

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:

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

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.


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.

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

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest