I received this error trying to register a new account. i searched for known issues but couldn't find anything regarding. Fatal error: Unsupported operand types in /home/content/86/7320386/html/modules/field/modules/options/options.module on line 99

Comments

steve.colson’s picture

Are you using radio elements in your profile? If so, I think I have seen this error, and it has to do with no default element being specified for a group of radio items. If it is what I think it is, your error is unrelated to this project (register).

Zerbie’s picture

when you say radio elements are you speaking about the radio buttons? if you are, i don't believe i seen any radioheads. now i cant see anything but a white screen

Zerbie’s picture

this is what i found in the code
but all that's on line 99 is ); so i don't know what the error is.

 $default_value = _options_storage_to_form($items, $options, $value_key, $properties);

  switch ($type) {
    case 'select':
      $element += array(
        '#type' => 'select',
        '#default_value' => $default_value,
        // Do not display a 'multiple' select box if there is only one option.
        '#multiple' => $multiple && count($options) > 1,
        '#options' => $options,
      );
      break;

    case 'buttons':
steve.colson’s picture

Version: » 7.x-1.x-dev
Status: Active » Closed (works as designed)

Closing. Error is caused when there is no default option set for a radio group in profile2 which is unrelated to this module.