Forums

Fatal error: Cannot redeclare class WP_Feed_Cache (3 posts)

  1. tgweb
    Member
    Posted 6 months ago #

    Downloaded Feed Importer plug in to godaddy hosted wordpress site. Installed plu gi and now I am completely locked out of wp admin and sit is down.

    Here is error message - Fatal error: Cannot redeclare class WP_Feed_Cache in /home/content/38/7968238/html/wp-includes/class-feed.php on line 16

    What can I do to get back wp admin and delete plug ins and get website live again?

    Appreciate any assistance.

    Paul

  2. tgweb
    Member
    Posted 6 months ago #

    Answer. Feed Importer was creating conflict with WP Feed Cahe.

    I deleted Feed Importer folder in FTP and was able to open site and get back into admin.

    Whew!

    Paul

  3. Gwyneth Llewelyn
    Member
    Posted 4 months ago #

    I'm sure that I've replied to this on a different place, but Google cannot find it, so, for
    the sake of completeness, here it goes again.

    The issue is mostly because some plugins related to RSS feeds use their own version of SimplePie (a library to deal with RSS feed parsing) which conflicts with WP's own. This doesn't happen on all sites/plugin combinations, but happens on some.

    One option to fix this is to edit ../wp-includes/class-feed.php and add

    if ( !class_exists('WP_Feed_Cache') ) { class WP_Feed_Cache ... }

    etc. for all classes defined in ../wp-includes/class-feed.php.

    Of course, you have to remember to do this every time WP is upgraded :(

Reply

You must log in to post.

About this Topic