Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Volx commentedI get the same error. Does removing the & really solve the issue or does the function need it?
Comment #2
hutch CreditAttribution: 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