Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: txcas on January 27th, 2014, 10:58 PM

Title: Errors when registering
Post by: txcas on January 27th, 2014, 10:58 PM
The moving Captcha image is not displayed when registering and the following errors are logged:
Code: [Select]
2: imagettftext() [<a href='function.imagettftext'>function.imagettftext</a>]: Could not find/open font
Apply Filter: Only show the errors from this file File: /home/creedmoo/public_html/sandbox/gz/app/captcha_captcha-recomposeanim_shadow.php
 Line: 63

 2: imagettftext() [<a href='function.imagettftext'>function.imagettftext</a>]: Could not find/open font
Apply Filter: Only show the errors from this file File: /home/creedmoo/public_html/sandbox/gz/app/captcha_captcha-recomposeanim_shadow.php
 Line: 59

This happens after enabling the ReCaptcha plug in.  I disabled the plugin and have not been able to repro.
Title: Re: Errors when registering
Post by: Pandos on January 27th, 2014, 11:16 PM
Code: [Select]
In order to use this plugin, you will require a pair of keys for your site, a public key and a private one. You can obtain these from [url=https://www.google.com/recaptcha/admin/create]the Google reCAPTCHA site[/url], note that you will need to sign in with a Google Account.
You've already done this?
Title: Re: Errors when registering
Post by: txcas on January 27th, 2014, 11:36 PM
Yes I configured the public and private keys.
Title: Re: Errors when registering
Post by: Pandos on January 27th, 2014, 11:56 PM
Will give it a try later (after re-installing wedge) :)
Title: Re: Errors when registering
Post by: Nao on January 27th, 2014, 11:59 PM
That's not for ReCaptcha, it's for the core captcha files...
Title: Re: Errors when registering
Post by: Nao on January 28th, 2014, 12:06 AM
In /core/app/captcha/captcha-recomposeanim_shadow.php:

Replace line 37

Code: [Select]
$font = ASSETS_DIR . '/fonts/Screenge.ttf';

With

Code: [Select]
$font = ASSETS_DIR . '/fonts/wecaptcha1.ttf';

This bug was introduced by Arantor nearly a year ago... I'll commit that fix tomorrow.