forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: ErkDog on January 17, 2010, 05:43:40 pm

Title: Weird Code on index.php >.<
Post by: ErkDog on January 17, 2010, 05:43:40 pm
OK so this is really weird, and I'm not sure when this happened but:

when I go to my index I just get a bunch of gibberish code:

http://photo.netho.tk/

every other page works fine though...

http://photo.netho.tk/thumbnails.php?album=lastup

Any ideas?!

Thanks,
Matt
Title: Re: Weird Code on index.php >.<
Post by: François Keller on January 17, 2010, 05:58:16 pm
try to upload a fresh and clean index.php file on your server
Title: Re: Weird Code on index.php >.<
Post by: Nibbler on January 17, 2010, 06:26:17 pm
That's caused by having gzip output compression enabled on your webserver. Disable it.
Title: Re: Weird Code on index.php >.<
Post by: ErkDog on January 17, 2010, 07:12:24 pm
*beep*, why would gzip cause that?  every other of the 979734 php pages it works fine on....

And why is only the index.php affected in coppermine?
Title: Re: Weird Code on index.php >.<
Post by: Joachim Müller on January 18, 2010, 10:17:33 am
Because that's how coppermine works. If you disagree, dive into the code and change it...
Title: Re: Weird Code on index.php >.<
Post by: ErkDog on January 18, 2010, 09:53:53 pm
Lol fair enough man, but it just seems kind of weird that every other php file I've uploaded like, ever does not do that.

What is different in cpg that's causing it to break?

Is there a single line of code I can remove from index.php that will fix it?

Why aren't ALL of the other cpg php files affected and only index.php is?!
Title: Re: Weird Code on index.php >.<
Post by: Nibbler on January 18, 2010, 10:04:26 pm
I wish I knew. It's always worked fine on my servers but it causes issues for some people.
Title: Re: Weird Code on index.php >.<
Post by: phill104 on January 18, 2010, 10:20:51 pm
Odd thing is that your index page looks fine when viewed on my ps3 but gibberish on any pc browser
Title: Re: Weird Code on index.php >.<
Post by: Nibbler on January 18, 2010, 10:29:29 pm
The PS3 probably doesn't support gzip compression so the server doesn't apply it. You can actually disable support for gzip compression in Firefox (about:config - network.http.accept-encoding) and you will then be able to see the page as normal.
Title: Re: Weird Code on index.php >.<
Post by: phill104 on January 18, 2010, 11:04:39 pm
Cheers for the explanation Nibbler.