Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Captcha doesn't show in Italian and French  (Read 3595 times)

0 Members and 1 Guest are viewing this topic.

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Captcha doesn't show in Italian and French
« on: January 26, 2012, 12:45:53 pm »

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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Captcha doesn't show in Italian and French
« Reply #1 on: January 26, 2012, 01:05:42 pm »

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
Code: [Select]
<?phpor after the trailing
Code: [Select]
?>in all of your plugin folders. Please report your results.


captcha function doesn't like Italians and French? :)
lol ;D
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Captcha doesn't show in Italian and French
« Reply #2 on: January 26, 2012, 02:27:14 pm »

maybe 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!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Captcha doesn't show in Italian and French
« Reply #3 on: January 26, 2012, 02:41:26 pm »

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.
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Captcha doesn't show in Italian and French
« Reply #4 on: January 26, 2012, 02:45:53 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 :)
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Captcha doesn't show in Italian and French
« Reply #5 on: January 26, 2012, 02:47:02 pm »

If not a blank line there was some blank space after ?> and/or <?php, after removing which captcha has appeared in French too :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Captcha doesn't show in Italian and French
« Reply #6 on: January 26, 2012, 03:06:35 pm »

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).
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.