MyBB Documentation

Unknown location

The 1.6 Documentation is no longer maintained and some information may be outdated.

The MyBB 1.6 series reached end of life on October 1, 2015.

This means there will be no more security or maintenance releases for these series and forums running these versions of MyBB may be at risk of unfixed security issues. All administrators are strongly encouraged to upgrade their forums to the latest release of MyBB as soon as possible.


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.

Further reading

Edit this page on GitHub