Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-04-26 08:04:48
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
RSS Feed broken
I get the following error…
XML Parsing Error: not well-formed
Location: http://www.mysite.org/rss/
Line Number 1, Column 1:�
^
Using the most recent versions of all the following plugins….
asy_wondertag
gbp_admin_library
glx_hl_current
l10n
rvm_css
rvm_maintenance
rvm_privileged
stm_article_order
zem_contact_lang-mlp
Last edited by FireFusion (2008-04-26 08:13:26)
Offline
Re: RSS Feed broken
Search for BOM (Byte Order Mark) in the MLP topic.
Offline
#3 2008-04-26 13:16:19
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: RSS Feed broken
I’ve tried all the different methods to fix it
Resaving l10n_base.php file in notepad with ANSI encoding.
Deleting gbp_admin_library and reinstalling uncompressed gbp_admin_library. Nothings seems to make a difference.
Even editing /publish/rss.php so send files as text/html. It opened in browser but file looks corrupt.
http://agileapricot.com/images/2.png
(Site in link not the same as one with problems.)
Offline
Re: RSS Feed broken
It has to be something at the very beginning of one of the PHP files that was modified or added.
Offline
#5 2008-04-26 14:56:16
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: RSS Feed broken
Thanks Rudd. Any idea what one’s are most likely to affect RSS?
Also do I use the notepad trick for all files?
The l10n_langs.php file is UTF-8 and not ANSI, does that matter?
Last edited by FireFusion (2008-04-26 15:12:07)
Offline
Re: RSS Feed broken
The files involved are all those that are loaded when the RSS feed is generated, even if they contain functions that aren’t used. Basically, that’s just about everything in /lib and /publish.
I’m not sure how well the notepad trick works with files containing non-ascii chars. If it breaks stuff, then you’ll know it didn’t work ;)
Offline
#7 2008-04-26 17:18:47
- Arno Simon
- New Member
- From: Germany
- Registered: 2008-04-26
- Posts: 4
Re: RSS Feed broken
FireFusion wrote:
The l10n_langs.php file is UTF-8 and not ANSI, does that matter?
for sure it matters. save the l10n_langs.php as a normal ascii file.
utf8-encoded files are marked by a 2 or 3 byte-header at the beginning – just before “<?php”
Last edited by Arno Simon (2008-04-26 17:19:24)
Offline
#8 2008-04-26 17:28:41
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: RSS Feed broken
Is the another way of getting these byte-headers?
Saying l10n_langs.php as ANSI broke stuff.
Offline
#9 2008-04-26 17:34:12
- Arno Simon
- New Member
- From: Germany
- Registered: 2008-04-26
- Posts: 4
Re: RSS Feed broken
AFAIR not
Offline
Re: RSS Feed broken
You could download notepad++ and use that to save the file as “UTF8 without BOM”.
Offline
#11 2008-04-26 20:41:33
- Arno Simon
- New Member
- From: Germany
- Registered: 2008-04-26
- Posts: 4
Re: RSS Feed broken
oh… didn’t knew that… well… learned something ;) using np++ anyway, but hadn’t seen this option…
Offline
#12 2008-04-27 17:19:38
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: RSS Feed broken
I resaved everything in publish and lib folders with notepad in ANSI mode and Notepad++ (UTF-8 without BOM) for UTF-8 files but it hasn’t helped.
I tried making a custom RSS feed with the set headers plugin. It doesn’t ask to be downloaded but does shows this error. Which sould like the BOM thing. What else could be doing this?
XML Parsing Error: xml declaration not at start of external entity
Location: http://www.mysite.org/en/feeds
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
^
Offline