RSS Feed Pluslet "Loading..."

20 views
Skip to first unread message

Ryan

unread,
Nov 2, 2009, 2:52:33 PM11/2/09
to SubjectsPlus
Hi - I've recently installed the latest version of SubjectsPlus to a
test server - I have been having trouble using any of the pluslets
that connect to an RSS feed. After saving the feed, I only see the
text "Loading..." in the admin and public displays of the pages.

I have observed the same issue with pgpager on and off.

A few other notes on this board regarding the rss issues have talked
about making sure the proper permissions were set on a few cache
folders. I haven't seen any of these folders on my instance of
SubjectsPlus, and wonder if that is the problem.

Andrew Darby

unread,
Nov 2, 2009, 3:35:42 PM11/2/09
to subjec...@googlegroups.com
Hi Ryan,

The loading text is put on the page for rss feeds (instead of the
usual swirling circle animated gif), and then replaced by the contents
of the RSS feed. So, there are two possible problems. Try going to
subjects/includes/feedme.php and print out the $source variable, say
right below line 5, e.g.,

$source = $_POST["feed"];
print $source;

If you navigate to your guide with the RSS feeds, and it prints out
the URL of your feed, well, it's not a problem with jQuery loading
that page.

The next question, I guess, is: Is this feed that prints out okay?
Can you cut and paste it in your browser and see the XML?

Next: Is your server running PHP 5? If not, pgparser (the default)
won't work.

Let me know about these questions, and we can go from there. Also,
there's some other notes here:

http://www.subjectsplus.com/wiki/index.php?title=Troubleshooting#The_RSS_feed_is_not_working.21

Andrew

Ryan

unread,
Nov 2, 2009, 5:39:35 PM11/2/09
to SubjectsPlus
Hi Andrew,
After adding the print command, I don't see any different output -
only "Loading..."

The feed I'm currently using to test is the one from the help file
(http://www.aldaily.com/rss/rss.xml) which looks great in the browser.

The test server is running PHP 5.2.9.

I have tried turning off pgpager in the config file as well, and
experience the same result.

I followed the instructions in the troubleshooting on enabling error
reporting -- should those errors print to the screen or to a log file?

Thanks,
Ryan

On Nov 2, 2:35 pm, Andrew Darby <agda...@gmail.com> wrote:
> Hi Ryan,
>
> The loading text is put on the page for rss feeds (instead of the
> usual swirling circle animated gif), and then replaced by the contents
> of the RSS feed.  So, there are two possible problems.  Try going to
> subjects/includes/feedme.php and print out the $source variable, say
> right below line 5, e.g.,
>
> $source = $_POST["feed"];
> print $source;
>
> If you navigate to your guide with the RSS feeds, and it prints out
> the URL of your feed, well, it's not a problem with jQuery loading
> that page.
>
> The next question, I guess, is:  Is this feed that prints out okay?
> Can you cut and paste it in your browser and see the XML?
>
> Next:  Is your server running PHP 5?  If not, pgparser (the default)
> won't work.
>
> Let me know about these questions, and we can go from there.  Also,
> there's some other notes here:
>
> http://www.subjectsplus.com/wiki/index.php?title=Troubleshooting#The_...
>
> Andrew

Ron Gilmour

unread,
Nov 3, 2009, 2:14:02 AM11/3/09
to subjec...@googlegroups.com
Hi Ryan,

The error messages should print to screen.

Another idea: Try turning off caching.  Go to control/includes/feeder.php and change the really big number in $rss->setOptions(1,3,0,86400) to 0.

If the feed works with caching turned off, there might be a problem with your ability to create directories.

Ron

Ryan

unread,
Nov 3, 2009, 2:38:30 PM11/3/09
to SubjectsPlus
After leading Andrew on a wild goose chase, he helped me discover that
we did not have XMLReader enabled by default in PHP. XMLReader is
required by the PGFeed parser. To fix this, I installed the php-xml
package to our server.

Thanks for the help!

On Nov 3, 1:14 am, Ron Gilmour <anaximande...@gmail.com> wrote:
> Hi Ryan,
>
> The error messages should print to screen.
>
> Another idea: Try turning off caching.  Go to control/includes/feeder.php
> and change the really big number in $rss->setOptions(1,3,0,86400) to 0.
>
> If the feed works with caching turned off, there might be a problem with
> your ability to create directories.
>
> Ron
>

Ron Gilmour

unread,
Nov 5, 2009, 4:27:31 PM11/5/09
to subjec...@googlegroups.com
Thanks Ryan,

I thought XMLReader was included by default in PHP 5 installations, but apparently not always.  Andrew and I should probably make this dependency more explicit in the documentation.

Ron
Reply all
Reply to author
Forward
0 new messages