Forums

Use phpBB session data in WordPress page? (7 posts)

  1. nexuszero
    Member
    Posted 2 years ago #

    Hi all. I'm almost ready to migrate from CuteNews to WordPress, and I've made the templates and converted the news. There is, however, a deal-breaker which, if I can't fix, will prevent me from using WP which is a shame because I've been really impressed up until now. Looking around, this seems to be regular problem but I haven't seen any solutions outside of unweildy or seriously out-of-date mods.

    I simply want to stop a conflict when I try to get phpBB session info from within a WP page. This is used for a dynamic login box. However, I get this error:

    Fatal error: Call to a member function on a non-object in /sitepath/htdocs/forums/includes/sessions.php on line 134

    Does anyone have experience in getting these two to play nice?

  2. PearlyBay
    Member
    Posted 2 years ago #

    I have this same problem whilst integrating phpBB and WP.

    The forum works, WP doesn't. I've tried renaming some variables (WP also uses a passable variable $db so I renamed it, also renamed $userdata) and some functions such as get_userdata(). But to no avail.

    Any ideas? Did you manage it nexuszero?

    It's pretty hopeless for me right now...

    I have a third party db table and the rest of it so that WP-United is not an option.

  3. PearlyBay
    Member
    Posted 2 years ago #

    phpBB apparently (?) brings along a constant $db that is null while in corporation with WP.

    Methinks it has something to do with globals being unset in WP? I can't think of anything else.

    This is the buggy line from phpBB file:
    if (!($result = $db->sql_query($sql)))

    This probably isn't a strict WP issue, however this issue only appears when trying to incorporate phpBB and WP so I'm hoping this thread won't get deleted or locked even if it isn't a WP issue really.

  4. delirium
    Member
    Posted 1 year ago #

    This is a strict WP issue in fact. I wish I was aware of the fact that WP prevents from excessive development. I wasted days upon days trying to force custom sessions onto WP to no avail.

    I am dying to find a solution to the problem.

    I managed to get WP to load session variables on the first call to the set of data that I am passing over,,, but as soon as a page is refreshed the session variables are unset...

  5. jonimueller
    Member
    Posted 1 year ago #

    Would this help in any way? It seems to use WP as a portal to PHPBB. (If you are familiar with Simple Machines Forum and Tiny Portal, it works in a similar fashion, from what I can read.) Maybe you can inspect some of the code there to see if it is useful.
    http://www.wp-united.com/

  6. Ivovic
    Member
    Posted 1 year ago #

    actually guys, the problem is phpbb and the use of session variables in the first place. They really shouldn't be necessary in most cases these days.

    Doesn't it let you turn them off?

  7. mmbc
    Member
    Posted 1 year ago #

    This really wasn't that helpful. I'm looking right now at solutions to get around this $_SESSION variable deletion and I'm not finding anything useful yet.

Topic Closed

This topic has been closed to new replies.

About this Topic