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

davisben’s picture

Can 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".

yurg’s picture

It'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.

yurg’s picture

deleted - double post

yurg’s picture

Spoke too soon: error appeared again even after Weight module update up to 7.22:

Notice: Undefined index: menu_weight in _weight_set_weight() (line 520 of /sites/all/modules/weight/weight.module).
Notice: Undefined index: menu_weight in _weight_set_weight() (line 520 of /sites/all/modules/weight/weight.module).

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:

  if (isset($settings['menu_weight'])) {

Thanks.

davisben’s picture

Status: Active » Fixed

This has been committed to 7.x-2.x.

yurg’s picture

Status: Fixed » Closed (fixed)
yurg’s picture

Issue summary: View changes

Markup change