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

Volx’s picture

I get the same error. Does removing the & really solve the issue or does the function need it?

hutch’s picture

I 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.

sun’s picture

Status: Active » Closed (duplicate)