Closed (fixed)
Project:
Entity Translation
Version:
7.x-1.x-dev
Component:
Base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2012 at 16:29 UTC
Updated:
12 Jun 2014 at 22:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
webdrips commentedSame problem here, but I had to clear the cache using the UI since I was receiving errors using drush cc.
I am also not able to update the dB using either drush updb or the UI:
The following updates returned messages
entity_translation module
EDIT: the dev version fixed the above dB update issue.
Comment #2
bforchhammer commentedThis should fix the OP's issue.
Comment #4
bforchhammer commentedHm, patches need to go against -dev.
Comment #5
bforchhammer commented#2: cache-clear-update-1833496-3.patch queued for re-testing.
Comment #6
plachI tested this multiple times and I was not able to reproduce it. I think it's probably caused by an interrupted update process since we have a gobal cache clear at the end of a regular update process:
http://drupalcode.org/project/drupal.git/blob/refs/heads/7.x:/includes/u...
For this reason I think the patch in #2 is useless and I'd like to mark this as a duplicate of #1829980: Upgrade to Beta1 results in "Integrity constraint violation: 1048 Column 'module' cannot be null".
I repeatedly tested the upgrade path between alpha2 and the latest dev without having any issue. Please confirm this is the case also for you ASAP, as I wish to release beta2 very soon.
Comment #7
ianthomas_ukI'm not going to be able to attempt to reproduce this this week, so please don't hold beta2 waiting for me.
webdrips / bforchhammer - will you have time to test this?
Comment #8
plachAfter further testing I was able to see this by performing the update via drush. Overall I still think this is not ET's business but I guess the attached patch will save us some headache. I moved the fix to update 7004 since people at 7004 right now don't need it. And I don't want to force people on beta1 to perform a db update when moving to beta2.
Comment #9
plachBenedikt?
Comment #10
bforchhammer commentedYes, fine by me. Committed and pushed. :)
Comment #12
familymangreg commentedHi all,
I appreciate this thread is a bit old, but I'm stuck on 7.x-1.0-alpha2 and keep getting the following error when trying to upgrade:
I've google and searched the forums but still can't work out how to move forwards with this.
I'm testing on a development site, but need to be quite confident that the upgrade is going to work before I upgrade a large live site which has a lot of entity translations in pace.
Currently on Drupal 7.17.
Any pointers would be much appreciated.
Many thanks,
:wq
Comment #13
ianthomas_ukAre you trying to upgrade to beta2? You can't upgrade from alpah2 to beta1 - you have to go directly to beta2.
Have you run update.php?
Comment #14
plachTry clearing all caches and running the upgrade again.
Comment #15
familymangreg commentedHi,
Thanks #ianmthomasuk and #plach for help so far.
My existing version is 7.x-1.0-alpha2 and I'm trying to upgrade to 7.x-1.0-beta2. I've tried clearing caches, and running database updates first, but no luck.
See the following:
Editing to add that a couple of the lines below seem to look fine in the message source but are a bit out of order in the code preview. Hope it makes sense!:.
Many thanks,
:wq
Comment #16
plachTry to perform the update from the GUI, drush was to reported to have some trouble.
Comment #17
familymangreg commentedHi,
Thanks plach, I downloaded beta2 and then ran update.php as the administrator via the GUI. I got the following exception thrown:
Now, when I try and access the site I just get the following error:
Clearing the cash I now get:
So unfortunately I now can't get onto the site at all. Any suggestions on how I can proceed without referring to a backup?
Many thanks,
:wq
Comment #18
plachComment line 1411 in translation.handler.inc and perform a
drush cc. Then you should get only some notices. Try to ensure all the db updates have run, if so try the latest dev, otherwise try to complete the upgrade and then restore the commented line.Hope this helps.
Comment #19
familymangreg commentedHi,
Apologies I haven't been able to look at this again between Friday and now.
Thanks plach, commenting out line 1411 did the trick for me. For anyone else who has this same issue, here's what I did:
1. Manually downloaded latest version of entity_translation.
2. Edited entity_translation/includes/translation.handler.inc, commenting out line 1411. The function then looked like this:
3. Used drush to run db update manually, i.e. drush updatedb, which gave the following output:
4. Cleared the cache.
5. Edited entity_translation/includes/translation.handler.inc again to uncomment line 1411.
All was good.
:wq