FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 xml_error_string() = junk after document element View next topic
View previous topic
Post new topicReply to topic
Author Message
liliplanet



Joined: 26 Jun 2012
Posts: 4
Location: Cape Town

PostPosted: Tue Jun 26, 2012 6:05 am Reply with quoteBack to top

Hi,

Thank you so much for your wonderful script, and it has been working perfectly for months and today receiving:

$errorCode = 9
xml_error_string() = junk after document element
xml_get_current_line_number() = 47
xml_get_current_column_number() = 0
xml_get_current_byte_index() = 5053

I've uploaded a clean http://www.feedforall.com script, minimized everything in the template and the php call script is at:

http://www.filmcontact.com/feed/daily-free.php

The feed is http://www.filmcontact.com/daily.xml
Uploaded a clean http://www.filmcontact.com/feed/sample-template.html

When I validated the feed at http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.filmcontact.com%2Fdaily.xml receive the following:

"One specific case that causes this is a server that claims the file is compressed, but then serves an uncompressed file. You may need to contact your host's administrators to resolve this problem."

I contacted my server (running Litespeed) and they said as per:

http://www.whatsmyip.org/http-compression-test/

which brings back http://www.filmcontact.com/daily.xml and http://www.filmcontact.com/feed/sample-template.html as gzipped.

Now a little lost as I'm running a daily newsletter through phplist, and come to an abrupt stop.

Would you be so kind to point me in the right direction?

Most appreciated.
Lilian
View user's profile
liliplanet



Joined: 26 Jun 2012
Posts: 4
Location: Cape Town

PostPosted: Tue Jun 26, 2012 6:20 am Reply with quoteBack to top

Just to mention running Litespeed on PHP version 5.2.6
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2791

PostPosted: Tue Jun 26, 2012 9:19 am Reply with quoteBack to top

The error that you're running in to actually has to do with the feed you're trying to translate. The feed is improperly formatted. After having a look at it, it has the following errors:

The PubDate is missing.
The Item titles have HTML code in them (they really shouldn't).
The Items are completely missing the Link, PubDate and GUID.

The combination of all of these factors means that the feed doesn't meet the RSS2.0 specification, which is what our script is trying to translate. When it runs across improperly formatted code, it spawns that $errorCode = 9 message.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
liliplanet



Joined: 26 Jun 2012
Posts: 4
Location: Cape Town

PostPosted: Tue Jun 26, 2012 9:43 am Reply with quoteBack to top

Fabulous thank you, will re-format the feeds and will get back to you. Most appreciate your reply!
View user's profile
liliplanet



Joined: 26 Jun 2012
Posts: 4
Location: Cape Town

PostPosted: Thu Jun 28, 2012 2:26 am Reply with quoteBack to top

Just want to thank you for your excellent module and support.

The error was unrelated to RSS2HTML, a module had inserted javascript into the header.

Most appreciated and wishing you a fabulous day!
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme