Hey,
I searched for this issue but cudnt find so posting here. I have been seeing this error message, Since i have created a view with contextual filter and an image field.
Notice: Undefined index: en in views_handler_field_field->set_items()(line 676 views\modules\field\views_handler_field_field.inc

I was having this http://drupal.org/node/1107752 issue before.. I upgraded to views 3.x dev.
The above error dont seem to go.. And i Cannot Get the required result rows in my views.

CommentFileSizeAuthor
#3 products.txt12.33 KBdejavu1987

Comments

neoglez’s picture

Status: Active » Postponed (maintainer needs more info)

I can NOT reproduce the issue.

i have created a view with contextual

Which contex. filter??
An export wouldn't be bad!

dejavu1987’s picture

Status: Postponed (maintainer needs more info) » Active

@neoglez I think the contextual filter was not the reason behind this

On line 676 views\modules\field\views_handler_field_field.inc

if ($this->limit_values && !empty($entity->{$this->definition['field_name']})) {
	if(isset($entity->{$this->definition['field_name']}[$langcode])){
      $all_values = $entity->{$this->definition['field_name']}[$langcode];
      if ($this->options['delta_reversed']) {
        $all_values = array_reverse($all_values);
      }
	  }

$langcode was actually returning the current language but the returned row's field (in my case it was field_image "$entity->field_image") had [und] instead of the value returned by $langcode (i.e 'en' in my case). So the the error message was thrown.

I simply updated all my contents' language field to 'en' in the database tables.
I m sure There is another way around for this .. any help will be appriciated

PS: 1. I have locale and content translate modules enabled.
2. I have two languages enabled espanol and english
3. I had added the content for the field_image field before i enabled locale and content translate modules.
4. I created the view after enabling those modules.
5. for more i have attached the export of my view.
regards
Anil

dejavu1987’s picture

StatusFileSize
new12.33 KB

I have attached the export i have said above..

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)
merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Better status I think.