Import RSS problem

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Mike

Import RSS problem

Post by Mike »

Hi all
I tried Import some RSS feeds to see in my blog, but whenever I put the XML link like http://www.nytimes.com/services/xml/rss ... mePage.xml
http://www.wired.com/news/feeds/rss2/0,2610,24,00.xml and so...
I got same errors for all the RSS feeds. :(
Here's error I got,

Error on line 126 of /web/home/eargasm/html/blog/bundled-libs/Onyx/RSS.php: The specified file could not be opened.
Entries successfully inserted!

Is it problem only for me? I searched all the forum to solve it. No one report it yet.
Let me know what's wrong.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Import RSS problem

Post by garvinhicking »

It seems that your PHP installation/setup does not allow the usage of URL wrappers for fopen(). This is controlled by the 'allow_url_fopen' directive, which some hosters set to false.

In that case, you can upload your XML file to your server and specify a location like '/your/document/root/path/serendipity/yourxml.xml' instead of an URL...

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Another RSS Question

Post by Guest »

I'm trying to learn this RSS stuff.

I import a feed from VARIETY.com...it puts the TITLE, and brief
text into a news item. Reading the xml code, it appears more information should be imported, such as a LINK (URL) to the full story.

What am i missing?

TIA
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Another RSS Question

Post by garvinhicking »

The RSS Import is there to import any text into your blog, but not to reference to that feed like you want it to be. The RSS metadata like LinkURL is not evaluated, because usually you want to import your own RSS stuff and want to have no links to the old location.

Some RSS feeds (like the one Serendipity creates) contain a HTML Link inside the body of an article, so that is depending on the RSS feed you import.

Usually you don't use RSS to link to foreign articles; instead you write up your own text about it and set a link to their HTML-Url. RSS is more for readers of a blog to get updates of that, or to use RSS-feeds to display foreign content inside your blog - but for that, you would use the "Foreign RSS feed" sidebar plugin. :-)

I hope I could help you out a bit. :)

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply