Title: Use phpBB session data in WordPress page?
Last modified: August 18, 2016

---

# Use phpBB session data in WordPress page?

 *  [nexuszero](https://wordpress.org/support/users/nexuszero/)
 * (@nexuszero)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/use-phpbb-session-data-in-wordpress-page/)
 * 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?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [pearlybay](https://wordpress.org/support/users/pearlybay/)
 * (@pearlybay)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/use-phpbb-session-data-in-wordpress-page/#post-649611)
 * 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.
 *  [pearlybay](https://wordpress.org/support/users/pearlybay/)
 * (@pearlybay)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/use-phpbb-session-data-in-wordpress-page/#post-649612)
 * 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.
 *  [delirium](https://wordpress.org/support/users/delirium/)
 * (@delirium)
 * [18 years ago](https://wordpress.org/support/topic/use-phpbb-session-data-in-wordpress-page/#post-649647)
 * 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…
 *  [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * (@jonimueller)
 * [18 years ago](https://wordpress.org/support/topic/use-phpbb-session-data-in-wordpress-page/#post-649648)
 * 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/](http://www.wp-united.com/)
 *  [ivovic](https://wordpress.org/support/users/ivovic/)
 * (@ivovic)
 * [18 years ago](https://wordpress.org/support/topic/use-phpbb-session-data-in-wordpress-page/#post-649649)
 * 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?
 *  [mmbc](https://wordpress.org/support/users/mmbc/)
 * (@mmbc)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/use-phpbb-session-data-in-wordpress-page/#post-649657)
 * 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.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Use phpBB session data in WordPress page?’ is closed to new replies.

## Tags

 * [phpBB](https://wordpress.org/support/topic-tag/phpbb/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 6 participants
 * Last reply from: [mmbc](https://wordpress.org/support/users/mmbc/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/use-phpbb-session-data-in-wordpress-page/#post-649657)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
