When any field that has "Field can be translated" is toggled on and is tried to disable translation for field following happens:

1. Are you sure you want to disable... => Yes

2. Disabling translation for the field_firstname field
An error has occurred.
Please continue to the error page

3. Something went wrong while processing data. Some nodes may appear to have lost fields.

Also if user has profile2 filled with one language, switching to other languages either a) blank out all the fields b) fields appear with correct information but views using them output blank.

Disabling module and refilling profile2 profile (As disabling module empties profile2 field values saved in database) and saving it shows fields correctly for all fields and views can again access field values but this we cannot do in production because we cannot afford data loss of thousands of user profiles.

More information that is related to issue from watchdog:

php 07.01.2013 - 09:00 Notice: Undefined index: translations in... Tuomas Leppänen
php 07.01.2013 - 09:00 Notice: Undefined index: translations in... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: translations in... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: module in _field_info... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: module in _field_info... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: module in _field_info... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: module in _field_info... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: module in _field_info... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: module in _field_info... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: module in _field_info... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: module in _field_info... Tuomas Leppänen
php 07.01.2013 - 08:59 Notice: Undefined index: module in _field_info... Tuomas Leppänen

From top:

Type php
Date Monday, January 7, 2013 - 09:00
User Tuomas Leppänen
Location http://spren/batch?id=7161&op=do_nojs
Referrer
Message Notice: Undefined index: translations in EntityTranslationDefaultHandler->getTranslationsKey() (line 1387 of /Users/tuomasleppanen/Sites/d7/drupal-base-d7/sites/xxx/modules/contrib/entity_translation/includes/translation.handler.inc).

(This with ID 59-61)

Rest are:
Notice: Undefined index: module in _field_info_prepare_instance_widget() (line 386 of /Users/tuomasleppanen/Sites/d7/drupal-base-d7/modules/field/field.info.inc).

Apache error log:

[Mon Jan 07 08:59:58 2013] [error] [client 127.0.0.1] PHP Fatal error: Cannot access empty property in /Users/tuomasleppanen/Sites/d7/drupal-base-d7/sites/xxx/modules/contrib/entity_translation/includes/translation.handler.inc on line 716
[Mon Jan 07 09:00:05 2013] [error] [client 127.0.0.1] PHP Fatal error: Cannot access empty property in /Users/tuomasleppanen/Sites/d7/drupal-base-d7/sites/xxx/modules/contrib/entity_translation/includes/translation.handler.inc on line 716
[Mon Jan 07 09:00:12 2013] [error] [client 127.0.0.1] PHP Fatal error: Cannot access empty property in /Users/tuomasleppanen/Sites/d7/drupal-base-d7/sites/xxx/modules/contrib/entity_translation/includes/translation.handler.inc on line 716

CommentFileSizeAuthor
#3 et-info_dep-1881872-3.patch438 bytesplach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Demoshane’s picture

Status: Active » Closed (works as designed)

Update from alpha2 -> beta2 caused the issue due core requirements had changed. Working as intended. Maybe make core dependency version in .info?

plach’s picture

Title: Field translation cannot be disabled, fields cannot be accessed for data (Content type and profile2 fields). » Add an explict dependecy on Drupal core 7.15
Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Category: bug » task
Priority: Major » Normal
Status: Closed (works as designed) » Active

Maybe make core dependency version in .info?

Good idea, we already have it in Title.

plach’s picture

Status: Active » Needs review
FileSize
438 bytes

What about this?

Demoshane’s picture

That should do it.

plach’s picture

Status: Needs review » Reviewed & tested by the community

Ok, thanks.

plach’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit d93c14f on 7.x-1.x, factory, et-fc, revisions by plach:
    Issue #1881872 by plach | Demoshane: Add an explict dependecy on Drupal...

  • Commit d93c14f on 7.x-1.x, factory, et-fc, revisions, workbench by plach:
    Issue #1881872 by plach | Demoshane: Add an explict dependecy on Drupal...