Results 1 to 8 of 8
  1. #1
    Pligg Dev peppolone's Avatar
    Joined
    Dec 2006
    Posts
    187

    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

  2. #2
    Pligg Founder Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,063
    Site
    http://pligg.com/demo/
    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.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  3. #3
    Pligg Dev peppolone's Avatar
    Joined
    Dec 2006
    Posts
    187
    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

  4. #4
    Pligg Founder Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,063
    Site
    http://pligg.com/demo/
    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.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  5. #5
    Pligg Dev peppolone's Avatar
    Joined
    Dec 2006
    Posts
    187
    I tried it but always
    Fatal error: Call to undefined function: imagettfbbox() in /modules/captcha/captchas/WhiteHat/CaptchaSecurityImages.php on line 61

  6. #6
    Pligg Founder Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,063
    Site
    http://pligg.com/demo/
    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.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  7. #7
    Pligg Founder Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,063
    Site
    http://pligg.com/demo/
    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'); 
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  8. #8
    Pligg Dev peppolone's Avatar
    Joined
    Dec 2006
    Posts
    187
    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.

Similar Threads

  1. Captcha Problem
    By meributt in forum Questions & Comments
    Replies: 4
    Last Post: 03-12-2012, 11:35 AM
  2. captcha problem?
    By anudeepkanwar in forum Questions & Comments
    Replies: 4
    Last Post: 05-29-2010, 09:59 PM
  3. Registering + Captcha Problem
    By Roland in forum Questions & Comments
    Replies: 1
    Last Post: 05-22-2008, 12:53 PM
  4. Captcha
    By onis in forum Questions & Comments
    Replies: 1
    Last Post: 12-26-2007, 05:10 PM
  5. No Captcha!!
    By quackking in forum Questions & Comments
    Replies: 6
    Last Post: 10-20-2006, 03:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting