Closed (duplicate)
Project:
Administration menu
Version:
6.x-1.5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2010 at 03:12 UTC
Updated:
18 Aug 2010 at 14:04 UTC
The following file holds a function that is incompatible with PHP 5.3
sites/all/modules/admin_menu/admin_menu.inc
Change this
function admin_menu_admin_menu(&$deleted) {
to this without ampersand and the error will disapear
function admin_menu_admin_menu($deleted) {
WHY: As of PHP 5.3.0, you will get a warning saying that “call-time pass-by-reference” is deprecated when you use & in $foo->setVar(“xxx”)!
It seems there will be huge problems with drupal modules and php 5.3! The community should act concerted now. I've detected the same issue with date, calendar and even gmap!
Comments
Comment #1
Volx commentedI get the same error. Does removing the & really solve the issue or does the function need it?
Comment #2
hutch commentedI would consider the patch in #615058: Parameter 1 to admin_menu_admin_menu() expected to be a reference in comment #3 as definitive for this issue although I gather that it is in dev, try it.
Comment #3
sunthis is already fixed in 1.x-dev.
#615058: Parameter 1 to admin_menu_admin_menu() expected to be a reference