Code showing

GentleGiant

Explorer
When clicking on some threads I get a page with all the code (see attached file) while most other threads work fine.
The attachment is from clicking on this thread:
http://www.enworld.org/showthread.php?t=148536

And I just noticed that the "Apache 2 / PHP 5 bugs" thread here in Meta does the same thing (haven't tried any others)
They work fine in IE, so it might be a Firefox problem (1.0.7)

Edit:
This just showed up above the banner at the top of the screen in another thread:
Server: Apache/2.0.54 (Unix) DAV/2 PHP/5.0.5 X-Powered-By: PHP/5.0.5 Expires: 0 Cache-Control: private, post-check=0, pre-check=0, max-age=0 Pragma: no-cache Set-Cookie: bbthread_lastview=35fe1a16710a03e62b3335cbbabb555aax34x-ix141774ysx10x%221128427678%22yix150748ysx10x%221128240019%22yix19878ysx10x%221128227267%22yix82212ysx10x%221128357170%22yix151092ysx10x%221128465460%22yix146541ysx10x%221128368116%22yix151027ysx10x%221128395059%22yix94479ysx10x%221128422622%22yix151164ysx10x%221128412734%22yix150662ysx10x%221128406430%22yix145634ysx10x%221128380988%22yix150524ysx10x%221128290884%22yix150780ysx10x%221128127422%22yix150472ysx10x%221128307550%22yix150753ysx10x%221128283897%22yix150866ysx10x%221128230907%22yix150802ysx10x%221128272263%22yix150976ysx10x%221128415834%22yix151076ysx10x%221128406049%22yix150805ysx10x%221128406006%22yix150540ysx10x%221128397774%22yix151071ysx10x%221128389749%22yix150689ysx10x%221128383950%22yix151079ysx10x%221128377495%22yix150908ysx10x%221128372327%22yix150258ysx10x%221128145512%22yix150360ysx10x%221128131566%22yix150124ysx10x%221128127567%22yix128557ysx10x%221113919257%22yix151177ysx10x%221128462655%22yix151215ysx10x%221128470714%22yix151234ysx10x%221128454525%22yix151261ysx10x%221128458170%22yix151284ysx10x%221128471460%22y_; path=/ Keep-Alive: timeout=15, max=82 Content-Type: text/html; charset=ISO-8859-1 Transfer-encoding: chunked 600
 

Attachments

  • screen.jpg
    screen.jpg
    46.1 KB · Views: 73
Last edited:

log in or register to remove this ad

GentleGiant

Explorer
Tried logging off and logging in again. Now I can see the threads again... and I found out that it might have been a cookie problem as mentioned in the "Apache" thread :D
 

Psionicist

Explorer
This is an odd problem; based on your screenshot it appears Firefox printed the complete server response.

When you visit a website, the web browser sends a request to the server, such as "Please send me the page index.php, the forum front page!". As you probably know, a web page is made up of HTML. Complex (heck, all modern) web pages consists not only of HTML however but of several images too. To grab the image the web browser have to ask the server again, "Please send me the image logo.gif, the enworld logotype!". This is repeated for all images not cached until the web browser can paint the webpage on screen as intended.

Because computers are dumb and usually have problems to make their own decisions web servers always send some additional information with the HTML and images. This information can be how large the image is, or if the contents of a response is a jpg-image or html-page (so the web browser knows what to do with the file sent), or what the web browser should save in a cookie. This extra information is sent first (so we will call it the "header"), then the actual contents. This is what you are seeing.

The annoying part is of course this information shouldn't be printed in the browser at all. It appears the web server software sends headers twice sometimes, for reasons unknown. This would explain why the info is printed at all.
 

GentleGiant

Explorer
I don't think it was just the "header" - it was literally the whole page source.

Right down to:
EN World
is powered by
Vbulletin 3
© 2000-2004 Jelsoft Enterprises Ltd.
All rights reserved.

EN World News and portals
are powered by
Vbulletin Advanced CMPS,
© 2003-2004 PlurPlanet, LLC.
All rights reserved.

But, of course, now I can't replicate the error since it apparently was a cookie error and I logged out and in again.
 

Remove ads

Top