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.
PHP5.4.35 gives me these warnings (which Drupal logs as errors):
Only variables should be assigned by reference in /sites/all/modules/menu_item_container/menu_item_container.module on line 91.
Only variables should be assigned by reference in /sites/all/modules/menu_item_container/menu_item_container.module on line 118.
Both lines 91 and 118 read:
$theme_registry =& theme_get_registry();
Removing the ampersands gets rid of the warning.
Comment | File | Size | Author |
---|---|---|---|
reference_warning_remove_ampersand.patch | 837 bytes | mreggie |
Comments
Comment #1
aiphesHi,
I get this error in watchdog too:
Only variables should be assigned by reference dans /site/sites/all/modules/menu_item_container/menu_item_container.module à la ligne 91.
Menu item containers (menu_item_container) 6.x-1.2 + D6.38 + PHP5.6