5
No it is not just you. at least 20 of my users reported this bug to me many times and i first thought this is a problem in profile module in /modules/profile/edituser.php just like Mamba said in his post. But today i have some times to find the root of this issue and now im sure it is a bug in core 2.5.5
in xoops255/include/common.php add the commented lines by irmtfan in lines 224-254:
/**
* Log user is and deal with Sessions and Cookies
*/
if (!empty($_SESSION['xoopsUserId'])) {
$xoopsUser =& $member_handler->getUser($_SESSION['xoopsUserId']);
if (!is_object($xoopsUser) || (isset($hash_login) && md5($xoopsUser->getVar('pass') . XOOPS_DB_NAME . XOOPS_DB_PASS . XOOPS_DB_PREFIX) != $hash_login)) {
$xoopsUser = '';
$_SESSION = array();
session_destroy();
setcookie($xoopsConfig['usercookie'], 0, - 1, '/');
} else {
if ((intval($xoopsUser->getVar('last_login')) + 60 * 5) < time()) {
$sql = "UPDATE " . $xoopsDB->prefix('users')
. " SET last_login = '" . time()
. "' WHERE uid = " . $_SESSION['xoopsUserId'];
@$xoopsDB->queryF($sql);
}
$sess_handler->update_cookie();
if (isset($_SESSION['xoopsUserGroups'])) {
$xoopsUser->setGroups($_SESSION['xoopsUserGroups']);
} else {
$_SESSION['xoopsUserGroups'] = $xoopsUser->getGroups();
}
// Start irmtfan to regenarate a new session and destroy old session for xoopsUserTheme
$user_theme = $xoopsUser->getVar('theme');
if ($user_theme != $xoopsConfig['theme_set'] && in_array($user_theme, $xoopsConfig['theme_set_allowed'])) {
$_SESSION['xoopsUserTheme'] = $user_theme;
}
// End irmtfan to regenarate a new session and destroy old session for xoopsUserTheme
$xoopsUserIsAdmin = $xoopsUser->isAdmin();
}
}
IMO the above can be the final solution. Anyway i sent it to tracker for core team review. Maybe there is an issue in profile module too because this profile module need a complete rewrite.
https://sourceforge.net/tracker/?func=detail&aid=3560586&group_id=41586&atid=430840Quote:
I recently moved my site. The first problem I had was all the newer themes to choose from for users didn't seem to work good with other browsers other than IE.
About this issue. If you mean you move to another server and had not this issue in the old server it maybe a file/folder chmode permission issue that can be solved via Cpanel.
As Mamba said you should provide
full information about your server (php, mysql, ...) and your xoops version and installed modules and themes names.
then we can help you.