views:

312

answers:

2

Hi code igniter captcha is not working in my page.My php gd library enabled but no change result

+1  A: 

The first thing to do to debug a CodeIgniter application is turn on log into a DEBUG level. Do this by editing file system/application/config/config.php, find these line:

$config['log_threshold'] = 2;

If the value is 0, change it to 2.

After that, make sure the diractory system/logs is writable by web server process. Access the application page, then open the log file. In your code, add this line to write it's own log:

log_message(LEVEL, MESSAGE);

LEVEL will be a DEBUG or ERROR, or else. Read the user_guide for more complete explanation.

CI captcha plugins need you to have correct path to font and cache directory. Follow the example in system/plugins/captcha_pi.php file, you should have it worked.

Donny Kurnia
+1  A: 

don't forget to set your directory permission to 777.

jack