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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | products.txt | 12.33 KB | dejavu1987 |
Comments
Comment #1
neoglez commentedI can NOT reproduce the issue.
Which contex. filter??
An export wouldn't be bad!
Comment #2
dejavu1987 commented@neoglez I think the contextual filter was not the reason behind this
On line 676 views\modules\field\views_handler_field_field.inc
$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
Comment #3
dejavu1987 commentedI have attached the export i have said above..
Comment #4
dawehnerIsn't this a duplicate of #1070744: Undefined index: es en views_handler_field_field->get_items()
Comment #5
merlinofchaos commentedBetter status I think.