logout problem

Discuss the integratoin of phpbb and Joomla! here.

Moderator: General Support Moderators

Forum rules
Locked
ziol
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Feb 21, 2006 1:10 am

logout problem

Post by ziol » Tue Feb 21, 2006 1:12 am

Hi,

when i log out i have some problems...

Code: Select all

phpBB : Critical Error

Error obtaining user details

DEBUG MODE

SELECT * FROM jos_users WHERE id = -1

Line : 517
File : sessions.php
tnx

Grashopr
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Tue Jan 03, 2006 10:45 pm

Re: logout problem

Post by Grashopr » Wed May 31, 2006 11:10 pm

Oops..  spoke too soon.    I've been banging on this for a while now.  Anyone have any insight into a fix for this?

Looks like the com_forum isn't correctly finding the user_id...   


Here is the code from login.php inside the com_forum component that handles logouts:

Code: Select all

	else if( ( isset($HTTP_GET_VARS['logout']) || isset($HTTP_POST_VARS['logout']) ) && $userdata['session_logged_in'] )
	{
	  // session id check
                            if ($sid != '' && $sid != $userdata['session_id'])
                               	{
			message_die(GENERAL_ERROR, 'Invalid_session');
			return;
			}


		if( $userdata['session_logged_in'] )
		{
			session_end($userdata['session_id'], $userdata['user_id']);
      if(!$run_as_component){
		    print"<script>if(opener){opener.location.reload(true)}</script>";
		  }
		}
Last edited by Grashopr on Wed May 31, 2006 11:38 pm, edited 1 time in total.

Grashopr
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Tue Jan 03, 2006 10:45 pm

Re: logout problem

Post by Grashopr » Wed May 31, 2006 11:48 pm

I found my problem.  I had installed Community Builder (and the CB_login Module), but was still attempting to use the mod_phpbb_login module.  The CB install obviously altered something rendering the logout feature of phpbb_login.php useless.  I turned up my CB_login module and am using it now, but the only other fix would be to uninstall CB. 


Locked

Return to “phpbb - Joomla! Integration”