Skip to:
Content
Pages
Categories
Search
Top
Bottom

bb_logout() from external site


  • coastwise
    Member

    @coastwise

    This may seem like a strange request so I’ll try to describe the whole situation. I have a couple of web applications I have tied together by creating an OpenID Provider server for the main app, and configured bbpress as a Consumer using a modified version of the OpenID Plus plugin. Everything works great except logout. Since each app controls its own session information separately, logging out of one does not log out of the other. I can hook into bbpress’ logout to call the appropriate function in my main app, but the opposite direction is proving difficult.

    In my logout function external to bbpress I have the following:

    require ('../forum/bb-load.php');

    bb_logout();

    but receive this error when its executed:

    Fatal error: Call to a member function suppress_errors() on a non-object in ***/forum/bb-includes/functions.bb-core.php on line 63

    Line 62 and 63 from the file in question

    global $bbdb;

    $bbdb->suppress_errors();

    I don’t understand how it could get as far as this line without setting $bbdb in bb-settings.php. Any ideas?

You must be logged in to reply to this topic.