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.
entity_translation_update_7006 fails because of SQL error before variable_set('entity_translation_revision_enabled', FALSE); can run - even trying to use drush vset fails. The problem appears to be here:
./includes/translation.handler.inc:905: return variable_get('entity_translation_revision_enabled', TRUE) && !empty($entity_info['entity keys']['revision']);
Shouldn't we default that to FALSE? Otherwise, instant fatal before it can even run the update. Default it to false, then enable it at the end of the update (as well as in the install hook for new installs).
The only way I could get the update to run without this change was to directly insert the variable into the database.
Comment | File | Size | Author |
---|---|---|---|
#1 | revision_enabled-2382713-1.patch | 1.9 KB | seanr |
Comments
Comment #1
seanrPatch attached.
Comment #2
seanrComment #3
andros CreditAttribution: andros commentedI have had the problem on one site after updating to latest dev, 7.x-1.0-beta3+15-dev (2014-Nov-22) that it said „entity_translation_revision' doesn't exist“ The only thing I get was a server error 500.
On an another site the same error showed up some times in the protocol but vanished by it self!?
Comment #5
plachActually I preferred not to need the variable to be set on new installations, but it seems this fix is badly needed.
Committed #1 and pushed, thanks!
Comment #7
plach