• Resolved dojaro

    (@dojaro)


    The plugin was working fine and doing it’s thing, but suddenly (a couple of weeks ago) it stopped and blamed the source, but that site hasn’t changed anything. I also manage the source-site and know that’s not the problem, so what can I do to make this plugin work again?

    The message on my site (with the plugin) is:

    RSS ERROR: https://WWW.HOLWERT.FRL/RSS IS INVALID XML, LIKELY DUE TO INVALID CHARACTERS. XML ERROR: RESERVED XML NAME AT LINE 2, COLUMN 39

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author vaakash

    (@vaakash)

    Hi @dojaro,

    The RSS feed source is not available. Please see the image below.

    Can you please check with the RSS feed owner regarding this or check if any other similar source is available?

    You can also validate the feed using an RSS validator – https://www.aakashweb.com/articles/how-to-check-if-rss-feed-is-valid-or-not/

    Thanks,

    Aakash

    Thread Starter dojaro

    (@dojaro)

    Thanks for you respons, but there must be a feed. Also on https://www.holwert.frl/feed.

    Plugin Author vaakash

    (@vaakash)

    Hi @dojaro,

    Glad you figured it out. I’m marking this as resolved.

    Thread Starter dojaro

    (@dojaro)

    No, no, no, it’s NOT resolved. I’m just proving that there is a feed (/rss and /feed), but the plugin isn’t picking up on it.

    Plugin Author vaakash

    (@vaakash)

    Hi @dojaro,

    The RSS feed is still invalid. Please see the report below.

    https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fwww.holwert.frl%2Ffeed

    Below are the options,

    1. Ask the feed owner to remove the blank line at the top.
    2. (or) use the code below to remove that whitespace before parsing.

    Hope this helps.

    function srr_strip_whitespace( &$feed, $url){

    $transient_key = 'sanitized_feed_' . md5($url);
    $cached_feed = get_transient($transient_key);

    if ($cached_feed) {
    $sanitized_feed = $cached_feed;
    } else {
    $raw_feed = file_get_contents($url);

    if ($raw_feed === false) {
    return;
    }

    $sanitized_feed = trim($raw_feed);
    set_transient($transient_key, $sanitized_feed, 12*HOUR_IN_SECONDS);
    }

    $feed->feed_url = null;
    $feed->set_raw_data($sanitized_feed);

    }

    add_action( 'wp_feed_options', 'srr_strip_whitespace', 10, 2 );

    Thanks,

    Aakash

    Thread Starter dojaro

    (@dojaro)

    Thanks!
    Option 1 isn’t working, because it’s a standard RSS from WordPress. So it’s probably added by the used theme(?).

    So how do I apply the second option? Where do I place the code provided by you (last time I ask ;)).

    Plugin Author vaakash

    (@vaakash)

    Hi @dojaro,

    If you are the owner of the RSS feed, then you can try disabling the plugins one by one or the theme and see if the blank line is removed. You can use this method to find the problem. A blank line at the top will not work with any RSS feed.

    To insert custom code, there are various methods. Please follow the article below. You can also Google for more info.

    https://www.aakashweb.com/articles/best-methods-to-insert-custom-php-code-in-wordpress/

    Thanks,

    Aakash

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

The topic ‘Plugin suddenly stopped working’ is closed to new replies.