View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020908 | mantisbt | signup | public | 2016-05-14 02:11 | 2016-06-01 16:08 |
Reporter | superkarl | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | amd64 | OS | ubuntu server | OS Version | 14.04 LTS |
Product Version | 1.2.19 | ||||
Summary | 0020908: Captcha image doesn't work | ||||
Description | I migrated the MantisBT from local server to a cloud server several days ago. And found that the captcha image function doesn't work anymore. The function works well on the local server. The local server uses the following software: But the cloud server uses new software: Does the new software bring the problem? And how can I fix it? Currently, I just disabled the function. By the way, on the cloud server, I have the following warning at the top of every page: SYSTEM WARNING: 'mysql_connect(): Headers and client library minor version mismatch. Headers:50712 Library:50549' in '/data/www-data/mantisbt-1.2.19/library/adodb/drivers/adodb-mysql.inc.php' line 365 | ||||
Tags | No tags attached. | ||||
superkarl, This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required". Please use the forums, the mantisbt-help mailing list or IRC to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details). Ensure that
Check that running admin/check.php does not output any errors or warnings. Feel free to reopen this issue, if you think this a bug but no configuration issue. If so, keep in mind that the provided information is not sufficient to provide any help in resolving the issue. A complete and detailed description is required for the support team to get a clear understanding of the problem. You have to provide detailed, step-by-step instructions to reproduce the issue; the additional information listed below may also be useful:
|
|
I use default values for $g_font_per_captcha and $g_system_font_folder on local server and cloud server. Aka: I searched the font 'arial.ttf' on local server (sudo find / -name 'arial.ttf'), but failed to find it. However, the function just works. I don't know why. I also searched the font 'arial.ttf' on cloud server, and didn't find it neither. So I copied the 'arial.ttf' from windows and put it in /usr/shared/fonts on cloud server. And set the $g_system_font_folder='/usr/share/fonts/'. Still, captcha image doesn't work. Next I set $g_font_per_captcha='DejaVuSans.ttf' (The path for this font is /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf). Still, captcha image doesn't work. //////////////////////////////////////////////////////////////// gd.jpeg_ignore_warning 0 0 //////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// No MantisBT source was modified. //////////////////////////////////////////////////////////////// $g_signup_use_captcha = ON; $g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_DATABASE; |
|
I did all I can, but the function still doesn't work. |
|
To exclude the client side, do you see the captcha image at http://atrol.de/mantisbt-1.2.19/signup_page.php ? |
|
Yes, I can see the captcha image at http://atrol.de/mantisbt-1.2.19/signup_page.php. |
|
Don't set $g_system_font_folder |
|
I deleted the 'arial.ttf' which I copied from windows, removed the following lines from config_inc.php, installed msttcorefonts and restarted httpd, still, it doesn't work. $g_signup_use_captcha = ON; |
|
Temporary change line 80 of file make_captcha_img.php from Right click on the place where the image should be displayed and choose something like "Open picture in new tab" |
|
In the new tab, I can see some debug logs and the captcha image! -Captcha-Debug: The available GD-Library has major version 2 |
|
It's not a Mantis issue, but a PHP/MySQL issue. This is hardly related to the captcha issue but should certainly be fixed in a first step. |
|
I changed the mysql client from mysql to mysqli. It worked. The warning went away and captcha image function works very well. Thank you very much. |
|
Thanks for the feedback. mysql has been deprecated since PHP 5.5 and has been removed in PHP 7.0 [1] Seems that using mysql extension in PHP 5.6 in combination with a newer MySQL server introduces some strange side effects. Anyway, we will always use mysqli in Mantis 1.3 if PHP version is 5.5. or newer, see 0016941. |
|