After updating to rc6 I get the PHP Fatal error: Call to undefined method EntityTranslationUserHandler::getActiveLanguage() on the node add/edit pages.

Comments

stevieegee created an issue. See original summary.

joseph.olstad’s picture

Thanks Stevieegee , the offending code was reverted.

This was because the change made assumed that Entity translation API was installed. The authors of that change will have to refactor their code to take into consideration that not everyone is using the Entity translation API.
Hopefully they will be able to refactor their code so that its backwards compatible with those that do not have Entity translation API installed.
Or, we add a dependency of Entity translation API.

#2855151: Update Entity translation API usage in Media

joseph.olstad’s picture

7.x-2.0-rc7 has been tagged and published. Sorry for the inconvenience.

joseph.olstad’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

systemick’s picture

If it's any use to anyone I just updated to 7.x-2.0 and got this error

Call to undefined method EntityTranslationNodeHandler::getActiveLanguage()

It turned out I was using an older version of the entity_translation module. Updating that module to the latest version fixed the problem.

joseph.olstad’s picture

@systemick, during installation/upgrade media is supposed to fire drupal_set_message with a message and a TRUE to force through the message. You should have gotten a status message warning you to upgrade your entity_translation. If this is not the case, we'll have to open an issue for that. Perhaps you didn't notice this during installation/upgrade? Also, drupal status reports mentions in there that media 7.x-2.0 requires beta6 or newer of entity_translation.
see:
#2855151: Update Entity translation API usage in Media

systemick’s picture

I used drush to do the update so easier to miss a message I guess. I didn't see a message but that's probably my fault for not being more observant. Hopefully other people won't make the same mistake.