ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Captcha images broken, but not always

December 08, 2009 11:06am

Subscribe [2]
  • #1 / Dec 08, 2009 11:06am

    eeart

    257 posts

    We use Captchas on our registration page. Since today the Captcha images are broken. But what’s strange is that some times it does work. If I look in my /images/captchas/ directory I can see that most of the images in there are 0 Kb, but some of them are 3 Kb. Maybe about 1 in every 10 is there. If I refresh the registration page over and over again then occasionally I will see the captcha image, but most times it’s broken.

    I have checked all the usual things. Permissions on the folder are right, GD library is installed, PHP memory limit is set to 64Mb, path to captcha directory is correct and it’s a full path, ...

    What could be the problem? Has anyone else had this before?

  • #2 / Dec 08, 2009 11:18am

    eeart

    257 posts

    It is fixed now. There was not enough disk space. I deleted the cache and now it is working again.

    The reason it was working intermittently was, I believe, because EE had just deleted one or more captcha images from the captchas directory so there was just enough space to create a new image. When 0 Kb images were deleted it would not make a different so it would serve up a new broken image again. I don’t know how EE works with these captcha images, but it looks like it keeps a certain number in there and deletes old ones as new ones are created?

  • #3 / Dec 08, 2009 12:04pm

    Sue Crocker

    26054 posts

    You might want to consider some sort of cron job to clear out those cached files.

    It looks like you figured out what the issue was. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases