Captcha not working on 1.60

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

firstchoiceaquatics
Posts: 14
Joined: Sun Mar 26, 2006 10:55 pm

Captcha not working on 1.60

Post by firstchoiceaquatics »

I've just installed version 1.60 and although the captcha image appears to show (on send to friend) when I complete the form I receive the message

Required fields are your name, your email address, your question and Captcha Code!

I've certainly completed name, email address, question and captcha code but it doesn't seem to like what I've done! Anyone got any ideas where I should start looking?

I definitely have GD installed and enabled on my server.

Any help would be appreciated.
Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

did you use any word from our bad word list? Didn't you solve the captcha code correctly?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
firstchoiceaquatics
Posts: 14
Joined: Sun Mar 26, 2006 10:55 pm

Post by firstchoiceaquatics »

Hi Thorsten.

No, I didn't use any of the badwords.

I tried the captcha code several times (uppercase, lowercase etc).

Strange, the image was always the same thing. Follow the white rabbit.

Does that help to pinpoint the cause?
Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

do you see "follow the white rabbit"? Then you don't see the image. Can you give the URL of your FAQ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
firstchoiceaquatics
Posts: 14
Joined: Sun Mar 26, 2006 10:55 pm

Post by firstchoiceaquatics »

Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you enable the debug mode in inc/init.php? Then I can see the PHP error message.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
firstchoiceaquatics
Posts: 14
Joined: Sun Mar 26, 2006 10:55 pm

Post by firstchoiceaquatics »

Hi Thorsten

I've done that. I assume it won't make my server insecure!
Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you can disable it now. I can see no error messages...

Can you add the following line in inc/captcha.php...

Instead of

Code: Select all

class PMF_Captcha
{
this

Code: Select all

error_reporting(E_ALL);

class PMF_Captcha
{
thanks
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
firstchoiceaquatics
Posts: 14
Joined: Sun Mar 26, 2006 10:55 pm

Post by firstchoiceaquatics »

Hi

That code's already in captcha
Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

what's happening when you're removing this line with error_reporting() ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
firstchoiceaquatics
Posts: 14
Joined: Sun Mar 26, 2006 10:55 pm

Post by firstchoiceaquatics »

If I look at the properties of the image I see
http://www.first-choice-aquatics.co.uk/ ... nd&gen=img
200px wide 40px high
0 bytes

I've removed error reporting and nothing is different.
Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you try this:

Code: Select all

ini_set('display_errors', 1);
error_reporting(E_ALL);

class PMF_Captcha
{
I think the display of error messages is disabled.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
firstchoiceaquatics
Posts: 14
Joined: Sun Mar 26, 2006 10:55 pm

Post by firstchoiceaquatics »

Hi

I now get a message

Notice: Undefined property: solution_id in /home/httpd/vhosts/first-choice-aquatics.co.uk/httpdocs/faq/artikel.php on line 52

Notice: Undefined property: revision_id in /home/httpd/vhosts/first-choice-aquatics.co.uk/httpdocs/faq/artikel.php on line 53
Thorsten
Posts: 15758
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

did you an update from 1.5.x?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
firstchoiceaquatics
Posts: 14
Joined: Sun Mar 26, 2006 10:55 pm

Post by firstchoiceaquatics »

Yes, that's exactly right.
Post Reply