PDA

View Full Version : Advanced RSS Ticker: error fetching



xGrape
11-29-2006, 05:51 PM
Advanced RSS Ticker
http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm

I just tried out Advanced RSS Ticker, but I'm getting the follow error when viewing the demo.htm page:

Error fetching remote RSS feed!
Sorry: It's not possible to reach RSS file http://rss.cnn.com/rss/cnn_topstories.rss


I uploaded all the files to my server, and chmodded the cache-folder 777. Anything I missed? Files are here: http://showmac.com/banan/1/feeds/demo.htm

xGrape
11-30-2006, 05:29 PM
Hmm, it worked on another server I had. Anything my first server could be missing? Does this script require PHP5, or perhaps it only works with v4? (not sure which one my server is running) Or does it rely on any other functions that might not be installed?

ddadmin
11-30-2006, 11:43 PM
It should work in both PHP4 and 5. Do you see any files inside your cache directory, indicating that the script was at least successful in retrieving the RSS feeds in question? BTW the demo page above returns 404.

xGrape
12-01-2006, 10:05 AM
The cache folder does indeed have 2 files in it. One for each feed I assume. Sorry for the 404, I moved the script during some testing. Updated URL is: http://showmac.com/banan/1/feeds/demo.htm

Cache would be here: http://showmac.com/banan/1/feeds/lastrss/cache/

ddadmin
12-01-2006, 12:30 PM
From what I can tell the problem is between your server and LastRSS (http://lastrss.oslab.net/) (the RSS class this script uses). Somehow it can't retrieve RSS files based on your server: http://showmac.com/banan/1/feeds/lastrss/bridge.php?id=CNN

You'll have to find out why your server can't run LastRSS per your server settings. I've been thinking of ditching LastRSS for another RSS class for future RSS/XML projects, since there are certainly more robust classes out there.

xGrape
12-02-2006, 12:04 AM
I got this reply from my host today:
"I suspect what's going
on here is our php implementation has url_fopen_disabled, for security
reasons, and that's why your script can't grab the rss. We offer cURL as
a replacement to url fopen"

Is there any truth to this? And an easy fix (for me)? If not I guess I'll just run it off the other server. Just thought I'd let you know anyways.

ddadmin
12-04-2006, 02:49 AM
That's most likely the reason yes. LastRSS if I recall doesn't support cURL for fetching external pages. SimplePie (http://www.simplepie.org), on the other hand does, which is used in the lastest RSS script on DD: RSS Display Boxes (http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm). If the feedback with Simplepie is good as far as versatility, I may switch all RSS scripts on DD to use it instead of LastRSS.