OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Captcha broken image

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

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

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.

Captcha broken image

Postby netdiver » Wed Feb 05, 2014 2:52 am

Dear all,
I've found a strange behaviour in our OJS (and OCS) installation related to captcha.

After successfully enabling captcha, after some days we found that image was not displayed (broken image icon from the browser).
The (strange) solution I have found to fix the problem was to restart Apache web server.

There are no 404 or other messages in the logs related to this problem.

I have no idea of why it happens, but I found out that if I change the format of the captcha image from PNG to JPEG in lib/pkp/classes/captcha/CaptchaManager.inc.php
in lines 70 and 115 I obtain a captcha without restarting Apache server.

Does anyone knows why it happens?
Thanks in advance
Regards from Lorenzo
netdiver
 
Posts: 10
Joined: Wed Dec 21, 2011 4:02 am

Re: Captcha broken image

Postby asmecher » Wed Feb 05, 2014 10:15 am

Hi netdiver,

Most likely this is due to the level of support for PNG images in the libgd library that OJS uses to generate images, i.e. perhaps your PHP was compiled without libpng support.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Captcha broken image

Postby netdiver » Thu Feb 06, 2014 5:02 am

Thanks Alec for reply.
I am using Debian 7 php5 package, and the strange thing is that if I have a freshly restarted apache, the PNGs are correctly generated, after some days of uptime, the PNGs are broken.
netdiver
 
Posts: 10
Joined: Wed Dec 21, 2011 4:02 am

Re: Captcha broken image

Postby asmecher » Fri Feb 07, 2014 1:09 pm

Hi netdiver,

Hmm, strange -- unfortunately it sounds to me like a platform issue (server / PHP / libgd), as there's nothing in OJS that would explain intermittent function like you describe.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 1 guest