ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

RSS, errors on sorting entries and limit=

July 28, 2008 6:06pm

Subscribe [2]
  • #1 / Jul 28, 2008 6:06pm

    vickilh2

    24 posts

    Hello,

    My RSS feeds seem to be working except for 2 things.

    1.  If I add a sort=“asc” parameter to my entries statement, I get an error msg (“this feed contains errors”, “The following tags were not closed: rss, channel, item. Line: 0 Character: 0”).  All those tags are closed, it runs when I don’t have the ‘sort’ parm.
    Example of code with sort:

    {exp:weblog:entries weblog="calendarWL" sort="asc" order_by="calendarEventDate" limit="22" rdf="off" show_future_entries="yes" dynamic_start="on" category="35" disable="member_data|trackbacks"}

    2. When the limit= number is over a certain amount, the feeds will fail with the same error msg (“this feed contains errors”, “The following tags were not closed: rss, channel, item. Line: 0 Character: 0”).
    On one of the blogs, the limit is no problem!
    On the other two blogs, I can’t set the “limit” number high enough for me to feel I can publish them.  With one, I can’t go over a limit of 10.
    With the other, I can’t go over a limit of 22.

    Please help before I pull my hair out!  😖

    Thanks!!  Vicki

  • #2 / Jul 28, 2008 6:10pm

    Lisa Wess

    20502 posts

    Moved down to technical support.

    These symptoms make me think you may have a memory limit issue.  If you go to Admin ->  Utilities -> PHP Info and search for “memory_limit” - what does the value say?

  • #3 / Jul 28, 2008 6:21pm

    vickilh2

    24 posts

    It says 16 meg.

    Why would it be able to handle a lot from one weblog but just a little from other?

    Thanks so much!  Vicki

  • #4 / Jul 28, 2008 6:22pm

    Lisa Wess

    20502 posts

    It can depend quite a bit on the rest of the template.  Taking up 16 meg in an RSS file would be a bit surprising, though.  Still, it would not hurt to ask your host to up it to 32m or so and see if that helps.

    Also, when it’s giving those errors, you might try viewing the source of the rendered RSS to see if there are any errors there.

  • #5 / Jul 28, 2008 6:31pm

    vickilh2

    24 posts

    Here is the url of the feed where the limit can’t exceed 10:
      http://globalhealth.duke.edu/news-events/announcements-rss

    Thanks for your help!  vicki

  • #6 / Jul 28, 2008 6:47pm

    Lisa Wess

    20502 posts

    I didn’t really need the URL at this point; are you able to view this in a browser and view the rendered source, when the limit is above 10, and see if there is an error?

    You might try the RSS Validator as well.

  • #7 / Jul 28, 2008 9:39pm

    vickilh2

    24 posts

    Hi Lisa,

    I set that one feed up to 11 (so that it would fail)—I looked at the page page, and surprisingly there was a lot there. 

    I also ran it through the W3c validator:
    http://validator.w3.org/feed/check.cgi?url=http://globalhealth.duke.edu/news-events/announcements-rss

    .. but I’m not sure what I’m seeing.  There is an “<item>” at the very end, starting off and not going anywhere.  For some reason, this feed is getting cut off.

    Thanks again!  Vicki

  • #8 / Jul 28, 2008 11:41pm

    Lisa Wess

    20502 posts

    That cut off is why I suspect a memory issue.  Did you ask your host about testing the upping of memory allocated to you?

  • #9 / Jul 28, 2008 11:50pm

    vickilh2

    24 posts

    I’ll be calling central IT at the university tomorrow to ask them about that.

    Thanks a bunch for your help!  vicki

  • #10 / Jul 29, 2008 5:26pm

    Ingmar

    29245 posts

    Let us know how it when you get the time 😊 Thanks.

  • #11 / Jul 30, 2008 11:35am

    vickilh2

    24 posts

    Hello,

    IT said they increased the memory_limit of the VM/virtual machine we’re on to 32 meg.  But I’m still having the same problem with my feeds—I checked the php_info in EE, and it says the memory_limit is still 16 meg.

    Just called into IT again. —Do y’all know of any reason why this would be happening?

    Thanks again!  Vicki

  • #12 / Jul 30, 2008 11:44am

    Robin Sowell

    13255 posts

    Hm- Ingmar posted something that may related.  Let me dig into that.  Meantime- can you copy the weblog tag that’s inside the rss feed- paste it on a blank template.  And up the limit to say 100.  If you try to view that page- does it work, or whitescreen?

  • #13 / Jul 30, 2008 11:57am

    vickilh2

    24 posts

    I’m still wondering why this would be a memory_limit problem, though.

    One of the problematic RSS feeds can’t have a entries tag “limit=” of more than 10.  But these are short little entries, no images, etc..  I just checked, and the feed the feed is only 25K! (saved the page source)  I don’t see how it could be hitting any type of memory limit.

    My one feed that appears to be working ok has the limit set to 30 and has some images.  I view the page source & definitely much more data here than the other feed set to 10 (or 11, where it stops working.)

    Why would this one run with more data, and not the other one, with less data (only 25K)??

    Thanks!!  vicki

  • #14 / Jul 30, 2008 12:05pm

    vickilh2

    24 posts

    I just copied/pasted the weblog:entries tag of a problem RSS feed into a blank template, printing out the entry headline, with limit of 100,—no problem.

    thanks!!  vicki

  • #15 / Jul 30, 2008 12:10pm

    Robin Sowell

    13255 posts

    Curious.  OK- can you paste your full rss template here- the borking one.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases