This topic was marked solved by its starter, on January 28th, 2014, 09:02 PM

txcas

  • Bug Zapper
  • Posts: 202
Errors when registering
« 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.

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Errors when registering
« Reply #1, 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?
# dpkg-reconfigure brain
error: brain is not installed or configured

txcas

  • Bug Zapper
  • Posts: 202

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Errors when registering
« Reply #3, on January 27th, 2014, 11:56 PM »
Will give it a try later (after re-installing wedge) :)

Nao

  • Dadman with a boy
  • Posts: 16,077
Re: Errors when registering
« Reply #4, on January 27th, 2014, 11:59 PM »
That's not for ReCaptcha, it's for the core captcha files...
Re: Errors when registering
« Reply #5, 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.