Google Tutor » Shared Items Wordpress Plugin

SimplePie Error

(8 posts)
  • Started 1 year ago by jeffvand
  • Latest reply from The Tutor
  1. I had no problem activating the plugin on one of my sites (http://www.edutechie.com). Works great! I went to activate it on another and got the following error:

    "Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare class SimplePie in /[path removed]/wp-content/plugins/shared-items-post/simplepie.php on line 382"

    I am running 2.6.3 and have the following plugins activated right now. I did try deactivating a couple of them, but kept getting the same error...

    - Askimet
    - Audio Player
    - DISCUS Commenting System
    - Feedburner Feed Replacement
    - Feed WordPress (Disabled... didn't help... not active right now)
    - Related Posts
    - WP-Footnotes

    Any ideas? I also tried re-uploading the plugin wondering if perhaps it wasn't fully uploaded... that didn't help either...

    Any ideas?

    Thanks!

    Posted 1 year ago #
  2. hi jeff,

    sounds like one of the other plugins might already be using simplepie, not sure though. I can tell you I have it running on 2.6.3 just fine. I'd try disabling all plugins except akismet and see if it works. if not try removing feedwordpress entirely, that one can cause a lot of headaches

    Posted 1 year ago #
  3. Tried completely uninstalling feedwordpress (which I was glad to do!) and it works much better now. I was trying to use feedwordpress to feed my RSS from my shared items in to automatically post, but have had issues from the beginning and gave up on it! As long as this actually posts when it says it should automatically I am very excited about this! Thanks for your work!! Awesome job!!

    Posted 1 year ago #
  4. glad you got it working! note that it posts on server time so take that into account when scheduling.

    Posted 1 year ago #
  5. I happen to have the same problem (at 'activate' level) with the following gigantic testbed of used plugins.
    The error I got, as above, is:

    Fatal error: Cannot redeclare class SimplePie in /home/...snip.../numania.com/wp/wp-content/plugins/shared-items-post/simplepie.php on line 382

    Here is the solution I did --
    I got the solution in this very site from a post of Joakim Jardenberg. What I did is as follows:

    Change

    require_once(dirname(__FILE__).'/simplepie.php');

    to

    `
    if (file_exists(WP_PLUGIN_DIR.'/simplepie-core/simplepie.inc')) :
    require_once(WP_PLUGIN_DIR.'/simplepie-core/simplepie.inc');
    else :
    require_once(dirname(__FILE__).'/simplepie.php');
    endif;
    `

    ... and it works !

    Posted 1 year ago #
  6. I got the solution in this very site from a post of Joakim Jardenberg. What I did is as follows:

    Change

    require_once(dirname(__FILE__).'/simplepie.php');

    to

    if (file_exists(WP_PLUGIN_DIR.'/simplepie-core/simplepie.inc')) :

    require_once(WP_PLUGIN_DIR.'/simplepie-core/simplepie.inc');

    else :

    require_once(dirname(__FILE__).'/simplepie.php');

    endif;

    Posted 1 year ago #
  7. I got the solution in this very site from a post of Joakim Jardenberg. What I did is as follows:

    Change

    require_once(dirname(__FILE__).'/simplepie.php');

    to

    if (file_exists(WP_PLUGIN_DIR.'/simplepie-core/simplepie.inc')) :

    require_once(WP_PLUGIN_DIR.'/simplepie-core/simplepie.inc');

    else :

    require_once(dirname(__FILE__).'/simplepie.php');

    endif;

    Posted 1 year ago #
  8. I tried making the change and it didn't work. get the same fatal error report. Here is a list of my activated plugins.

    akismet
    all in one seo
    best post summary
    click tags
    crosslinker
    google integration kit
    google xml sitemaps
    headspace2
    hyper cache
    jeromes keywords
    keywords to posts
    photo dropper
    post/page update notification
    post teaser
    quantcast quantifier
    quote comments
    redirection
    rss footer
    seo slugs
    si captcha
    sociable
    statpress
    thank me later
    thumbnail for excerpts
    wwsgd
    wordpress thread comment
    wp-copyprotect
    wp security scan
    wp super cache

    Posted 9 months ago #
  9. Here's a fix that _should_ work made by Jardenberg and Fridholm:


    if(!class_exists('SimplePie')) {
    if (file_exists(WP_PLUGIN_DIR.'/simplepie-core/simplepie.inc')) {
    require_once(WP_PLUGIN_DIR.'/simplepie-core/simplepie.inc');
    } else {
    require_once(dirname(__FILE__).'/simplepie.php');
    }
    }

    (This should replace the same lines of code as proposed earlier)

    Posted 9 months ago #
  10. I'd like to add this to the plugin, can anyone confirm it works?

    Posted 9 months ago #

Reply

You must log in to post.