Getting Captcha Working
I've never had this problem before but it came up after I moved from a Windows 7 development machine to using Ubuntu 14.04.
I didn't notice anything amis until a client asked me to put Captcha on their site. I got all my files of our git repository and a dump of the database so I felt that I had everything I needed but strangely "captcha" and "freeform:captcha" were not responding at all. In fact "if captcha" and "if freeform:captcha" branching always resulted in false!
Specifically I was using Freeform but the problem was in my setup not Freeform
It's got to be in the configuration so here are the things I checked:
- File permissions for the /images/captcha/ directory
- Make sure that require_captcha="yes" is a parameter of the freeform tag
- Member Captcha preferences in Members > Member Preferences > "Enable Membership CAPTCHA"
- Captcha Preferences for the Channel in Admin > Channel > Channel Preferences > "Enable CAPTCHA for Comment Posting?"
- Captcha for emails in Admin > Email Configuration > "Enable CAPTCHAs for Tell-a-Friend and Contact emails"
- The path to the Captcha folder in Admin > Security and Privacy > Captcha Preferences
- Use of True Type fonts for Captcha in Admin > Security and Privacy > Captcha Preferences
- The existence of these files: system/expressionengine/fonts/texb.ttf & system/expressionengine/config/captcha.php
I've listed all these things to check as it could be handy for debugging this problem if you come across it, however none of these things solved my problem.
GD image support library
Just in case I tried to install this php library
sudo service apache2 restart
Et Voila!
We have Captcha!
Expression Engine Tips and Tricks
ExpressionEngine is a Content Management system which is highly flexible. Why not give it a try?
- ExpressionEngine White Screen of Death
- Field Types Trick when Upgrading ExpressionEngine from 2.x to 6.x
- Getting Captcha Working
- ExpressionEngine upgrade 2.7.1 to 2.9.0
- Transcribe tips
- Using SafeCracker with AJAX and Solspace Calendar
- Creating Navigation Using Structure
- CP Loses Its Styling
- Thumbnails aren't Created in EE on a Windows Installation
- Can't Get a Template to Load from File
- How to Remove index.php on IIS
- File Cannot Be Written To Disk
- Error 500.0 Internal Server Error
- Unable to Load Site Preferences
- Your Config File Does Not Appear to be Formatted Correctly