I'm gathering this might be similar to the following issue, but in D7 instead of D8:
https://www.drupal.org/project/multiselect/issues/2935556#comment-12749727

I can't make changes to a field when Multiselect is its widget type. I have to change it to something else, such as a select, make my changes, then go back in and change it back to a multiselect. It happens on every field I create that is a multiselect.

On the page I just get "The website encountered an unexpected error. Please try again later."

In the Drupal logs, this is all I get:

Recoverable fatal error: Argument 2 passed to drupal_array_set_nested_value() must be of the type array, null given, called in /home/username/public_html/includes/form.inc on line 2655 and defined in drupal_array_set_nested_value() (line 6772 of /home/username/public_html/includes/common.inc).

Notice: Undefined index: field_state_geo in options_element_field_instance_settings_validate() (line 265 of /home/username/public_html/sites/all/modules/options_element/options_element.module).

Notice: Undefined index: field_state_geo in options_element_field_instance_settings_validate() (line 260 of /home/username/public_html/sites/all/modules/options_element/options_element.module).

Notice: Undefined index: field_state_geo in options_element_form_field_ui_field_edit_form_alter() (line 211 of /home/username/public_html/sites/all/modules/options_element/options_element.module).

Comments

jsimonis created an issue. See original summary.

dani3lr0se’s picture

I'm not able to reproduce the issue in D7. What version of core are you using? It's working for me but I'm testing with 7.60-dev.

jsimonis’s picture

I'm using 7.59

thetwentyseven’s picture

I am having the same issue. Did you fix it?

jsimonis’s picture

I haven't had to edit one in a while, so I don't know if the issue is still there or not. I just always changed the widget type, made my changes, and then changed it back. It was an easy enough work around. But they haven't requested any changes in the fields in months, so I haven't touched it.

ericg’s picture

I found the fix to this while porting the module to BackdropCMS

remove the

break;

in the module's form alter function

mparker17’s picture

Status: Active » Postponed (maintainer needs more info)

multiselect-7.x-1.13 is no longer supported, because Drupal 7 is no longer supported.

Can you confirm if this is still an issue in multiselect-2.0.0-beta4?

I'm going to mark this issue as "Postponed (maintainer needs more info)"... but when you answer, please change it back to "Active". If there is no reply in ~6 months, then I will mark this issue as "Closed (outdated)". Thank you in advance for your understanding and patience as I try to keep this module's issue queue clear.