WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Cannot redeclare wpbook_safe_publish_to_facebook()

[Resolved] Cannot redeclare wpbook_safe_publish_to_facebook()

  • 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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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');

    To:

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

    And then try to reimport your feed

    Can we mark this resolved?

    I’m not sure 🙂 I will for now but may reopen it.

    BandonRandon

    @bandonrandon

    I’ve reopend this as we’ve had 2 more reports of this issue:
    http://bugs.wpbook.net/view.php?id=30
    and
    http://wordpress.org/support/topic/reset-wpbook

    John Eckman

    @johneckman

    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.

    Problem is back again, manual “include_once” fix is still working.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Cannot redeclare wpbook_safe_publish_to_facebook()’ is closed to new replies.
Skip to toolbar