futuresight / futurebb

The forum system by FutureSight Technologies. A live sample can be seen at http://futuresight.org/forums
http://futurebb.futuresight.org
2 stars 2 forks source link

FutureBB sometimes malfunctions on logout #156

Closed jacob-g closed 8 years ago

jacob-g commented 8 years ago

For example, on test.fs.org, it says this: Notice: Undefined variable: user_info in /srv/data/web/vhosts/test.futuresight.org/htdocs/forums/app_resources/includes/functions.php on line 218

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /srv/data/web/vhosts/test.futuresight.org/htdocs/forums/app_resources/includes/functions.php on line 221

jacob-g commented 8 years ago

I think this is a result of copying the code from the profile change password page. To fix this, get rid of the following code:

$user_info['login_hash'] = $hash;
self::LogInUser($id, $_SERVER['HTTP_USER_AGENT'], true);