Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After updating to rc6 I get the PHP Fatal error: Call to undefined method EntityTranslationUserHandler::getActiveLanguage() on the node add/edit pages.
Comments
Comment #3
joseph.olstadThanks 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
Comment #4
joseph.olstad7.x-2.0-rc7 has been tagged and published. Sorry for the inconvenience.
Comment #5
joseph.olstadComment #7
systemick CreditAttribution: systemick as a volunteer commentedIf 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.
Comment #8
joseph.olstad@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
Comment #9
systemick CreditAttribution: systemick as a volunteer commentedI 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.