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 🙂
- The topic ‘[Plugin: Quick Post Widget] Error in imagettfbbox function – captcha fails’ is closed to new replies.