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.
Hello,
Issue was found in Weight 7.x-2.2+4-dev:
Notice: Undefined index: weight_menu in _weight_set_weight() (line 533 of sites/all/modules/weight/weight.module).
Line 533 of weight.module probably should look like this:
if (isset($settings['menu_weight'])) {
Thank you.
Comments
Comment #1
davisbenCan you confirm the error message you posted is correct? There is no index "weight_menu" anywhere in the _weight_set_weight() function and line 533 uses "menu_weight".
Comment #2
yurg CreditAttribution: yurg commentedIt's probably because Weight 7.x-2.2+4-dev version was installed via Drush dl instead of most recent 7.x-2.2. Going to update Weight manually. Thank you.
Comment #3
yurg CreditAttribution: yurg commenteddeleted - double postComment #4
yurg CreditAttribution: yurg commentedSpoke too soon: error appeared again even after Weight module update up to 7.22:
There is additional information which may help: error appeared when I tried to save Views generated page with reordered node titles. Error was gone after line 520 change:
Thanks.
Comment #5
davisbenThis has been committed to 7.x-2.x.
Comment #6
yurg CreditAttribution: yurg commentedComment #6.0
yurg CreditAttribution: yurg commentedMarkup change