WordPress.org

Ready to get started?Download WordPress

Forums

Quick Post Widget
[resolved] Error in imagettfbbox function - captcha fails (2 posts)

  1. siliconrockstar
    Member
    Posted 2 years ago #

    I was getting errors in CaptchaSecurityImages.php on my dev server on lines 60 and 64.

    Line 60: $textbox = imagettfbbox($font_size, 0, $this->font, $code) or die('Error in imagettfbbox function');

    It looks like $this->font was probably evaluating to 'monofont.ttf'. I fixed it by hardcoding the value into the function call as './monofont.ttf', so now it looks like

    $textbox = imagettfbbox($font_size, 0, './monofont.ttf', $code) or die('Error in imagettfbbox function');

    and did the same on line 64. Hope that helps someone, and maybe the plugin author. Other than that, EXCELLENT plugin that is going to save me a lot of time :)

    http://wordpress.org/extend/plugins/quick-post-widget/

  2. inapan
    Member
    Plugin Author

    Posted 2 years ago #

    @siliconrockstar

    Thanks for sharing!

    inapan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic