Welcome to WebmasterWorld Guest from 3.94.129.211

Forum Moderators: open

Message Too Old, No Replies

FF2 displays random characters and headers

Page displays OK in IE6/7

     
9:10 am on Apr 2, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 14, 2003
posts:508
votes: 0


I've asked this question in the Apache forum, but on reflection it probably belongs here, so apologies for the duplication!

I've installed Apache2 on my PC and created a simple test page :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"http-equiv="content-type">
<title>Testing</title>
</head>
<body>
<h1>My test page</h1>
<p>Testing 1 2 3</p>
</body>
</html>

This works fine in IE6/7, but FF2 displays the following:

Server: Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.1 Last-Modified: Sat, 31 Mar 2007 14:55:02 GMT ETag: "1dd7320-113-2c359d80" Accept-Ranges: bytes Keep-Alive: timeout=5, max=100 Content-Type: text/html Transfer-encoding: chunked 69 fb
My test page

Testing 1 2 3
e 0

Using the FF live headers extension I get:

http://127.0.0.2:8080/testing.htm

GET /testing.htm HTTP/1.1
Host: 127.0.0.2:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 200 OK

Which appears to be OK.

I thought the problem might be caused by one of the FF extensions I have installed, so I installed a clean copy FF, but this didn't help. The really odd thing is last night, the page appeared correctly once when I hit refresh.

I've also tried reinstalling Apache and disabling ZoneAlarm.

Does anyone have any suggestions what else to try? I could just use IE but I prefer to test first using FF.

Steve

<added>I've just tried the page in Opera, it displays fine!</added>

4:48 am on Apr 4, 2007 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3178
votes: 22


I made a test.html file and stuck it in to my Apache directory and I'm seeing what you're seeing in Firefox 2...
Etag: "2f30-11b-fd45f66c"

I did some searching and it seems to be part of the HTTP protocol [w3.org]. As far as anything else I've never heard of it myself. If you want to learn more try posting in the Webmaster General forum I would guess?

- John

2:13 pm on Apr 4, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


I tested it on my Apache server and all is fine here, too. I even added en-gb to my language options to match your settings. Your attributes are run together in your <meta> element, but the code still validates and displays properly in my installation.

There are two differences between your headers and mine (I'm assuming those are your server headers being returned in the quotation block right above the HTML output):

mod_autoindex_color 
Transfer-encoding: chunked 69 fb

The module listed here is not a base module, and not even an extension module that I can find. I did a search for it and found nothing but forum hits on the same exact server headers you are receiving. Try disabling this hack, restart the server and see if your issue is resolved. I'm not certain if this is it at all, but it is worth investigating.
2:29 pm on Apr 4, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 14, 2003
posts:508
votes: 0


I've done a bit of Googling, there are some posts about Apache2 for Win being misconfigured and mangling headers.

IE ignores it, while FF doesn't. No one mentions a cure, and I for one don't know enough about Apache and headers to figure it out.

All I want to do is learn a bit of PHP and mySQL programming, so for now I'll use Opera, which is very quick and I'm kinda getting to like!

2:51 pm on Apr 4, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 14, 2003
posts:508
votes: 0


Hi Coopster

Our posts must have crossed. I tried your suggestion, but I still get the headers and random characters displayed:-

FF Screen:

Server: Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.2.1 Last-Modified: Sat, 31 Mar 2007 14:55:02 GMT ETag: "1dd7320-113-2c359d80" Accept-Ranges: bytes Keep-Alive: timeout=5, max=100 Content-Type: text/html Transfer-encoding: chunked 69 fb
My test page

Testing 1 2 3
e 0

Live header tool:

http://127.0.0.2:8080/testing.htm

GET /testing.htm HTTP/1.1
Host: 127.0.0.2:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cache-Control: max-age=0

HTTP/1.x 200 OK

Thanx for the suggestion

Steve

4:24 pm on Apr 4, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


Just realized you were running a Win32 distribution, too. Did you follow the "If you are downloading the Win32 distribution, please read these important notes" directions at the top of the Apache Download [httpd.apache.org] page?
1:51 pm on Apr 5, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 14, 2003
posts:508
votes: 0


No, because XAMPP is supposed to be configured ready to go.

I've now had a read and tried the fixes described:-

EnableSendFile Off
EnableMMap Off
Win32DisableAcceptEx

Check for spyware etc.

I've also disabled my firewall, anti-virus, and anti-spyware, but I still get the same problem!

4:24 pm on Apr 5, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


And you do have XP service pack 2 installed, correct?
7:46 am on Apr 6, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 14, 2003
posts:508
votes: 0


Yup, SP2 is installed, as is TCP/IP networking, all latest patches are in place. QOS is off.

I've also tried turning off IIS, this didn't work either.

I've got to admit I was convinced FF was the problem, but last night Opera displayed a few mangled pages. IE still hasn't shown one.

I'll dig a little deeper over the weekend.

Steve

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members