If i go to admin/build/menu-customize/primary-links
i get this error:
Fatal error: Unsupported operand types in /home/domainfoo.bar/public_html/drupal6/includes/common.inc on line 1548(as admin / user/1 an as a user with priveleges. I tried this workaround to track down the bug, with no result: http://drupal.org/node/362799 The output is still the same :?
using Drupal 6.9. The error showed up after moving from a PHP4 to PHP5 server
Comments
Comment #1
Anonymous (not verified) commentedThis can easily be fixed (at least on my system) by changing the method l($text, $path, $options) as follows:
Change:
to:
Note: I am using captcha, captcha_pack, cck, i18n, imce, languageicons, print, simplenews, tinytinymce, views, views_slideshow
This happens if $options (as handed to l()) is not an array. Please be aware that the above "solution" simply throws away any non-array-options handed to l().
Traceback:
-- edit:
Reason for problem:
At least in my case the problem was related to ill defined menues. I am using language-constraints for menues (e.g. primary links contains all menue entries for multiple languages). One of those entries was ill-defined. After deleting this menu-entry everything works again, without changing l().
This problem could be fixed if calls to l() check "is_array" before using "+=" or if _menu_overview_tree_from() in menu.admin.inc would check $item['localized options'].
Comment #2
Anonymous (not verified) commented@Lenn-art: Which modules are you using? Could you please check for ill-defined menu-entries and for nodes, whose menu-entries cannot be changed?
Possibly related to / same as: http://drupal.org/node/328110
Comment #3
dave reidYou might want to try the solution in #328110: Recoverable fatal error: Argument 3 passed to l() must be an array.
Comment #4
dpearcefl commentedClosing this issue because of a lack of activity.