Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-11 15:26:15

yeahdisk
Member
Registered: 2006-01-23
Posts: 17

Firefox adding strange code before and after HTML?

Hi All

I’ve noticed something strange happening recently

When I view my textpattern sites (Textpattern version: 4.0.6 (r2805)) in Firefox (3.03 for windows) I get some strange code before and after the HTML output

For example (on my rarely updated personal site) there is 2b15 (and some empty lines) added before the DOCTYPE, and a 0 added after </html>!!!!

link

Please have a look (and view source), it really is very weird!!! This is happening on most of my Txp sites, and it can only have started in the last few days because I’ve only just noticed it!

It’s playing havoc with the layout of some of my sites, and I’ve no idea what is suddenly causing it! I haven’t moved hosts or anything.

This phenomema is not happening with IE.

Any ideas?

Cheers

Chris.

PS – ths site in question uses <txp:output_form form=“HEAD” /> at the top of the page template, and the form HEAD starts with <!DOCTYPE html PUBLIC “-//W3C//DTD X… at the very top, no empty line breaks or anything.

Last edited by yeahdisk (2008-11-11 15:32:20)

Offline

#2 2008-11-11 15:32:39

yeahdisk
Member
Registered: 2006-01-23
Posts: 17

Re: Firefox adding strange code before and after HTML?

Update – strange code is also being added to my CSS.php

Offline

#3 2008-11-11 15:38:59

Si
Member
From: Kiev
Registered: 2008-08-31
Posts: 45
Website

Re: Firefox adding strange code before and after HTML?

Hi Chris,

I just checked your website in Firefox 3.0.4, Safari and IE 6 and 7 on PC — and there are no extra characters added. There do seem to be 2 empty lines at the top, but they don’t influence the layout.

However you should check the site in IE, there is a problem with the footer

Offline

#4 2008-11-11 15:42:19

yeahdisk
Member
Registered: 2006-01-23
Posts: 17

Re: Firefox adding strange code before and after HTML?

Yeah I know the footer doesn’t work in IE (uses negative margins & padding etc.) but its my own site and I don’t care that much to fix it – one day I guess.

Strange that you don’t get the code beind added – altrhough the fact that you get some empty lines there might still indicate somethings up (they still shouldn’t be there)

thanks for looking though

Offline

#5 2008-11-11 15:46:32

yeahdisk
Member
Registered: 2006-01-23
Posts: 17

Re: Firefox adding strange code before and after HTML?

here’s a screen dump of what I’m seeing

Offline

#6 2008-11-11 15:50:26

Si
Member
From: Kiev
Registered: 2008-08-31
Posts: 45
Website

Re: Firefox adding strange code before and after HTML?

2 empty lines appear in the source, not on the rendered page.

Here’s the discussion that might be related (I used to have similar problem caused by character encoding)

http://www.webmasterworld.com/forum119/96.htm

Hope that helps.

Offline

#7 2008-11-11 15:51:24

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,822
Website GitHub

Re: Firefox adding strange code before and after HTML?

I see the empty lines too but no actual characters to speak of. Certainly nothing like your screen shot, and nothing below </html> either. Even if I copy & Paste the source out into a text editor, I don’t see any additional characters and I’m using the same version of FF as you. Bizarre.

Is it a line encoding issue? Some sort of \r\n thing between your computer and host that’s getting confused? Or could it be a UTF-8 doc and what you’re seeing is the BOM header? Doesn’t explain why you see it and I don’t, unless it’s some character translation issue; just a few stabs in the dark, really.

EDIT: dang, too late :-)

Last edited by Bloke (2008-11-11 15:51:49)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#8 2008-11-11 15:59:14

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Firefox adding strange code before and after HTML?

Here is another thread about this problem. Maybe it helps.

Offline

#9 2008-11-11 16:09:10

yeahdisk
Member
Registered: 2006-01-23
Posts: 17

Re: Firefox adding strange code before and after HTML?

SOLVED

It was an issue with a proxy server. Thanks to all that helped, Els – your link was the key.

Cheers all

Offline

Board footer

Powered by FluxBB