Advanced search  

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

Pages: [1]   Go Down

Author Topic: Weird Code on index.php >.<  (Read 4228 times)

0 Members and 1 Guest are viewing this topic.

ErkDog

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Weird Code on index.php >.<
« 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
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Weird Code on index.php >.<
« Reply #1 on: January 17, 2010, 05:58:16 pm »

try to upload a fresh and clean index.php file on your server
Logged
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

  • Guest
Re: Weird Code on index.php >.<
« Reply #2 on: January 17, 2010, 06:26:17 pm »

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

ErkDog

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Weird Code on index.php >.<
« Reply #3 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Weird Code on index.php >.<
« Reply #4 on: January 18, 2010, 10:17:33 am »

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

ErkDog

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Weird Code on index.php >.<
« Reply #5 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?!
Logged

Nibbler

  • Guest
Re: Weird Code on index.php >.<
« Reply #6 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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Weird Code on index.php >.<
« Reply #7 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
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Nibbler

  • Guest
Re: Weird Code on index.php >.<
« Reply #8 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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Weird Code on index.php >.<
« Reply #9 on: January 18, 2010, 11:04:39 pm »

Cheers for the explanation Nibbler.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.