Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-06-09 22:33:34
- Gena Wenli
- Member
- From: Ohio, USA
- Registered: 2006-01-26
- Posts: 34
Random Characters Added/Replaced in Page Template
Sometimes after I click the “save” button when editing a page in TXP, I get random characters (usually <code>&</code> or <code>&ot</code>) at the very beginning of the document, before the <!DOCTYPE. Then usually in the head of my document, there are a few tag opener characters (<) that are replaced to <code>&</code>s or <code>;</code>s.
Why is this?! It can cause major problems and I have to go back through my document to comb out all the stray amperstands and other crud I didn’t type.
G
Last edited by Gena Wenli (2006-06-10 14:06:59)
Offline
#2 2006-06-09 22:58:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Random Characters Added/Replaced in Page Template
That’s very odd. I can’t think of anything that would do that. Have you had this problem long, or is this a recent occurence?
Offline
#3 2006-06-10 01:23:52
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Random Characters Added/Replaced in Page Template
It sounds like something in your web server or PHP configuration is set to translate or modify POST content. You’ll need to ask your hosting company about it.
Alex
Offline
#4 2006-06-10 13:48:42
- Gena Wenli
- Member
- From: Ohio, USA
- Registered: 2006-01-26
- Posts: 34
Re: Random Characters Added/Replaced in Page Template
Zem, I have full access to my php.ini file. I talked with my web hosting company today and they said they’re not doing anything. But if you can come up with something to put in my php.ini file, that might work.
Mary, this problem has been happening ever since I started using this installation of TXP.
G
Offline
Re: Random Characters Added/Replaced in Page Template
Maybe you have mbstring.encoding_translation turned to on? Try with the php.ini from a default php install. Maybe mod_security rules are interfering? Maybe one of a hundred other things are going wrong. It’s hard to find by guessing. You should try to use a systematic approach to locate the general area of the problem first.
Offline
#6 2006-06-10 14:55:32
- Gena Wenli
- Member
- From: Ohio, USA
- Registered: 2006-01-26
- Posts: 34
Re: Random Characters Added/Replaced in Page Template
Sencer, I can’t even find mbstring.encoding_translation in my php.ini file. But I don’t think using a fresh copy would work, because I haven’t modified the one I have at all!
G
Offline
#7 2006-06-10 15:01:23
- Gena Wenli
- Member
- From: Ohio, USA
- Registered: 2006-01-26
- Posts: 34
Re: Random Characters Added/Replaced in Page Template
OK, I just was messing with my page template and I got some extra characters:
First this one: meta content="text/html; [...]
And then this: link href=;http://[..]
I thought maybe specific examples would help. In both cases, there is a semicolon where there should be a quotation mark.
G
Last edited by Gena Wenli (2006-06-10 15:05:05)
Offline
Re: Random Characters Added/Replaced in Page Template
At this point nobody knows whether your problem is due to any of the following:
Server-Config
Webserver-Config
Webserver-module’s config
PHP-Config
PHP-Extension’s config
Application plugin
Network
Firewall
Client
Browser
Browser extension
Proxy-software
Anti-Virus-Software
…etc. etc.
And for each of the items there’s different things to check for. This “game” can hardly be won by guessing. Hence why I said:
You should try to use a systematic approach to locate the general area of the problem first.
Test each part seperately – or try to replace each part individually – and see when the problem appears and when it doesn’t.
Offline
#9 2006-06-10 16:46:50
- Gena Wenli
- Member
- From: Ohio, USA
- Registered: 2006-01-26
- Posts: 34
Re: Random Characters Added/Replaced in Page Template
I understand. Thanks for your help.
G
Offline
#10 2006-06-10 21:31:29
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Random Characters Added/Replaced in Page Template
One thing you can try: if you have any plugins active, disable them (all of them) and see if it then works. If it does, re-enable them one by one to find the one messing it up.
Offline