FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Strange issue with rss2html.php View next topic
View previous topic
Post new topicReply to topic
Author Message
rwgau



Joined: 29 Oct 2015
Posts: 3

PostPosted: Thu Oct 29, 2015 8:31 am Reply with quoteBack to top

I have successfully implemented the rss2html.php script and I have two pages with active feeds working fine.

I created a third page, same directory as the others, same website template, same EXACT include statement, get an error:

Unable to open RSS Feed sample.xml, exiting

Why would the script correctly parse the XMLFILE name from the include statement included in one page put not another? Below is the include statement, works on one page but not another.

<!--#INCLUDE VIRTUAL="rss2html.php?XMLFILE=http://www.auburn.edu/administration/oacp/feeds/IT.xml&TEMPLATE=rssfeed2.html" -->


Any ideas?
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2782

PostPosted: Thu Oct 29, 2015 1:24 pm Reply with quoteBack to top

if the rss2html.php file is in the same folder as the HTML file that has the INCLUDE statement in it, then you should use FILE= instead of VIRTUAL= in the HTML page.

For example if your HTML file is test.html and has the rss2html.php in the same folder, then use this syntax:

<!--#INCLUDE FILE="rss2html.php?XMLFILE=http://www.auburn.edu/administration/oacp/feeds/IT.xml&TEMPLATE=rssfeed2.html" -->

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



Joined: 29 Oct 2015
Posts: 3

PostPosted: Tue Feb 09, 2016 9:41 am Reply with quoteBack to top

I am still having intermittent problems with my feeds not loading properly. Sometimes they work... sometimes they don't. What would cause the feed to work correctly one day and not the next? I've tried caching, not caching, etc. I've tried INCLUDE FILE and INCLUDE VIRTUAL. I've validated the XML feeds. Any suggestions before I move to another solution?

One such page is http://www.auburn.edu/administration/oacp/compliance.php
One such page is http://www.auburn.edu/administration/oacp/audit.php

currently one works, the other doesn't. Same syntax.

PHP version is 5.3.2-1ubuntu4.30
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2782

PostPosted: Tue Feb 09, 2016 10:17 am Reply with quoteBack to top

When a feed isn't working try going to http://feedvalidator.org/ and enter the feed there. It is possible that the feed is not in a valid format intermittently.

Just a though.

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



Joined: 29 Oct 2015
Posts: 3

PostPosted: Tue Feb 09, 2016 10:36 am Reply with quoteBack to top

All the feeds validate correctly. And sometimes rss2html works properly and returns the feed correctly formatted, other times, for no apparent reason, error messages are displayed instead.
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2782

PostPosted: Tue Feb 09, 2016 11:05 am Reply with quoteBack to top

Unfortunately both you examples are working for me at the moment.

What are the exact error messages that show when it isn't working?

_________________
Create RSS Feeds
Audio Recording and Editing
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