PDA

View Full Version : [BUG] Feed invalid ?


ping
05-31-2006, 12:39 PM
Any idea why 90% of the feed I enter come back as invalid when I try to import rss ?

This only happens since I've upgraded to the latest version.

Is there a way to override this ?

meandean
05-31-2006, 01:46 PM
It'd also be helpful to log such incidents - and perhaps flag websites whose feeds aren't valid so site admins can determine whether or not to continue polling them.

ping
05-31-2006, 01:48 PM
It seems I found why, since the last update only utf-8 feeds work all the other such as iso do not.

ping
05-31-2006, 02:08 PM
When i changed utf-8 in importrss.php to iso-8859-1 then all the iso-8859-1 feeds were imported, I just ended up with some weird symbols as Newstopica outputs in utf-8 by default.

My guess is that Newstopica is having problems converting feeds to utf-8.

meandean
06-01-2006, 01:08 PM
Content visible to registered users only.I've poke through their libraries, I'm hoping they move to the MapPie RSS parser for PHP (http://magpierss.sourceforge.net/) instead so not only can said issues be resolved quickly ...

... but also so those of us with some hackery skills can tap into the nice clean object it creates.

MagPie's error handling is also pretty useful - giving one the ability to log and move on, or to stop-catch-n-throw.

If you note, they already take a similar approach employing common/popular libraries such as Smarty.
.

ping
06-01-2006, 05:40 PM
I dont mean to rush anyone on the dev team but this does need to be fixed soon, importing iso feeds worked in the previous versions and it's stopping me from operating my site ...

Thanks,

David
06-01-2006, 06:44 PM
PM me everything about your site:
ftp
admin login
phpmyadmin
example of feed not working and any other info that will help us know what we are needing to do to fix it, and we will first fix your site, and then issue a fix on the forums as well.

leeshindig
06-01-2006, 09:58 PM
I wondered why one of my feeds wasnt validating - yet its included in feeds such as google news and moreover no bother...

ping
06-02-2006, 03:58 PM
Content visible to registered users only.
pm sent

Thanks,

Ping

David
06-11-2006, 04:03 PM
We'll be moving completely to the Magpie RSS system.
This should eliminate many of the problems with feeds.

ping
06-11-2006, 05:44 PM
Great news ! any ETA ?

meandean
06-11-2006, 07:25 PM
Content visible to registered users only.Well, one thing MagPie RSS Parser (http://magpierss.sourceforge.net/) - nor any other RSS library - can eliminate are websites that generate invalid RSS feeds. That said, at least Magpie can "catch (http://magpierss.sourceforge.net/faq.php#troubleshooting)" them ... hopefully Newstopica will "log" them based on the inforamation fed back from the Magpie library; via the magpie_error() (http://magpierss.sourceforge.net/faq.php#display-a-custom-error-message-i) method.

One thing you can do is check out the validity of a feed at the "Feed Validator for Atom and RSS (http://feedvalidator.org/)" ... usually I do this and then email the producer of the bad feed (hence my desire for a feed error log).

Most if not make the necessary corrections. Your mileage will vary.

David
06-12-2006, 02:07 AM
Content visible to registered users only.

I think just a couple more days.
And you can thank meandean for all his testing and recommendations! :D

ping
06-12-2006, 12:18 PM
So that means iso and utf-8 feeds will both work properly, great news!

Big thanks to meandean, David and the others :)

BTW: Check out a few suggestions of mine for next versions
http://www.phplinkdirectory.com/forum/showthread.php?p=23401#post23401