forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: yamiacaveman on January 03, 2015, 04:18:50 pm

Title: Captcha Image Not Showing
Post by: yamiacaveman on January 03, 2015, 04:18:50 pm
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
Title: Re: Captcha Image Not Showing
Post by: Joe Carver on January 03, 2015, 06:51:18 pm
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
Title: Re: Captcha Image Not Showing
Post by: yamiacaveman on January 03, 2015, 07:20:11 pm
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?



Title: Re: Captcha Image Not Showing
Post by: yamiacaveman on January 03, 2015, 11:17:40 pm
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?
Title: Re: Captcha Image Not Showing
Post by: allvip on January 08, 2015, 01:36:01 pm
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:

Code: [Select]
$lang_common['confirm'] = 'Confirmation'; // cpg1.5
to:

Code: [Select]
$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.

Title: Re: Captcha Image Not Showing
Post by: Αndré on January 08, 2015, 10:47:29 pm
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.