Captcha image not showing up

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
sapmin
Posts: 1
Joined: 01 Jun 2007, 00:01
Location: Boca Raton, Florida, USA

Captcha image not showing up

Post by sapmin »

The captcha image would not display for my new user signup. I looked around and couldn't find this answered, maybe I was supposed to know this but I didn't.

When all else fails, try something.

My server is a VPS linux environment. Mantis 1.0.7

Took these lines from config_defaults_inc.php

$g_signup_use_captcha = OFF;
$g_system_font_folder = 'c:/winnt/fonts/';
$g_font_per_captcha = 'arial.ttf';

Put them into config_inc.php like this

$g_signup_use_captcha = ON;
$g_system_font_folder = '';
$g_font_per_captcha = '';

Fixed - Captcha image shows up fine.
Newbie ... getting smarter every day
readybrek
Posts: 1
Joined: 14 Apr 2010, 14:54

Re: Captcha image not showing up

Post by readybrek »

I know the issue has probably been long since solved, but for anyone else cruising the forums for an answer to the above, look no further than good old fashioned Windows directory permissions.

You'll need to make sure that mantis (and or php) is allowed to access 'c:\winnt\fonts\'. My simple workaround involved copying 'arial.ttf' (or your preferred true type font) and dumping it directly in the '%webroot%\mantisbt\' directory.

My config_inc.php lines look like this:

$g_signup_use_captcha = ON;
$g_system_font_folder = 'C:/Inetpub/wwwroot/mantisbt/';
$g_font_per_captcha = 'impact.ttf';

And suddenly the jumbled letters and numbers appear!
Klone
Posts: 2
Joined: 23 Nov 2010, 23:00

Re: Captcha image not showing up

Post by Klone »

I uploaded Mantis to my web server. What do I enter to enable the Captcha image?
atrol
Site Admin
Posts: 8539
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Captcha image not showing up

Post by atrol »

The captcha is enabled by default (if we are talking about vesion 1.2.3 of MantisBT)
If there are any problems showing the captcha they might be caused by wrong font settings. See previous post how to customize the font settings.
Please use Search before posting and read the Manual
Klone
Posts: 2
Joined: 23 Nov 2010, 23:00

Re: Captcha image not showing up

Post by Klone »

I uploaded a font since there was none before and edited it in the config file and now the image appears.
Post Reply