Captcha 3.0 doesn't show image in French Captcha 3.0 doesn't show image in 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 3.0 doesn't show image in French

Started by ro1960, May 12, 2010, 05:53:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ro1960

For some reason, when the language selected is French, the Captcha image doesn't show. It works with all the other languages I've tried (over a dozen).

How can this be fixed?

Thanks.

Joachim Müller



Joachim Müller

http://www.brunopaccard.com/cpg/captcha.php?lang=french is broken, http://www.brunopaccard.com/cpg/captcha.php?lang=english works. Usually happens if the language file outputs stuff that it shouldn't, which is in turn usually the case if a language file has been edited with an editor that is not fit for the task.
Get a vanilla French language file (e.g. from http://coppermine.svn.sourceforge.net/viewvc/coppermine/trunk/cpg1.4.x/lang/french.php?view=log) and replace the language file on your server with the vanilla file. Make sure to upload using a genuine FTP app like FileZilla and not some crutch like MS Frontpage or some web FTP app.

ro1960

OK, I followed your instructions and replaced the /lang/french.php file with a fresh version. No difference. All the files have been uploaded at the same time in the same manner with Interarchy 9.0.1. No edits were made as far as I remember. If I did, it was using BBEdit 9.5 and this should normally not be an issue.

Joachim Müller

I'm not familiar with Mac tools. All I can say is that the reason for the image not showing as expected almost certainly is the fact that the output starts prematurely.
This is the http traffic sniffed with live HTTP headershttp://www.brunopaccard.com/cpg/captcha.php?lang=french

GET /cpg/captcha.php?lang=french HTTP/1.1
Host: www.brunopaccard.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://forum.coppermine-gallery.net/index.php?action=post;topic=64916.0;num_replies=4
Cookie: faf22696d326577ad2dbc65575e7f336=d93f35be736ad61724b9accccbfc20f6; PHPSESSID=972f0e5d378b5713385bf3aac18ff220; coppermine_brunopaccard_data=YTozOntzOjI6IklEIjtzOjMyOiI1OWNiZjM5MTM4N2Q4ZDg4ZTkwNDRhNzIyNDc0M2NiNyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo2OiJmcmVuY2giO30%3D
Cache-Control: max-age=0

HTTP/1.1 200 OK
Date: Wed, 12 May 2010 15:59:24 GMT
Server: Apache
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: image/jpeg
----------------------------------------------------------
http://nolobe.com/mint/pepper/tillkruess/durations/recalc.php?token=756897106&time=90

GET /mint/pepper/tillkruess/durations/recalc.php?token=756897106&time=90 HTTP/1.1
Host: nolobe.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://nolobe.com/interarchy/
Cookie: MintAcceptsCookies=1; MintUnique=1; MintUniqueHour=1273676400; MintUniqueDay=1273669200; MintUniqueWeek=1273323600; MintUniqueMonth=1272632400; MintUniqueLocation=1; MintDurationsToken=756897106; __utma=1.456312270.1273679909.1273679909.1273679909.1; __utmb=1.1.10.1273679909; __utmc=1; __utmz=1.1273679909.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=Interarchy

HTTP/1.1 200 OK
Date: Wed, 12 May 2010 15:59:32 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-1+lenny8
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
----------------------------------------------------------
http://nolobe.com/mint/pepper/tillkruess/durations/recalc.php?token=756897106&time=105

GET /mint/pepper/tillkruess/durations/recalc.php?token=756897106&time=105 HTTP/1.1
Host: nolobe.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://nolobe.com/interarchy/
Cookie: MintAcceptsCookies=1; MintUnique=1; MintUniqueHour=1273676400; MintUniqueDay=1273669200; MintUniqueWeek=1273323600; MintUniqueMonth=1272632400; MintUniqueLocation=1; MintDurationsToken=756897106; __utma=1.456312270.1273679909.1273679909.1273679909.1; __utmb=1.1.10.1273679909; __utmc=1; __utmz=1.1273679909.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=Interarchy

HTTP/1.1 200 OK
Date: Wed, 12 May 2010 15:59:47 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-1+lenny8
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/html
----------------------------------------------------------

ro1960

The Mac tools I am using are fairly standard developers tools.

I don't understand what you mean by "the output starts prematurely". And I am not sure  what to do with the http traffic.

How can this problem be fixed? Why is it only affecting the French language?

Joe Carver

Quote from: ro1960 on May 12, 2010, 05:24:52 PM
OK, I followed your instructions and replaced the /lang/french.php

Have you replaced the language file for the plugin with clean copiy? Or only the Coppermine file? Or both?


Joachim Müller

To show you the difference, here's what live http headers sniffs for the output of the captcha file with the language set to english:http://www.brunopaccard.com/cpg/captcha.php?lang=english



GET /cpg/captcha.php?lang=english HTTP/1.1

Host: www.brunopaccard.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Connection: keep-alive

Cookie: ae6c14f246ba98273db9dd95c8bfe109=df6edc0a4885ead21a8bbcb03de9b051; coppermine_brunopaccard_data=YTo0OntzOjI6IklEIjtzOjMyOiJjMjI2MjkwZTRhZTc1YjliMTA2NzE2NTA1ZWZlNGMzYyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo2OiJnZXJtYW4iO3M6MzoibGl2IjthOjE6e2k6MDtzOjM6IjEzNSI7fX0%3D; 60df47fd40e6d14ca142887ed0f2b5d0=fa99a53d9310be8a254a3ac9d216928c; PHPSESSID=a56e67daab462402998e99e8dbe2b0b8



HTTP/1.1 200 OK

Date: Fri, 14 May 2010 05:11:45 GMT

Server: Apache

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Expires: Thu, 19 Nov 1981 08:52:00 GMT

Pragma: no-cache

Keep-Alive: timeout=15, max=99

Connection: Keep-Alive

Transfer-Encoding: chunked

Content-Type: image/jpeg

----------------------------------------------------------