I am running mantis version 1.2.1
and when I go to sign up for a new account the captcha image fails to load.
Why is this, do I need to install php image libs or something or is it more simple than that?
Mantis signup Captcha image failed to load
Moderators: Developer, Contributor
Re: Mantis signup Captcha image failed to load
I tried to answer this yesterday, but for some reason the admin rejected my answer, stating that it was spam. Perhaps it's an automated system that triggered on the word which is spelled strangely in this feature. I will spell it "capture" in my response so as not to trigger a rejection, but you will need to re-spell it using the weird spelling indicated in your subject line.
I ran into the same problem, and solved it by disabling the feature. In your config_inc.php file, you need to include the line:
$g_signup_use_capture = OFF;
Remember to respell "capture" as spelled in your subject line, or this won't work.
Hope this helps!
Mike
I ran into the same problem, and solved it by disabling the feature. In your config_inc.php file, you need to include the line:
$g_signup_use_capture = OFF;
Remember to respell "capture" as spelled in your subject line, or this won't work.
Hope this helps!
Mike
Re: Mantis signup Captcha image failed to load
No, it was my mistake. Sorry for this. At the moment there are 50-100 spam posts per day which are filtered by moderators.archtop wrote:Perhaps it's an automated system that triggered on the word which is spelled strangely in this feature.
Re: Mantis signup Captcha image failed to load
Hello, I'm not creating a new thread for this because there are already a lot, and none of them actually giving an answer to the captcha problem.
I'm using version 1.1.6 from debian stable and I don't find how to specify the font for captcha in order for it to work.
g_signup_use_captcha is on by default, but fonts have a windows path, which is quite bad for a debian system (but it's the debian maintainer's fault). I also have the libgd2-xpm package.
What should be put in the g_system_font_folder and g_font_per_captcha variables ? I tried:
$g_system_font_folder = '/usr/share/fonts/truetype/ttf-dejavu/';
$g_font_per_captcha = 'DejaVuSans.ttf';
but it still has no effect on the signup page. Is it really supposed to work or display on this page or where/how?
Thanks.
I'm using version 1.1.6 from debian stable and I don't find how to specify the font for captcha in order for it to work.
g_signup_use_captcha is on by default, but fonts have a windows path, which is quite bad for a debian system (but it's the debian maintainer's fault). I also have the libgd2-xpm package.
What should be put in the g_system_font_folder and g_font_per_captcha variables ? I tried:
$g_system_font_folder = '/usr/share/fonts/truetype/ttf-dejavu/';
$g_font_per_captcha = 'DejaVuSans.ttf';
but it still has no effect on the signup page. Is it really supposed to work or display on this page or where/how?
Thanks.
Re: Mantis signup Captcha image failed to load
Finally, I figured it out. I was missing the right package. Mantis uses the php extension, not the command, and thus it is the php5-gd package that is required for it to work.
I'll report to the debian maintainer that the font folder should be changed to the linux path above.
I'll report to the debian maintainer that the font folder should be changed to the linux path above.
Re: Mantis signup Captcha image failed to load
I had also the problem of missing Captchas.
Because there were absolutely no ttf fonts on the webserver, the only solution was:
upload an arial.ttf to my webspace and use the correct path
$g_system_font_folder = '/usr/xxxx/myurl/fonts/';
$g_font_per_captcha = 'arial.ttf';
then it worked.
Because there were absolutely no ttf fonts on the webserver, the only solution was:
upload an arial.ttf to my webspace and use the correct path
$g_system_font_folder = '/usr/xxxx/myurl/fonts/';
$g_font_per_captcha = 'arial.ttf';
then it worked.
-
ijd2013
Re: Mantis signup Captcha image failed to load
Hi
Has anyone got Mantis working with captchas displaying on CentOS 6.x? I cannot, no matter what I try, get it to work. Font file is there, config is set as suggested in the forums. Nothing works .. I have spent countless hours trying to get this one piece of functionality that I need to get working sorted out. I cannot believe this is so hard to configure or that there are no clear, concise and tested instructions on how to do this.
Failing that, does anyone know how to debug this thing so it actually prints in a logfile what is going on so I can then maybe have half a hope of fixing the issue. Silently failing and having no clearly defined way of debugging the application is also pretty unfriendly. Nothing in the web servers logs, nothing in messages, nothing that shows how you might be able to actually log the errors ...
Not good really.
--Ian
Has anyone got Mantis working with captchas displaying on CentOS 6.x? I cannot, no matter what I try, get it to work. Font file is there, config is set as suggested in the forums. Nothing works .. I have spent countless hours trying to get this one piece of functionality that I need to get working sorted out. I cannot believe this is so hard to configure or that there are no clear, concise and tested instructions on how to do this.
Failing that, does anyone know how to debug this thing so it actually prints in a logfile what is going on so I can then maybe have half a hope of fixing the issue. Silently failing and having no clearly defined way of debugging the application is also pretty unfriendly. Nothing in the web servers logs, nothing in messages, nothing that shows how you might be able to actually log the errors ...
Not good really.
--Ian
Re: Mantis signup Captcha image failed to load
What exactly do you get?
Best would be to attach a screenshot.
Have also a look at
http://www.mantisbt.org/bugs/view.php?id=10972
Might help o find the issue: Temporary change line 80 of file make_captcha_img.php
from
to
Best would be to attach a screenshot.
Have also a look at
http://www.mantisbt.org/bugs/view.php?id=10972
Might help o find the issue: Temporary change line 80 of file make_captcha_img.php
from
Code: Select all
var $debug = FALSE;Code: Select all
var $debug = TRUE;-
ijd2013
Re: Mantis signup Captcha image failed to load
Thanks I did try enabling that debug flag but I don't seem to get any debug output anywhere. I'm going to try wiping the server and re-doing the install of CentOS again from scratch. I'm starting to wonder if one of the patches caused a problem so maybe I'll install it and then try configuring mantis before I update it all ..
-
bodyslam
Re: Mantis signup Captcha image failed to load
For anyone else who is looking to disable captcha the usage is as follows:archtop wrote:I tried to answer this yesterday, but for some reason the admin rejected my answer, stating that it was spam. Perhaps it's an automated system that triggered on the word which is spelled strangely in this feature. I will spell it "capture" in my response so as not to trigger a rejection, but you will need to re-spell it using the weird spelling indicated in your subject line.
I ran into the same problem, and solved it by disabling the feature. In your config_inc.php file, you need to include the line:
$g_signup_use_capture = OFF;
Remember to respell "capture" as spelled in your subject line, or this won't work.
Hope this helps!
Mike
$g_signup_use_captcha = OFF;