Hi,
I have one little problem. It is not a really related to JFBConnect, since it is caused by JomSocial (I have also reported it to them) but it also appears in your SC-Login module. I still haven't found a concrete way to reproduce the error, it just sometimes appears:
When I have enabled the "Remember Me" checkbox in the Login module and then wait until the session ends, in some cases (not every time) I get this server error:
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
The error log shows this:
[notice] child pid 12009 exit signal Segmentation fault (11)
The problem appears on the device until the session is over, or I clean the cookies. By removing parts of the code while the error appears, I have nailed it down to one line where the error is produced:
$my = CFactory::getUser();
This is where the error comes from and I guess it has to do with the way sessions and the remember me stuff is handled. It also doesn't work if I set the line to $my = CFactory::getUser($user->id);
The problem occurs with the newest version of JFBConnect and the JomSocial 3 RC1 - I know it is not really your responsibility, because the bug is caused by JomSocial, but maybe you have any idea what could happen? I have found out, that the session table has NULL as data in the troubled sessions, so I guess the problem is there (see screenshot).
I have further nailed the problem down to this area of code:
if( empty($instances[$id]) )
{
if( !is_numeric($id) && !is_null($id))
{
JError::raiseError( 500, JText::sprintf('COM_COMMUNITY_CANNOT_LOAD_USER', $id) );
}
$instances[$id] = new CUser($id);
$isNewUser = $instances[$id]->init();
$instances[$id]->getThumbAvatar();
if( $isNewUser )
{
// New user added to jomSocial database
// trigger event onProfileInit
$appsLib = CAppPlugins::getInstance();
$appsLib->loadApplications();
$args = array();
$args[] = $instances[$id];
$appsLib->triggerEvent( 'onProfileCreate' , $args );
}
// Guess need to have avatar as well.
if($id == 0)
{
JFactory::getLanguage()->load('com_community');
$instances[$id]->name = JText::_('COM_COMMUNITY_ACTIVITIES_GUEST');
$instances[$id]->username = JText::_('COM_COMMUNITY_ACTIVITIES_GUEST');
$instances[$id]->_avatar = 'components/com_community/assets/default.jpg';
$instances[$id]->_thumb = 'components/com_community/assets/default_thumb.jpg';
}
}
As said before: I know it is not really your problem, but maybe you have a idea what is wrong with the session handling...
Best Regards Michael