Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-23-2008, 07:11 AM
peppolone's Avatar
Pligg Donor
Pligg Version: 995-54
Pligg Template: upnews.it
 
Join Date: Dec 2006
Location: rome
Posts: 123
Thanks: 2
Thanked 35 Times in 13 Posts
captcha problem (rev. 58)

I upgraded to the last rev, but the pligg captcha is always available in the admin menu
Available Captchas

* Pligg Default Captcha | Enable
* reCaptcha | Enable | Configure
* WhiteHat Method | Enable | Configure
* Math Question | In Use | Configure

and the whitecaptcha doesn't work, there is a problem with the image.
<img src="/modules/captcha/captchas/WhiteHat/CaptchaSecurityImages.php"/>
if i open the link i have this error
Fatal error: Call to undefined function: imagettfbbox() in /modules/captcha/captchas/WhiteHat/CaptchaSecurityImages.php on line 60
__________________
My pligg site: www.upnews.it
Reply With Quote
  #2 (permalink)  
Old 08-23-2008, 09:59 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,828
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Thanks for the bug report, I forgot to remove the default module from SVN.
I had someone look at the Pligg and they made a change to the CaptchaSecurityImages.php thinking they were fixing a problem with Linux computability, but it seems they broke it altogether. Easy fix is to change

Code:
 realpath($this->font)
To:
Code:
 $this->font
This occurs on lines 61 and 64.
I will make the change to the SVN right now.

In the future please post bug fixes to Pligg Projects.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.

Last edited by Yankidank; 08-23-2008 at 10:08 PM..
Reply With Quote
  #3 (permalink)  
Old 08-24-2008, 05:58 AM
peppolone's Avatar
Pligg Donor
Pligg Version: 995-54
Pligg Template: upnews.it
 
Join Date: Dec 2006
Location: rome
Posts: 123
Thanks: 2
Thanked 35 Times in 13 Posts
ok tnx, long time I'm on the forum, I had never seen that section
remove also
Code:
			<li>Pligg Default Captcha | {if $captcha_method eq "default"}<b>In Use</b>{else}<a href="module.php?module=captcha&captcha=default&action=enable">Enable</a>{/if}
				{* | <a href="module.php?module=captcha&captcha=default&action=configure">Configure</a> *}
			</li>
from captcha_home.tpl
__________________
My pligg site: www.upnews.it

Last edited by peppolone; 08-24-2008 at 06:08 AM..
Reply With Quote
  #4 (permalink)  
Old 08-24-2008, 06:09 AM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,828
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Yeah, its kind of hidden in the tabs up top. We're trying to move all bugs and feature requests into there so that we can be a bit more organized. Projects offers a lot of great features that allow the developers to confirm, prioritize
and post fixes to problems.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #5 (permalink)  
Old 08-24-2008, 06:17 AM
peppolone's Avatar
Pligg Donor
Pligg Version: 995-54
Pligg Template: upnews.it
 
Join Date: Dec 2006
Location: rome
Posts: 123
Thanks: 2
Thanked 35 Times in 13 Posts
I tried it but always
Fatal error: Call to undefined function: imagettfbbox() in /modules/captcha/captchas/WhiteHat/CaptchaSecurityImages.php on line 61
__________________
My pligg site: www.upnews.it
Reply With Quote
  #6 (permalink)  
Old 08-24-2008, 02:26 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,828
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
I'll test this out tonight or tomorrow morning. I reverted the changed code to what it was so it shouldn't have a problem. Maybe I missed something.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #7 (permalink)  
Old 08-24-2008, 04:38 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,828
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
I just tested on localhost, and the image is displaying fine with the latest revision (60). Does line 61 of CaptchaSecurityImages.php read the same as below?
PHP Code:
        $textbox imagettfbbox($font_size0$this->font$code) or die('Error in imagettfbbox function'); 
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #8 (permalink)  
Old 08-26-2008, 02:41 PM
peppolone's Avatar
Pligg Donor
Pligg Version: 995-54
Pligg Template: upnews.it
 
Join Date: Dec 2006
Location: rome
Posts: 123
Thanks: 2
Thanked 35 Times in 13 Posts
yes
$textbox = imagettfbbox($font_size, 0, $this->font, $code) or die('Error in imagettfbbox function');
This function requires both the GD library and the » FreeType library.
__________________
My pligg site: www.upnews.it
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg Captcha Yankidank Wiki Articles 1 08-13-2008 02:25 AM
Registering + Captcha Problem Roland Bug Report 1 05-22-2008 03:53 PM
CAPTCHA Image Problems : Some Tips roschler Bug Report 3 07-29-2007 08:15 PM
CAPTCHA (I know, I read the other posts on this already) doctorgirlfriend Bug Report 4 04-10-2007 10:40 PM
Problem form doesn't work! nabil Bug Report 1 04-01-2006 08:53 PM


Search Engine Friendly URLs by vBSEO 3.2.0