Captcha doesn't show in Italian and French Captcha doesn't show in Italian and French
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Captcha doesn't show in Italian and French

Started by Ludo, January 26, 2012, 12:45:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ludo

I'm not sure if it's more a visuals than a language-related question, but let's post here :)

I've just upgraded my gallery to v. 1.5 - a bit late, I know :D - and I'm experiencing this quite weird issue: captcha does show in almost all widely-spoken languages I tried (English, German, Spanish, Portuguese, Dutch, and so on), but not in Italian (my Gallery language) nor in French. Check it out by yourself with these links:

http://vanrokken.altervista.org/captcha.php?lang=italian
http://vanrokken.altervista.org/captcha.php?lang=french
http://vanrokken.altervista.org/captcha.php?lang=english
http://vanrokken.altervista.org/captcha.php?lang=german
http://vanrokken.altervista.org/captcha.php?lang=spanish
http://vanrokken.altervista.org/captcha.php?lang=portuguese

One could think that Italian and French language files are somewhat buggy or broken, but the weirdest thing is that captcha still doesn't show even if I replace these files with German, Dutch or Czech (working) ones, without having even opened them but just renamed to italian.php or french.php!
So, is that captcha function doesn't like Italians and French? :)
Any suggestion to get it work?

Αndré

The most common reason is that language files of plugins accidentally inject white spaces to the HTML output. This was reported a couple of times, but maybe you discovered some more buggy plugin language files and/or use outdated/not yet updated plugins. Just search for spaces or blank lines before the leading
<?php
or after the trailing
?>
in all of your plugin folders. Please report your results.


Quote from: Ludo on January 26, 2012, 12:45:53 PM
captcha function doesn't like Italians and French? :)
lol ;D

Ludo

Quote from: Αndré on January 26, 2012, 01:05:42 PMmaybe you discovered some more buggy plugin language files
Bingo! The culprits were "keywords_add" plugin Italian & French language files. Removed blank lines after ?> and now captcha seem to show in all languages. ;)
Thank you very much for your hint!

Αndré

I wasn't able to find the blank line in the French language file. However, I just removed it from the Italian language file and will release a new plugin version soon.

Ludo

Quote from: Αndré on January 26, 2012, 02:41:26 PM
I wasn't able to find the blank line in the French language file.
If not a blank line there was some blank spaces after ?> and/or <?php, after removing which captcha has appeared in French too :)

Ludo

Quote from: Ludo on January 26, 2012, 02:45:53 PM
If not a blank line there was some blank space after ?> and/or <?php, after removing which captcha has appeared in French too :)

Αndré

There's still no such white space in my French language file. However, I removed the trailing white spaces and the encoding of all Italian language plugin files in SVN revision 8312 (7 plugins affected).