RSS feed is not displayed on page

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
10/10/2013 11:27:31 AM
Gravatar
Total Posts 104

RSS feed is not displayed on page

Trying to use the Feed Manager to display an RSS feed on a mojoportal page, but all it displays is a link to the feed and not the feed content itself.

10/10/2013 11:58:16 AM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

I want to set up a forum on one page, and display an RSS feed of all of the forum content on another page.

10/10/2013 12:30:33 PM
Gravatar
Total Posts 18439

Re: RSS feed is not displayed on page

Troubleshoot as follows:

Verify that the feed itself is working and has data.

Check the mojoPortal log under Administration > System Log for any errors about loading the feed.

Review all the settings in Feed Manager especially the one about how many days old of feed items to show.

Hope that helps,

Joe

10/10/2013 1:35:05 PM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

I can access the feed from the forum just fine using external tools such as FeedBurner with javascript and incorporating that into an HTML content section.  When I try to use the built in feed manager, I get something like this in the log... "2013-10-10 12:08:03,294 ERROR 10.4.1.1 - en-US - /<PAGENAME> - mojoPortal.Web.FeedUI.FeedCache - There was a problem trying to read the feed for url http://www.<URL>/Forums/RSS.aspx?ItemID=2&mid=385&pageid=171.  Ignoring.
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 70.168.137.234:80"

10/10/2013 1:38:11 PM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

and just left the default set to display posts within 90 days... just testing it out, so the posts are today's... anyway - thanks for your assistance and any other ideas you might have...  : )

10/10/2013 1:47:34 PM
Gravatar
Total Posts 18439

Re: RSS feed is not displayed on page

The Feed Manager is trying to make a web request from server side code to get the feed but it is failing. In this case the remote server is the web server but it needs to retrieve the feed over the internet even though it is the same machine.

"System.Net.WebException: Unable to connect to the remote server"

This can happen in Medium Trust hosting, some medium trust environments allow server side web requests and some don't. I know that when testing medium trust on my local machine it works when medium trust is configured as follows:

<trust level="Medium" originUrl=".*" />

the bold part is what is needed to allow server side web requests to work in medium trust. However in a hosting environment only your host could change that if they are enforcing medium trust so you will have to get help from them to resolve it.

If you look under Administration > System Information and it says "Partial Trust" that means you are hosted in medium trust.

10/10/2013 1:50:49 PM
Gravatar
Total Posts 18439

Re: RSS feed is not displayed on page

Note also that if you are unable to get your host to resolve the feed manager problem, there is another way to show recent forum posts using the recent content feature which pulls data from the search index.

10/10/2013 2:05:53 PM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

ok - thanks Joe!  : )  I'll look into this and see if anything can be changed to get this working...

10/10/2013 2:20:31 PM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

looks like... "ASP.NET Info v4.0.30319 Running in Full Trust"

10/10/2013 2:57:31 PM
Gravatar
Total Posts 18439

Re: RSS feed is not displayed on page

ok, then either the feed url is bad or it is not accessible to the web server for some reason. could be a number of possible causes like  firewall restrictions or the dns is resolving to the wrong ip address or other network problems.

10/10/2013 3:02:40 PM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

ok - that was it... I used the IP address of the server that this instance of mojoportal is running on, instead of the fully qualified URL/domain name and now the feed seems to be working just fine... : )

thanks for helping me work through that! : )

10/10/2013 5:53:24 PM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

I'm still not quite sure how the cache part of it works though... I mean - I want it to pick up on anything new right away... so I'm thinking I need to change this value to like "5" or something, so that it will at least check every 5 minutes for new posts in the forum...

10/10/2013 6:07:02 PM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

Now I'm getting this...

2013-10-10 18:00:20,700 ERROR 10.4.1.1 - en-US - /<WEBPAGE> - mojoPortal.Web.FeedUI.FeedCache - There was a problem trying to read the feed for url http://<IPaddress>/Forums/RSS.aspx?ItemID=2&mid=385&pageid=171.  Ignoring.

System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.

10/10/2013 6:25:38 PM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

Now it seems as though I cannot get valid XML out of the forums...

10/10/2013 6:32:08 PM
Gravatar
Total Posts 104

Re: RSS feed is not displayed on page

Created a new forum, new posts...

 

2013-10-10 18:29:32,247 ERROR 10.4.1.1 - en-US - /<PAGENAME>.aspx - mojoPortal.Web.FeedUI.FeedCache - There was a problem trying to read the feed for url http://<IPaddress>/Forums/RSS.aspx?ItemID=4&mid=385&pageid=171. Ignoring.

System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.

10/11/2013 12:32:08 PM
Gravatar
Total Posts 18439

Re: RSS feed is not displayed on page

That error means it got a web response but the content of the web response was not a feed. A web page url entered as a feed url would do that or if the feed url was throwing an error page instead of a feed, but in that case there should be a separate error logged from the forum feedurl in addition to the one logged by feed manager. I would check the feed again and check the url for the feed in feed manager.

Actually looking at the feed url you posted it doesn't look like the correct format for the latest version of mojoportal, I would copy it again from the feed icon link in the forum. In the new format we have combined the module id and item id into one ~ separated parameter parameter like this:

/Forums/RSS.aspx?pageid=5&m=34~2

another thing you could try if the forum is on the same site as the feed, a relative url in the format ~/Forums/RSS.aspx... might work there.

Thanks for the beers! Much appreciated.

You must sign in to post in the forums. This thread is closed to new posts.