Get the following warning on clean 4.3 installation with mbstring enabled to overwrite all functions:

warning: mb_strrpos(): Empty haystack in /var/www/testpunt/htdocs/includes/menu.inc on line 190.

Problem can be solved by changing line 190 of menu.inc:
----------------------------------------------------------------
$parent = substr($parent, 0, strrpos($parent, "/"));
----------------------------------------------------------------

into:
----------------------------------------------------------------
if ($parent) $parent = strrpos($parent, "/");
$parent = substr($parent, 0, $parent);
----------------------------------------------------------------

Comments

Robert L’s picture

Solving the problem seems a bit more complicated than I suggested. Needs another look.

Robert L’s picture

---------------------------------------------------------------
if ($parent) $_lenght = strrpos($parent, "/");
$parent = substr($parent, 0, $_lenght);
---------------------------------------------------------------
Seems to work better...

jonbob’s picture

The menu system changed substantially, so this is no longer an issue.

Anonymous’s picture