Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: homer09001 on May 23, 2009, 02:37:29 PM

Title: CAPTCHA broken?
Post by: homer09001 on May 23, 2009, 02:37:29 PM
im in the process of setting up a new forum on my server but im currently having a problem with CAPTCHA images they all appear broken?

http://ge.dth-scripts.com/SMFForums/index.php?action=register (http://ge.dth-scripts.com/SMFForums/index.php?action=register)

i've never had this problem before?

i've tried replacing:

$can_do_ttf = function_exists('imagettftext');
with:

$can_do_ttf = false;


in subs_graphics.php

but this also yields no positive results any help would be greatly appreciated.
Title: Re: CAPTCHA broken?
Post by: homer09001 on May 23, 2009, 02:44:23 PM
just tried accessing the CAPTCHA image directly and it spurts this error out?


Parse error: syntax error, unexpected T_ELSE in /home/.philadelphia/homer09001/Ge.dth-scripts.com/SMFForums/Sources/Subs-Graphics.php on line 227


which would mean there is a opening or closing bracket missing somewhere?
Title: Re: CAPTCHA broken?
Post by: ericnet on May 23, 2009, 03:05:49 PM
Same problem, captcha in 2rc1-1 not work, I have change theme but not work  :(
Title: Re: CAPTCHA broken?
Post by: Yağız... on May 23, 2009, 03:08:30 PM
Search in ../Sources/Subs-Graphics:
// Walk the right path. if (!empty($modSettings['currentAttachmentUploadDir']))
Replace with:
// Walk the right path.
if (!empty($modSettings['currentAttachmentUploadDir']))
Title: Re: CAPTCHA broken?
Post by: ericnet on May 23, 2009, 03:13:55 PM
Work...

Very thanks  ;)
Title: Re: CAPTCHA broken?
Post by: homer09001 on May 23, 2009, 03:53:31 PM
Yep Works thank, Thread marked as SOLVED.
Title: Re: CAPTCHA broken?
Post by: Chas Large on June 10, 2009, 02:49:04 AM
Thanks. I had the same "Bug" but didn't realise the CAPTCHA was not working till someone reported it.
Title: Re: CAPTCHA broken?
Post by: Chas Large on June 10, 2009, 08:24:30 AM
I'm the last person to complain about free software but, as this problem is evidently a bug in the Update from 1.1.9 to 2.0 RC 1-1 I would have thought it should be ANNOUNCED somewhere.

I was only working on a test forum but I'm sure there are those that are using this on a live forum and may not be getting the members join because they can't see the CAPTCHA image or worse they're having to manually register people. I'm sure there must be lots of people out there wh are unaware their CAPTCHA is not working correctly after the upgrade.

As I said, not a complaint just a request to make this problem more well known to users.

Chas
Title: Re: CAPTCHA broken?
Post by: vejida on June 10, 2009, 11:35:54 AM
Thank's for the info, Please sticky this for others.

PS: The fix worked great! I have added Captcha back to my forum.