Mantis 1.2.19: captcha broken

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
eleonore
Posts: 3
Joined: 15 Aug 2015, 12:37

Mantis 1.2.19: captcha broken

Post by eleonore »

Hi, new user here....

installed Mantis 1.2.19 recently, and captcha is not working, thus users can't register.

Turned on $debug in make_captcha_img.php as per some old thread from 2013 to see what was going on, and no ttf was found. Added $g_system_font_folder with appropriate dir, output from $debug is:

-Captcha-Debug: The available GD-Library has major version 2
-Captcha-Debug: Extracts Config-Array in unsecure-mode!
-Captcha-Debug: Check given TrueType-Array! (1)
-Captcha-Debug: Valid TrueType-files: (1)
-Captcha-Debug: Set current TrueType-File: (/var/www/CENSORED/www/fonts/arial.ttf)
-Captcha-Debug: Set number of noise characters to: (0)
-Captcha-Debug: Set image dimension to: (120 x 36)
-Captcha-Debug: Generate private key: (da8fa)
-Captcha-Debug: Generate ImageStream with: (imageCreate())
-Captcha-Debug: For colordefinitions we use: (imagecolorclosest())
-Captcha-Debug: We allocate one color for Background: (238-249-255)
-Captcha-Debug: Allocate 216 websafe colors to image: (217)
-Captcha-Debug: Fill background with x-gridlines: (12)
-Captcha-Debug: Fill background with y-gridlines: (4)
-Captcha-Debug: Fill foreground with chars and shadows: (5)

Couldn't find anywhere how output's supposed to look. Image is not created. (signup_page.php displays broken img, make_captcha_img.php displays nothing at all)

# gdlib-config --version
2.0.36

open_basedir not set

Creation of other images on server (thumbnails and such) works, so I'm guessing it's not a PHP issue.

Any ideas? :(

Greetings, Eleonore
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Mantis 1.2.19: captcha broken

Post by atrol »

Are there any errors/warnings when running admin/check.php?
Are there any errors/warnings in web server logs?
Please use Search before posting and read the Manual
eleonore
Posts: 3
Joined: 15 Aug 2015, 12:37

Re: Mantis 1.2.19: captcha broken

Post by eleonore »

"Warning: The configuration option use_phpMailer is now obsolete"

That's the only warning. Nothing in the server logs.
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Mantis 1.2.19: captcha broken

Post by atrol »

eleonore wrote:"Warning: The configuration option use_phpMailer is now obsolete"
Seems this is not a new installation but an upgrade from an earlier version. Right?
If so, is there any custom code that might cause the issue?
Please use Search before posting and read the Manual
eleonore
Posts: 3
Joined: 15 Aug 2015, 12:37

Re: Mantis 1.2.19: captcha broken

Post by eleonore »

atrol wrote:
eleonore wrote:"Warning: The configuration option use_phpMailer is now obsolete"
Seems this is not a new installation but an upgrade from an earlier version. Right?
If so, is there any custom code that might cause the issue?
No, it is a new installation. I found the use_phpMailer thing on some forum, didn't know how else to get emails to work.
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Mantis 1.2.19: captcha broken

Post by atrol »

Do you have a closing PHP tag in file config_inc.php?
If so, remove it.
Please use Search before posting and read the Manual
Post Reply