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.

Wiki RSS error: XML Parsing Error: xml declaration not at start of external entity

August 22, 2007 8:06pm

Subscribe [2]
  • #1 / Aug 22, 2007 8:06pm

    c.emerson

    36 posts

    Using FireFox Live Bookmarks, I receive an error when I try to access the “Recent changes” RSS for my wiki. (I haven’t tried other RSS aggregaters - but the RSS feed from the Weblog and Forums are fine using Live Bookmarks(once I’ve signed onto my secured site).)

    Code in the function wiki_special_rss() for my wiki theme .php hasn’t been altered from what’s in the default theme…

    XML Parsing Error: xml declaration not at start of external entity
    Location: https://mysite.com/index.php?/S=blahblahsessionid/mywiki/Special:Recentchanges_RSS
    Line Number 3, Column 1:<?xml version=“1.0” encoding=“utf-8”?> 
    ^

    Its a company secured site so I can’t grant access to others but can provide code snippets to help troubleshoot. I’ve seen similar posts on this but they referred to running the wiki through page templates… There’s no RSS template in the wiki template group.

    Let me know what I can provide to assist with troubleshooting…
    -C

  • #2 / Aug 22, 2007 8:30pm

    Sue Crocker

    26054 posts

    c.emerson, are you using a default theme wiki theme? If you try this with the default theme, does the same error occur?

  • #3 / Aug 22, 2007 8:43pm

    c.emerson

    36 posts

    We’re not using the default theme, but I changed the wiki to use the default (users are gone for the day) and received the same error.
    I’ve changed it back to our custom theme - although there really is no difference in the rss function between the two themes.


    Thanks.
    -C

  • #4 / Aug 22, 2007 9:05pm

    Sue Crocker

    26054 posts

    Do you have any other RSS readers to test the feed against? You’re using sessions, is that an issue?

  • #5 / Aug 23, 2007 12:41pm

    c.emerson

    36 posts

    Hi Sue -
    re: sessions
    On the same site, I’m able to get the RSS feed read correctly from weblog and forums so while I don’t rule it out, it doesn’t seem like that would be the issue if it works on some not others. The difference between weblog and forum RSS vs wiki is that the wiki has the RSS xml in a function and uses output buffering.

    I have been able to get a different error (progress?)by modifying function wiki_special_rss() in my theme by moving the xml declaration out and hardcoding charset in the theme as follows:

    ob_start();    
    //    echo '<?xml version="1.0" encoding="{charset}"?>';
            ?>
    <?xml version="1.0" encoding="UTF-8"?>    
    <rss version="2.0"

    When I made this change, I get a new error trying to interpret the article content - its an entry that has a hefty html table.

    XML Parsing Error: not well-formed
    Location: https://mysite.com/index.php?/S=blahblahsessionid/mywiki/Special:Recentchanges_RSS
    Line Number 402, Column 318:

    Should the description be xml_emcoded? e.g.,

    <description><![CDATA[{exp:xml_encode}{article}{/exp:xml_encode}]]></description>

    I don’t know much about how the output buffering works but this aspect is definitely one difference between what works and what doesn’t.

    And I don’t have another RSS reader installed but not confident this would show anything, since again, some feeds from same site are working fine.
    Thanks!
    -C

  • #6 / Sep 11, 2007 5:46pm

    c.emerson

    36 posts

    Are any users using “User Session Type”=“Session ID only” and successfully able to get RSS feeds to work from the Wiki Recent Changes?
    I don’t have a separate template for RSS in the wiki template group - just using the instream function in the file…
    For now, I have the feed removed from the wiki…
    Please let me know.
    Thanks. -C

  • #7 / Sep 11, 2007 6:15pm

    Sue Crocker

    26054 posts

    c.emerson, I’ll set up one of my sites to use Session ID only and see if they’ll work for me. It’ll be in a few hours after my shift starts.

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

ExpressionEngine News!

#eecms, #events, #releases