Posted by tkmluv on November 11, 2012 at 3:59pm
I just upgraded a site from 7.9 to 7.17 and everything is working as expected except I am getting errors on the User Edit page. Here is what I am getting:
Notice: Undefined index: 1 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 1 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 1 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 1 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 5 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 5 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 5 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 5 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 2 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 2 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 2 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).
Notice: Undefined index: 2 in block_form_user_profile_form_alter() (line 571 of /homepages/6/d106006861/htdocs/Clients/TheTestKing/drupal-7.17/modules/block/block.module).This is happening for all users. I did notice that if the user is an Administrator, they see all of the above. If they are a normal user, only about half of those show up.
I have disabled any module that might make any modifications to the user profile page (I dont think any of them did) without any change.
Please Help.
Thanks,
Keith Hummel
Comments
=-=
are there any custom module's which are hooking into the user.module? specifically using the block_form_user_profile_form_alter function
Invalid block records
I've seen the same thing on a site that was upgraded from Bluemarine D6 to (non-Bluemarine) D7.
The numbers that you're seeing are the block deltas, which used to be numeric under D6. The block records for the Bluemarine theme were not adjusted because D7 does not have Bluemarine, but they remained in the database.
Disabling, uninstalling, and re-enabling the corresponding modules has cured the issue.