WordPress.org

Ready to get started?Download WordPress

Forums

WP Conflict with Magpie? (4 posts)

  1. TydesPerdition
    Member
    Posted 8 years ago #

    I'm getting this error:

    Fatal error: Cannot redeclare parse_w3cdtf() (previously declared in /usr/local/psa/home/vhosts/distillusions.com/httpdocs/wp-includes/rss-functions.php:778) in /usr/local/psa/home/vhosts/distillusions.com/httpdocs/wp-content/themes/kiwi/includes/magpierss/rss_utils.inc on line 25

    After looking at both lines, they are identical:

    function parse_w3cdtf ( $date_str ) {

    I'm not that with it on this, so I'm hoping someone can throw me a bone here. My take is that one has to be stripped out and, rather than messing with WP's functions, it should be taken out of the Magpie rss_utils.inc file. But the question is... how much do I strip out to make this functional? Are all of the Magpie .inc files interlinked? Will I have to gut those files as well?

  2. davidchait
    Member
    Posted 8 years ago #

    Magpie is used in some areas of the WP code. You can simply call in the WP versions of the files, though they'll obviously be older than whatever latest release is out there, or use a different method for pulling feeds.

    -d

  3. TydesPerdition
    Member
    Posted 8 years ago #

    Forgive my ignorance... call in? How do I do that?

  4. davidchait
    Member
    Posted 8 years ago #

    "call in" == "include". have an include statement that directly references the WP rss-functions.php file. though, from the above error, it looks like it's already been included by the time your code tries to run. you can look in that file, see what the functions are that are exposed, and call those functions (likely the same Magpie functions...).

    I wrote my own RSS aggregator (CG-FeedRead), so I admittedly don't know a ton about Magpie or WP's version of it...

    -d

Topic Closed

This topic has been closed to new replies.

About this Topic