Weird Code on index.php >.< Weird Code on index.php >.<
 

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

Weird Code on index.php >.<

Started by ErkDog, January 17, 2010, 05:43:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ErkDog

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

François Keller

try to upload a fresh and clean index.php file on your server
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Nibbler

That's caused by having gzip output compression enabled on your webserver. Disable it.

ErkDog

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

Joachim Müller

Because that's how coppermine works. If you disagree, dive into the code and change it...

ErkDog

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

Nibbler

I wish I knew. It's always worked fine on my servers but it causes issues for some people.

phill104

Odd thing is that your index page looks fine when viewed on my ps3 but gibberish on any pc browser
It is a mistake to think you can solve any major problems just with potatoes.

Nibbler

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.

phill104

Cheers for the explanation Nibbler.
It is a mistake to think you can solve any major problems just with potatoes.