WordPress.org

Support

Support » Plugins and Hacks » Quick Post Widget » [Resolved] [Plugin: Quick Post Widget] Error in imagettfbbox function – captcha fails

[Resolved] [Plugin: Quick Post Widget] Error in imagettfbbox function – captcha fails

  • siliconrockstar

    @siliconrockstar

    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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Quick Post Widget] Error in imagettfbbox function – captcha fails’ is closed to new replies.
Skip to toolbar