Illegal string offset 'weight' and Cannot create references to/from string offsets in drupal_array_set_nested_value() line 6781 /includes/common.inc