• bodach

    (@bodach)


    Hi,

    I am finding that using the Yet Another Related Posts plugin version 3.03 with WordPress version 2.7.1 breaks my RSS feed giving “An invalid character was found in text content”.

    If I disable the RRS element of the plugin, my feed works. The related posts works fine on individual posts.

    For completeness I should say I only noticed this after porting my blog to a new domain, which involved copying the DB. The DB and WordPress are set to UTF-8. I have unistalled and reinstalled the plugin. No joy. Any suggestions?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Please let me know what invalid character that is that’s being printed… As YARPP’s output is appended to the content which is then filtered for RSS output, I’m surprised to hear this, but I can try to fix it if i get specifics.

    Thread Starter bodach

    (@bodach)

    I’m not sure if I am doing this right, but here goes…

    I recreated the problem, did a view source on the feed in Chrome (IE fails to display the entire feed), this one of the sections that appear to cause the problem. Note the character represented by a “square” after the words “wine.” and “longer.” Thanks for looking at it.

    <p>Related posts:

    1. Something Special <small>A friend of mine who lives in Loreto Aprutino kindly…</small>
    2. Marina Cvetic, Montepulciano d’Abruzzo <small>I like wine. � It’s not the first time I’ve…</small>
    3. L’appetito vien mangiando (Appetite comes with eating) <small>I can’t wait any longer. � I’ve done everything I…</small>

    </p>]]>

    Thread Starter bodach

    (@bodach)

    Also I ran the feed through http://feedvalidator.org

    and got

    Sorry

    This feed does not validate.

    line 82, column 560: ‘utf8’ codec can’t decode bytes in position 7155-7156: invalid data (maybe a high-bit character?) [help]

    … ?It’s not the first time I’ve…</small>

    • <a href=’h …
      ^
      In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
    • line 82, column 521: content:encoded contains bad characters (18 occurrences) [help]

      … d’Abruzzo <small>I like wine. ?It’s not the first time I …

    Thread Starter bodach

    (@bodach)

    Please stop working on this. I think I may be wasting your time. When I look at the related posts at the actual post level the same issue occurs, but I think the browsers are more forgiving than feed readers.

    I think my posts/DB may have corrupt data. Sorry if I wasted your time.

    Post level:

    Related posts:

    Something Special A friend of mine who lives in Loreto Aprutino kindly…
    Marina Cvetic, Montepulciano d’Abruzzo I like wine. � It’s not the first time I’ve…
    L’appetito vien mangiando (Appetite comes with eating) I can’t wait any longer. � I’ve done everything I…

    Thread Starter bodach

    (@bodach)

    OK – I actually do think there is a problem. I think there are invalid characters in the related post links in both the posts and the RSS feed. But the browsers, IE and Chrome are less restrictive than the feed readers and so the text is displayed. The invalid characters can be seen on this page, in the related post section at the bottom, http://aboutabruzzo.com/index.php/2009/05/04/activities/music-of-abruzzo/ Note also that if you look at the second related post (the first with an invalid character) http://aboutabruzzo.com/index.php/2009/04/17/pictures/marina-cvetic-montepulciano-dabruzzo/ there are no indications of an invalid character in the posts text.

    It is for this reason I believe the YARP plugin is the source of the issue. (Sorry for all this flip-flopping.)

    @bodach – this is not a problem with YARPP. If you look at your second article (http://aboutabruzzo.com/index.php/2009/04/17/pictures/marina-cvetic-montepulciano-dabruzzo/), there actually is a non-space unicode control character in your source… the browsers aren’t giving you an error but the character is coming from your content, not from YARPP. Try replacing those characters with real spaces in your post content.

    Thread Starter bodach

    (@bodach)

    You are absolutely right. YARPP is behaving correctly. Once again I’m sorry for wasting your time, but thank you for the suggestion.

    The weird thing is these “bad” characters seem to appear only in the first couple of lines in my posts, most often after I enter a double space after a fullstop (period).

    Anyway that is not your problem. Thanks again for looking into it.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: Yet Another Related Posts Plugin] Invalid Character in RSS feed’ is closed to new replies.