Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 10-19-2008, 02:38 PM   #1
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: Aug 2008
Location: Pennsylvania, US
Posts: 1,566
Blog Entries: 2
Thanks: 56
Thanked 154 Times in 136 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to Alan Mater Send a message via Skype™ to Alan Mater
Arrow Wordpress RSS feed XML parsing error...

Hi everyone,

My rss feed located at Work From Home Blog is not working and generates this error...

XML Parsing Error: XML or text declaration not at start of entity
Location: Work From Home Blog
Line Number 1, Column 5:<br><?xml version="1.0" encoding="UTF-8"?>
----^

When trying to submit the feed to FeedBurner, this message comes up...

The URL you entered does not appear to be a valid feed. We encountered the following problem: Error on line 1: The processing instruction target
matching "[xX][mM][lL]" is not allowed.

Could anyone help me figure out what the problem might be. I have had some help from fellow Warrior Jeff "Houdy" but is not able to pinpoint the problem.

Any help would be appreciated as I really need to get this working.

Thanks!

Alan

Alan Mater is offline   Reply With Quote
Old 10-19-2008, 03:44 PM   #2
HyperActive Warrior
War Room Member
 
rwil02's Avatar
 
Join Date: May 2005
Location: Auckland, New Zealand.
Posts: 241
Thanks: 0
Thanked 13 Times in 12 Posts
Social Networking View Member's Twitter Profile 
Default Re: Wordpress RSS feed XML parsing error...

Line Number 1, Column 5:<br><?xml version="1.0" encoding="UTF-8"?>

<br> is not valid. (you have an unclosed root node containing the definition for the document)
The first line should be
<?xml version="1.0" encoding="UTF-8"?>
Line 1 column 5. <br><?xml char 5 tells you it was trying to process the <?xml bit, so the problem had to be there or earlier.

rwil02 is offline   Reply With Quote
Old 10-19-2008, 04:02 PM   #3
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: Aug 2008
Location: Pennsylvania, US
Posts: 1,566
Blog Entries: 2
Thanks: 56
Thanked 154 Times in 136 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to Alan Mater Send a message via Skype™ to Alan Mater
Default Re: Wordpress RSS feed XML parsing error...

Hi Roger,

Thanks for your quick reply. How do I go about changing it so that it doesn't have the <br> tag? I haven't been able to figure it out.

Thanks,

Alan

Alan Mater is offline   Reply With Quote
Old 10-19-2008, 04:31 PM   #4
HyperActive Warrior
War Room Member
 
rwil02's Avatar
 
Join Date: May 2005
Location: Auckland, New Zealand.
Posts: 241
Thanks: 0
Thanked 13 Times in 12 Posts
Social Networking View Member's Twitter Profile 
Default Re: Wordpress RSS feed XML parsing error...

My guess is you have cusomized your feed template (wp-rss2.php) much as is described here:
Customizing Feeds WordPress Codex

and you have probably either put the br at the top, or left a blank line which has been auto converted into a br tag

rwil02 is offline   Reply With Quote
Old 10-19-2008, 05:42 PM   #5
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: Aug 2008
Location: Pennsylvania, US
Posts: 1,566
Blog Entries: 2
Thanks: 56
Thanked 154 Times in 136 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to Alan Mater Send a message via Skype™ to Alan Mater
Default Re: Wordpress RSS feed XML parsing error...

Quote:
Originally Posted by rwil02 View Post
My guess is you have cusomized your feed template (wp-rss2.php) much as is described here:
Customizing Feeds WordPress Codex

and you have probably either put the br at the top, or left a blank line which has been auto converted into a br tag
The problem is I had someone install the blog for me, and he customized the feed. He couldn't find the problem. I don't know how to edit the feed template as far as what to delete or change.

Alan Mater is offline   Reply With Quote
Old 10-19-2008, 06:16 PM   #6
HyperActive Warrior
War Room Member
 
rwil02's Avatar
 
Join Date: May 2005
Location: Auckland, New Zealand.
Posts: 241
Thanks: 0
Thanked 13 Times in 12 Posts
Social Networking View Member's Twitter Profile 
Default Re: Wordpress RSS feed XML parsing error...

Quote:
Originally Posted by Alan Mater View Post
The problem is I had someone install the blog for me, and he customized the feed. He couldn't find the problem. I don't know how to edit the feed template as far as what to delete or change.
Can you find and send me the file?
If so I can probably fix it for you.
Alternatively, if you trust me, you can PM me FTP login details and I can take a look.

rwil02 is offline   Reply With Quote
Old 10-19-2008, 06:32 PM   #7
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: Aug 2008
Location: Pennsylvania, US
Posts: 1,566
Blog Entries: 2
Thanks: 56
Thanked 154 Times in 136 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to Alan Mater Send a message via Skype™ to Alan Mater
Default Re: Wordpress RSS feed XML parsing error...

Quote:
Originally Posted by rwil02 View Post
Can you find and send me the file?
If so I can probably fix it for you.
Alternatively, if you trust me, you can PM me FTP login details and I can take a look.
Do you know which file you need? There's one called /xmlrpc.php. Would that be the one? If you're not sure I'll send you a PM with my details.

Thanks!

Alan

Alan Mater is offline   Reply With Quote
Old 10-19-2008, 07:03 PM   #8
HyperActive Warrior
War Room Member
 
rwil02's Avatar
 
Join Date: May 2005
Location: Auckland, New Zealand.
Posts: 241
Thanks: 0
Thanked 13 Times in 12 Posts
Social Networking View Member's Twitter Profile 
Default Re: Wordpress RSS feed XML parsing error...

wp-rss2.php

rwil02 is offline   Reply With Quote
Old 10-19-2008, 07:24 PM   #9
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: Aug 2008
Location: Pennsylvania, US
Posts: 1,566
Blog Entries: 2
Thanks: 56
Thanked 154 Times in 136 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to Alan Mater Send a message via Skype™ to Alan Mater
Default Re: Wordpress RSS feed XML parsing error...

Here's the code...

<?php
/**
* Outputs the RSS2 feed XML format using the feed-rss2.php file in wp-includes
* folder. This file only sets the feed format and includes the feed-rss2.php.
*
* This file is no longer used in WordPress and while it is not deprecated now.
* This file will most likely be deprecated or removed in a later version.
*
* The link for the rss2 feed is /index.php?feed=rss2 with permalinks off.
*
* @package WordPress
*/

if (empty($wp)) {
require_once('./wp-load.php');
wp('feed=rss2');
}

require (ABSPATH . WPINC . '/feed-rss2.php');

?>

Alan Mater is offline   Reply With Quote
Old 10-19-2008, 07:27 PM   #10
HyperActive Warrior
War Room Member
 
rwil02's Avatar
 
Join Date: May 2005
Location: Auckland, New Zealand.
Posts: 241
Thanks: 0
Thanked 13 Times in 12 Posts
Social Networking View Member's Twitter Profile 
Default Re: Wordpress RSS feed XML parsing error...

Sorry, mixed up two threads.
I should have said "feed-rss2.php", which is in the includes directory.

rwil02 is offline   Reply With Quote
Old 10-19-2008, 07:30 PM   #11
HyperActive Warrior
War Room Member
 
rwil02's Avatar
 
Join Date: May 2005
Location: Auckland, New Zealand.
Posts: 241
Thanks: 0
Thanked 13 Times in 12 Posts
Social Networking View Member's Twitter Profile 
Default Re: Wordpress RSS feed XML parsing error...

Oh. And please PM it to me as an attachment (.txt file) that way the formatting won't break.

rwil02 is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
error, feed, parsing, rss, rss feed, wordpress, xml

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 09:08 AM.