• I’m displaying external RSS feeds on my site using the fetch_rss function. With WP’s magpierss implementation (rss.php) the feed gets cached in the wp_options table.

    Reading back the feed from the cache, fetch_rss does not supply an array, but a string (that’s how the initial feed is stored in the wp_options table, since mysql does not accept arrays).

    Possible fixes:
    — don’t cache {don’t like that because of potential load on external servers}
    — hack rss.php to unserialize the string it gets from the wp_options table before returning it
    — “unserialize()” what I get back from fetch_rss seems not possible

    or is there actually some sort of type problem with the maybe_unserialize() function itself in functions.php?

    I’m wp 2.7.1 on php 4.4.4 with mysql 4.1.21

Viewing 1 replies (of 1 total)
  • hi,
    just to report i’ve found an identical/similar issue with maybe_unserialize() when called by the autotagger plugin (v2.0 – http://autotagger.wordpress.com/ ). i am using wp_mu 2.7 – think this uses the same wp-core version 2.7 as you are reporting.

    the plugin was expecting an array returned, but now (for some reason that i have yet quitre to fathom), it has suddenly decided to return some other data type.

    in my case, this happened after i performed what i thought had been a successful data migration between dev and live environments. my suspicion is that somehow during the transcription i (slightly) corrupted the wp-option value stored, hence triggered this issue.

    however, the autotagger plugin code itself has slightly suspect/ambiguus coding – most times using a cast to array type –

    $tags = (array)maybe_unserialize(get_option('at_tags'));

    – which works ok, but on the problem line, no cast, hence error.

    i’ll report this separately on the plugin authors site/possibly the mu site. just thought adding my experience to yours here might be helpful to others.

Viewing 1 replies (of 1 total)

The topic ‘external RSS feed from cache broken’ is closed to new replies.