Closed (fixed)
Project:
Drupal core
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2003 at 11:26 UTC
Updated:
6 Aug 2004 at 17:20 UTC
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
Comment #1
Robert L commentedSolving the problem seems a bit more complicated than I suggested. Needs another look.
Comment #2
Robert L commented---------------------------------------------------------------
if ($parent) $_lenght = strrpos($parent, "/");
$parent = substr($parent, 0, $_lenght);
---------------------------------------------------------------
Seems to work better...
Comment #3
jonbob commentedThe menu system changed substantially, so this is no longer an issue.
Comment #4
(not verified) commented