Captcha Image Not Showing Captcha Image Not Showing
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Captcha Image Not Showing

Started by yamiacaveman, January 03, 2015, 04:18:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yamiacaveman

Version 1.5.34

http://stalag13000.net/Gallery/register.php

gd
GD Support   enabled
GD Version   bundled (2.1.0 compatible)

Captcha Image not showing -- Tried other Themes still nothing - tried replacing captcha.php and captcha.inc --nothing -- tried firefox and chrome no visual

I will let the captcha turned on in registration for today.

yamiacaveman

Joe Carver

Confirm the images folder contains a font folder with the fonts the captcha needs to display;
                     -\your_web_root_cpg15x\images\fonts

Run versioncheck.php.
It can also be checked by directly requesting cpg to produce the captcha image;
http://stalag13000.net/Gallery/captcha.php

yamiacaveman

Fonts seemed to be Good -- Non the less I took the image file from a working cpg that I have and uploaded and replaced the whole folder.

Working version on PHP 5.3 Not working on 5.6  (Different servers) Changed 5.6 to 5.3 and no difference.

A path to the image might be bad somewhere but I don't have a clue of where to look for that/

A setting somewhere?




yamiacaveman

Ok I found the Problem but I would certainly LOVE to know WHY.

A while back I modified some text in the lang -english.php file

How does this remove the Captcha?

Remove modified english.php replaced with untouched english.php -- modified english.php again and is now working again?

allvip

Maybe you made some mistakes like removing  ' from something like this $lang_common['confirm'] = 'Confirmation'; // cpg1.5

I know is save and OK to change, but only the words.
Ex:

$lang_common['confirm'] = 'Confirmation'; // cpg1.5

to:

$lang_common['confirm'] = 'Confirm the code'; // cpg1.5

You can try it again and see if you have the same issue.

I changed everything in english.php for captcha and it works fine.

Also pay attenttion to text with ' like didn't. Has to be didn\'t because the text is inside ' '
Like this one: $lang_errors['captcha_error'] = 'The confirmation code didn\'t match'; // cpg1.5.


ΑndrĂ©

This usually happens if you (accidentally) add white spaces before the opening or after the closing PHP tag. Feel free to search our boards for that issue, there already exist some threads with exactly that issue.