After upgrading Drupal core from 7.2 to 7.7, I now receive this error message on every page:
Notice: Undefined index: secondary-links in menu_block_view() (line 462 of /var/www/modules/menu/menu.module).
I noticed that the Secondary Links menu was renamed to "Secondary Menu". I did have the Secondary Links menu block enabled before upgrading, but after upgrading it obviously doesn't exist anymore. I moved the "Secondary Menu" block back to the region I had the Secondary Links block, but the error persists.
Any ideas?
Also, I apologize if I haven't included enough information or haven't posted this in the right area. This is my first time seeking support on the Drupal forums, as I have previously just pushed my way through problems and fixed them myself.
Comments
Fixed: Mods may
Fixed: Mods may close.
SOLUTION: I simply removed the "secondary-links" entry from the "block" table in PHPMyAdmin, and it took care of the problem.
Drupal core devs may want to look into a fix for this.
Thanks
I have the same problem
Even though the error is about primary-links, not secondary-links. Entire blocks are no longer generated and I get this error. I also removed the "primary-links" entry from the "block" table in PHPMyAdmin, and it took care of the problem. On top, I had to reconfigure all the navigation blocks again to make them show up correctly.
PS: I migrated from 7.4 to 7.7
Same error after update 7.4 -> 7.7
I encountered the same error. But the SQL statement I discovered here ( http://drupal.org/node/1007910 ) didn't help me.
Seems as if this is an update related topic: http://drupal.org/node/1231856
Update
There's a patch that certainly seems to work for the primary menus. The approach here using phpMyAdmin is also useful for those who have already upgraded:
http://drupal.org/node/1231856