Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello,
I'm getting the following warnings for a while now. Does someone know how to solve this?
Notice: Undefined index: field_prijs in entity_translation_views_data_alter() (regel 237 van /var/www/html/drupal-7.33/sites/all/modules/entity_translation/views/entity_translation.views.inc).
Notice: Undefined index: help in entity_translation_views_data_alter() (regel 240 van /var/www/html/drupal-7.33/sites/all/modules/entity_translation/views/entity_translation.views.inc).
This is line 235-243 from entity_translation.views.inc
foreach ($defaults as $table_name => $table_data) {
if (isset($data[$table_name][$field['field_name']])) {
$field_title = $table_data[$field['field_name']]['title'];
$table_data[$field['field_name']]['title'] = t('!title: translated', array('!title' => $field_title));
$table_data[$field['field_name']]['group'] = t('Entity translation');
$table_data[$field['field_name']]['help'] .= ' ' . t('Show the field !title translated into a specified language', array('!title' => $field_title));
$table_data[$field['field_name']]['field']['handler'] = 'entity_translation_handler_field_field';
$data[$table_name][$field['field_name'] . '_et'] = $table_data[$field['field_name']];
Thanks in advance,
Mariska.
Comment | File | Size | Author |
---|---|---|---|
#6 | undefined-index-fix-2580231-6.patch | 909 bytes | danyg |
Comments
Comment #2
pflork CreditAttribution: pflork commentedHi Mariska,
I'm also seeing this with Drupal 7.50 and last Entity Translation dev (7.x-1.0-beta5+12-dev (2016-sep-06)....but I'm seeing this since a long time. Have you solved this ?
If not someone else ?
Thanks in advance.
Pascal
Comment #3
LIQUID VISUAL CreditAttribution: LIQUID VISUAL commentedI get this error as well, on site that is otherwise working fine.
Comment #4
xdelfino CreditAttribution: xdelfino commentedI also have this message some solution to this warnings?
no one solved this?
Thanks
Comment #5
xaa CreditAttribution: xaa as a volunteer commentednotice still visible with the latest 7.x-1.0 (drupal 7.64)
Comment #6
danyg CreditAttribution: danyg at Cheppers commentedHello,
here is a simple patch which fixes the undefined index problem.
Comment #7
stefanos.petrakis@gmail.comComment #8
stefanos.petrakis@gmail.comThis extra condition is a simple sanity check, going to commit this soon, thanks for the report and patch!
Comment #10
stefanos.petrakis@gmail.comCommited and pushed, thanks again!