Contents |
Users appearing in an "unknown location"
The problem
A number of users have reported that some of their forum users are being listed as in an "unknown location" on their Who's online list.
The solution
It has been determined that this is caused by a bug in some versions of the MultiByte PHP extension, more specifically in the my_substr function.
The bug has been fixed in the latest version of the MultiByte so to solve this issue permanently you can simply ask your host to upgrade to the latest version of the extension.
If your host is not able to upgrade MyltiByte or if you wish to fix the problem temporarily you can simply open your ./inc/functions_online.php file and find:
$filename = my_substr($split_loc[0], -my_strpos(strrev($split_loc[0]), "/"));
and replace it with:
$filename = substr($split_loc[0], -my_strpos(strrev($split_loc[0]), "/"));
Please note, the temporary patch will not be applied to the official MyBB download or considered a bug in MyBB or fixed in any future maintenance release. It is a bug in the MultiByte PHP extension. We strongly encourage our users to keep their servers up-to-date, or otherwise encourage their hosts to keep their servers up-to-date.