Captcha image not working after upgrade

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
pathogen
Posts: 3
Joined: Sat Jun 29, 2013 10:49 am

Captcha image not working after upgrade

Post by pathogen »

Hi, just upgraded from 2.80 to 2.81 and afterwards the captcha image is showing as broken.

I've tested in multiple browsers, and it's the same in all.

Anyone have a clue what may have gone wrong?

I'm just in the process of setting the site up.

Thanks in advance.
Thorsten
Posts: 15564
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Captcha image not working after upgrade

Post by Thorsten »

Hi,

can you point me to your FAQ? We didn't do any changes in the captcha component between 2.8.0 and 2.8.1

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
pathogen
Posts: 3
Joined: Sat Jun 29, 2013 10:49 am

Re: Captcha image not working after upgrade

Post by pathogen »

http://www.easipc.co.uk/faq

Thanks for looking.
Thorsten
Posts: 15564
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Captcha image not working after upgrade

Post by Thorsten »

Hi,

we did change one thing. We changed the default image type from PNG to JPEG because of IE8 and IE9 issues. You could turn on the debug mode in inc/Bootstrap to find out what's happening on your system.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
BCooper
Posts: 19
Joined: Mon Jul 01, 2013 10:37 am

Re: Captcha image not working after upgrade

Post by BCooper »

We have the same problem, after some poking around;

I believe the issue is with \inc\PMF\Captcha.php line 213.

Is currently:

Code: Select all

imagejpeg($this->img, '', ( int )$this->quality);
Should be:

Code: Select all

imagejpeg($this->img, NULL, ( int )$this->quality);
Once the changes are saved, captcha should work again.

Issue: https://github.com/thorsten/phpMyFAQ/issues/713
pathogen
Posts: 3
Joined: Sat Jun 29, 2013 10:49 am

Re: Captcha image not working after upgrade

Post by pathogen »

Perfect! Fixed!

Thanks for your help. :lol:
Post Reply