RC2 CAPTCHA

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

RC2 CAPTCHA

Post by david_de »

Has the CAPTCHA been removed from RC2? I do not see it on my fresh install of 1.57 restore backup then updated to 1.60 RC2. I had it on RC1 and it was working well. If there was a place in admin to turn it on I could not locate it.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the captcha has not been removed! It's working here on my test systems... can you call the image directly via http://www.example.org/faq/index.php?action=add&gen=img ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Post by david_de »

Thorsten wrote:can you call the image directly via http://www.example.org/faq/index.php?action=add&gen=img ?
No, I get the following error

Code: Select all

Fatal error: Call to undefined function: imagecreate() in D:\wamp\www\faq\inc\captcha.php on line 326

[/code]
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you do not have GD-Support enabled in your PHP.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Post by david_de »

I had it working previously on RC1 I do not beleive I have reinstalled PHP since then but I may have. I found this information
The GD2 extension is included, but disabled by default. You can configure PHP to load the GD2 extension by left-clicking on the WAMP system tray icon, go to PHP Extensions > Add Extens
When I do so I find php_GD2 marked as enabled.

Could it be one of my templates? I will replace all templates with original and see if that helps.

Ok yes that was it. With original templates folder from 1.60 RC2 it works. I will see which one was causing the problem and report back.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay... strange issue.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Post by david_de »

Thorsten,

It was the ask.tpl that I had previously set to remove the right column with javascript that was posted at some time in the past in this forum as one persons solution to lack of space.

Code: Select all

<script type="text/javascript">
   width = 0;
   if (window.innerWidth) {
      width = window.innerWidth;
   } else if (document.body && document.body.offsetWidth) {
      width = document.body.offsetWidth;
   }
   if ((width == 0) || (width < 1000)) {
      if (document.getElementById) {
         document.getElementById('sidebar-right').style.display = 'none';
         document.getElementById('centercolumn').style.marginRight = '10px';
      }
   }
</script>
It was never a problem until now when I notice the CAPTCHA did not work. Everything seems ok now with the original 1.60 RC2 ask.tpl. The right column seems to fit ok too at 1024 X 768.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

strange...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply