Catpcha not working on my FAQ page

All about webserver configurations, PHP and databases.

Moderator: Thorsten

yogesh77
Posts: 22
Joined: Fri May 25, 2007 10:11 am

Catpcha not working on my FAQ page

Post by yogesh77 »

Catpcha not working on my FAQ page when i select "Ask question"
gd with jpeg, png, freetype support are enabled in php.
Please help
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

do you get any error messages?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
yogesh77
Posts: 22
Joined: Fri May 25, 2007 10:11 am

Post by yogesh77 »

No error messages.
A text message "Follow the white rabbit." and a box.
yogesh77
Posts: 22
Joined: Fri May 25, 2007 10:11 am

Post by yogesh77 »

PHP Version 4.4.2

Configure Command - './configure' '--with-mysql' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gd' '--with-zlib-dir=/usr/local' '--with-png-dir=/usr/local/phplib' '--with-jpeg-dir=/usr/local/phplib' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local/phplib' '--enable-cli'

gd installation is default bundled with php source.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can I access your FAQ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
yogesh77
Posts: 22
Joined: Fri May 25, 2007 10:11 am

Post by yogesh77 »

http://askvideo.com/faq/index.php?sid=2 ... action=ask
I also test this on my local testing server, same error is there too.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you please enable the DEBUG mode and access the image directly here http://askvideo.com/faq/index.php?action=ask&gen=img

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
yogesh77
Posts: 22
Joined: Fri May 25, 2007 10:11 am

Post by yogesh77 »

how to enable debug mode? :(
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

open in a editor inc/init.php and set the DEBUG mode to true.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
yogesh77
Posts: 22
Joined: Fri May 25, 2007 10:11 am

Post by yogesh77 »

thanks for the help so far.
I enabled debug mode :)
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you please add this line

Code: Select all

ini_set('display_errors', 1);
after the DEBUG mode because I still get no errors.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
yogesh77
Posts: 22
Joined: Fri May 25, 2007 10:11 am

Post by yogesh77 »

On local system i get below message as image

http://192.168.0.105/kb/index.php?action=ask&gen=img
yogesh77
Posts: 22
Joined: Fri May 25, 2007 10:11 am

Post by yogesh77 »

Yes,
line ini_set('display_errors', 1); added after debug mode line.

Now it looks like

define('DEBUG', true);
ini_set('display_errors', 1);
if (DEBUG) {
error_reporting(E_ALL);
if (defined('E_STRICT')) {
error_reporting(E_ALL & ~E_STRICT);
}
}
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

strange... do you have access to the servers error_log? Which PHP version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
yogesh77
Posts: 22
Joined: Fri May 25, 2007 10:11 am

Post by yogesh77 »

Post Reply