Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2010 at 22:45 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gmateos commentedHi guys, I had the same problem that tallsimon reported and I fixed adding some code to _menu_icons_menu_item_link function:
The error appear with a link generated by panels module, when logged only.
Hear is the error stack:
I think that applying the hack will solve the problem. Hope this help
Comment #2
hefox commentedUsing the latest .module from the repo seems to get rid of the error, but I couldn't get that version other than manually or cvs checkout; won't drush dl or anything.
Comment #3
skilip commentedProbably fixed as well with release 6.x-2.1
Comment #4
skilip commentedComment #5
juliebaumler commentedI ran into this same situation (without using menu_items) and traced it back to the fact that the l() function does not validate its input, but instead assumes that if it is given a third argument, that argument is an array. The above issues (and mine) result from that third argument being blank. There are several places within various menu related modules (and perhaps elsewhere) where this can happen. I've attached a patch that just casts the argument to array. (This is more efficient than checking for an array in php.)
Comment #6
salvisThank you for moving this my way, but I'm afraid this can only be fixed directly in core. A contrib module cannot replace (or augment) a core function, unless that function is designed to be extensible.
Moreover your primary approach for getting things fixed should be to provide patches to core. The Fix Core module is a back-up solution for cases where the primary approach fails, in cases where a core bug can be worked around at all.
My personal view is that core should be made as robust as possible where this can be done with little effort, and this seems to be such a case, but there are others who will say that the offending modules need to be fixed and core should not to bend one bit to accommodate contrib modules that misbehave.
Just to give you a jump start: According to the Drupal coding guidelines, comments must start with a capital letter and end with a period. Also, you'll need to check whether the same issue is present in D7. If it is, then it needs to be fixed there first.