Problem with invalid blog rss url

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/24/2012 3:27:59 PM
Gravatar
Total Posts 26
regards, Svein-Martin Holt Norway

Problem with invalid blog rss url

Hi

I wonder if there are an error in the newest version, 2.3.9.0, because I did not have this problem before I upgraded.

I have a news box with many rss-feeds from different pages on my site, but one page is not possible to set correctly, and are not showing up after upgrade.

I have checked the Mid and PageID, and also the Url Manager. I have also checked in the database, and it should be the correct Mid=7 and PageId=1.

I only have an error message when I use the URL, so I wonder what could be wrong.

Here is the URL/RSS in error: http://www.platelayer.com/blog7rss.aspx

The content: http://www.platelayer.com/Blog/RSS.aspx?pageid=1&mid=7

Should show data from this page: http://www.platelayer.com/project-blog.aspx

Here is another that works: http://www.platelayer.com/blog19rss.aspx

My news feed can be seen on this page: http://www.platelayer.com

 

Regards,
Svein-Martin Holt

8/25/2012 12:39:50 PM
Gravatar
Total Posts 18439

Re: Problem with invalid blog rss url

Hi,

Start with Basic Troubleshooting to find out the error details.

Hope that helps,

Joe

8/25/2012 3:04:47 PM
Gravatar
Total Posts 26
regards, Svein-Martin Holt Norway

Re: Problem with invalid blog rss url

Thank you, that gave me some more to work with, but I still need some help to sort it out. May be the RSS.aspx script in the mojoPortal must be changed?

I got the errormessage below, and find out that I have some customcode in some of the blogposts to create a lightbox. I have tried to figure out how to use the lightbox in blog entrys to work as in an image library.

If I disable the "Include in Feed" in the entry, the RSS code works well, not displaying the actual posting.

Here is the error:

[ArgumentException: Cannot have ']]>' inside an XML CDATA block.]

System.Xml.XmlTextWriter.WriteCData(String text) +185
Argotic.Syndication.RssItem.WriteTo(XmlWriter writer) +175
Argotic.Syndication.RssChannel.WriteTo(XmlWriter writer) +1693
Argotic.Syndication.RssFeed.Save(XmlWriter writer, SyndicationResourceSaveSettings settings) +1152
Argotic.Syndication.RssFeed.Save(XmlWriter writer) +53
mojoPortal.Web.FeedUI.RssPage.RenderRss() +2695
mojoPortal.Web.FeedUI.RssPage.Page_Load(Object sender, EventArgs e) +90
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 

This page in error has the source below(The code in error is bolded):

http://www.platelayer.com/mountain-and-bridge-work.aspx

The code works well in normal view.

<p> </p>
<p>Some work have been done to create the concrete bridge abutments.</p>
<p>Some mountainwork has also been done. In the left corner, the whole mountain is made by gluing foam together and the whole mountain can be lifted up so the track inside the tunnels can be checked.</p>
<p> </p>
<p><a class="gallery120422" title="The bridge concrete abutments are in place." href="/Data/Sites/1/media/GalleryImages/53/WebImages/smh_12348_m.jpg"><img style="width: 200px; height: 133px;" alt="" src="http://www.platelayer.com/Data/Sites/1/media/GalleryImages/53/Thumbnails/smh_12348_m.jpg" /></a> <a class="gallery120422" title="The mountains can be liftet up so the track in the tunnells can be inspected." href="/Data/Sites/1/media/GalleryImages/53/WebImages/smh_12357_m.jpg"><img style="width: 200px; height: 133px;" alt="" src="http://www.platelayer.com/Data/Sites/1/media/GalleryImages/53/Thumbnails/smh_12357_m.jpg" /></a></p>
<script type="text/javascript">// <![CDATA[
jQuery('a.gallery120422').colorbox({rel:'gallery120422', transition:"none"});
// ]]></script>

8/27/2012 10:10:49 AM
Gravatar
Total Posts 18439

Re: Problem with invalid blog rss url

Hi,

I will add something to remove cdata strings from content in the feed for the next release. But you can avoid this problem by not wrapping your javascript in cdata

ie change this:

<script type="text/javascript">// <![CDATA[
jQuery('a.gallery120422').colorbox({rel:'gallery120422', transition:"none"});
// ]]></script>

to this

<script type="text/javascript">
jQuery('a.gallery120422').colorbox({rel:'gallery120422', transition:"none"});
</script>

but keep in mind that javascript is not going to work in other things that consume your feed such as google reader or other feed readers.

Hope that helps,

Joe

8/27/2012 10:37:38 AM
Gravatar
Total Posts 26
regards, Svein-Martin Holt Norway

Re: Problem with invalid blog rss url

Hi Joe

Thank you, that did the trick, but I first had some problems removing the CDATA, because I used the TinyMCE editor and that put the code back in again.

So when I changed to use the CKEditor, the source was not changed by the editor and the lightbox works OK and the RSS Feed is also OK again.

So may be the editor need some changes?Smile

8/30/2012 3:11:07 PM
Gravatar
Total Posts 18439

Re: Problem with invalid blog rss url

I'm not the developer of the editors, we just use them because they are the best open source editors currently available. They each have their quirks so best to pick one that works best for your needs. If you think there is a bug in TinyMCE or CKEditor you can report bugs to the developers of those editors, but I suspect in this case the TinyMCE guys will consider their cleanup routines a feature rather than a bug.

In the Html content feature we have a setting to force a plain text area for those cases where you need to enter complex javascript and don't want to risk having the editors change any of it. But in the blog I would generally avoid use of javascript myself because it won't work in the feed, but if you really need to add javscript in blog posts CKeditor is probably your best bet and its best to save without switching back to wysiwyg view because it may run some cleanup when you do (though its cleanup usually seems a little more tolerant than the TinyMCE cleanup). Unfortunately TinyMCE uses a dialog for html view so there isn't a way to save without it going back to wysiwyg view.

So, in short, what I'm saying is I can't really do anything to change the behavior or fix bugs in the editors other than things they make configurable, any real bugs would need to be reported upstream to the developers who maintain them.

Best,

Joe

8/31/2012 4:15:48 AM
Gravatar
Total Posts 26
regards, Svein-Martin Holt Norway

Re: Problem with invalid blog rss url

Yes, I know that the editors are anothers responsibility and I am doing well now with the current solution and knowledge how to use it.

I use this only as feeds to my "What's new" "box" on my frontpage, not as an official RSS-feed, so it works fine for me.

What I really should like to have in mojoPortal, is the option to toggle a "What's new" button on different items/menus, so it would be easier to set it up. But after figuring out that I could use the RSS-feed for this, it's OK.

Thank you for all answers.

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