Ready to get started?Download WordPress


[resolved] Cannot redeclare wpbook_safe_publish_to_facebook() (7 posts)

  1. Brooke Dukes
    Posted 4 years ago #

    This may be an isolated issue, but when using the new WPBook with Lifestream I got this issue when trying to reimport a feed.

    Fatal error: Cannot redeclare wpbook_safe_publish_to_facebook() (previously declared in /blog/wp-content/plugins/wpbook/publish_to_facebook.php:6) in blog/wp-content/plugins/wpbook/publish_to_facebook.php on line 160

    I think that lifestream was tying to loop though casue the publish_to_facebook function to be confused. Maybe we need a include_once?

  2. johneckman
    Posted 4 years ago #

    Hmm. Was this with WPBook 2.0.5?

    How does one "reimport a feed" in Lifestream?

    I've set WPBook to ignore 'posts' that are not of type 'post' so that all the custom posts Lifestream creates don't get published - so I'd hope it doesn't matter how many times it loops through, but perhaps you're right an include_once there would be better.

    Try changing line 943 of wpbook.php (in version 2.0.5) from:

    include(WP_PLUGIN_DIR .'/wpbook/publish_to_facebook.php');


    include_once(WP_PLUGIN_DIR .'/wpbook/publish_to_facebook.php');

    And then try to reimport your feed

  3. johneckman
    Posted 4 years ago #

    Can we mark this resolved?

  4. Brooke Dukes
    Posted 4 years ago #

    I'm not sure :) I will for now but may reopen it.

  5. Brooke Dukes
    Posted 3 years ago #

    I've reopend this as we've had 2 more reports of this issue:

  6. johneckman
    Posted 3 years ago #

    This will be solved in the next release - if you grab the 'development version' from trunk in SVN now you will see this is gone.

  7. j2l
    Posted 3 years ago #

    Problem is back again, manual "include_once" fix is still working.

Topic Closed

This topic has been closed to new replies.

About this Topic