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.
The title pretty much covers it - tried to upgrade to the newly released Beta1, can't update databse as running updatedb results in "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null"
Comment | File | Size | Author |
---|---|---|---|
#26 | et-beta1_upgrade-1829980-26.patch | 720 bytes | leonevers |
#20 | et-beta1_upgrade-1829980-20.patch | 1.51 KB | plach |
#3 | et-beta1_upgrade-1829980-3.patch | 460 bytes | plach |
Comments
Comment #1
chefnelone CreditAttribution: chefnelone commentedSame problem here. I get this message when running database updates
Comment #2
garrettc CreditAttribution: garrettc commentedI'm seeing the same thing when trying to update from 7.x-1.0-alpha2 to 7.x-1.0-beta1 with both
drush updb
and/update.php
.Comment #3
plachwft, let's try this one :(
Apply the patch and run the updates, you should be ok then.
Comment #4
Georgique CreditAttribution: Georgique commented@plach Applied patch, updated successfully. Let's wait several more reviews.
Comment #5
garrettc CreditAttribution: garrettc commentedPatch applied cleanly and the updates ran (7002 - 7004), but when trying to load the site it white-screened.
Watchdog had the following error:
Clearing the cache failed with the same error. I rolled back to a previous version of the database that hadn't been touched by the pre-patched beta1 upgrade and it all updated okay. Perhaps some cruft got left in the database by the failed update? Something to watch out for anyway.
Site is back and the new UI work looks great.
Comment #6
plachOk, I committed #3, a -dev snapshot will be out in some hours. You can safely use that one instead of beta1.
Feel free to reopen this if it does not work for you. I'll roll a new beta soon, but I'd like to wait and see whether new bad bugs come up so I'll wait for a while.
Comment #7
Vito Andolini CreditAttribution: Vito Andolini commentedJust a note that I went from alpha2 to beta 1 (10 minutes ago) and get this error:
Exception: Cannot initialize entity translation path variables (invalid path scheme). in EntityTranslationDefaultHandler->initPathVariables() (line 1401 of /xxxxxxxxx/docroot/sites/all/modules/entity_translation/includes/translation.handler.inc).
Comment #8
Vito Andolini CreditAttribution: Vito Andolini commentedI also tried the current 7.x-1.x-dev and got the same error.
Comment #9
plachDoes clearing caches fix it?
Comment #10
pyry CreditAttribution: pyry commentedDrush cc all and drupal_static_reset() neither helped. Didnt try the patch.
Comment #11
plachGuys if you are talking about the error in #7, please open a new issue. This is a mess right now.
Comment #12
albert.aribaud CreditAttribution: albert.aribaud commentedPatch from #3 also fixed issue for me. Thanks plach!
Comment #13
pyry CreditAttribution: pyry commented- Disabled and deleted alpha2
- Downloaded and enabled latest dev
Seems to work with small testing and the errors are gone.
Comment #14
Vito Andolini CreditAttribution: Vito Andolini commented-Installed latest dev
-Cleared Cache
Seems to be working again. Thanks for the help.
Comment #15
astutonetI'm using the dev version and I am too having this issue.
The patch in #3 solves the question.
Tks.
Comment #16
ianthomas_uk#7 raised as http://drupal.org/node/1833496
Comment #17
jdflorez CreditAttribution: jdflorez commentedI can confirm #3 worked for me (using alpha).
Thanks
Comment #18
FreeFox CreditAttribution: FreeFox commentedDeleted alpha1 directory from /all/modules
drush dl entity_translation
drush updb
All ok so I think its a leftover of alpha1 that breaks beta1
Cheers
Comment #19
jalves CreditAttribution: jalves commentedInstalling the last dev version solved my problem.
Comment #20
plachCommitted this follow-up: the quick fix above turned on workflow permissions by default, which is not what we want.
Comment #21
Mac_Weber CreditAttribution: Mac_Weber commentedAny chances this fix gets soon applied to a stable version?
Right now the latest stable version is unusable without this patch.
Comment #22
plachThis is completely false, every new site can happily use beta1 :)
Moreover a new stable version would be more or less the current dev.
Comment #23
Mac_Weber CreditAttribution: Mac_Weber commented@plach I tried to install ET in a clean Drupal and I got this error. I had opened issue #1842178: Errors after enabling module for the very first time before finding this one.
When I said it was unusable is because beta1 is not being installed in a clean install.
Comment #24
plachYou are right, sorry, I didn't realize this happens also on clean installations. I guess we need a new beta asap, then.
Comment #25
leonevers CreditAttribution: leonevers commentedI get the same problem than posted initially by chefnelone. After a little debugging it seems to happens in the install file, in line 133 - 136. The permissions "edit [entity_type] original values" and "edit [entity_type] translation shared fields" is not known by the system yet (in the case of a new install), because it will be established in the hook_permission later on when the module file is called.
If someone can confirm this this observation, I would try to bring up a little patch for that.
Comment #26
leonevers CreditAttribution: leonevers commentedThis patch avoided the PDOException while enable/install the module at my host. Please try if it works for You.
Comment #27
plachThis issue is already fixed in the latest dev...
Comment #28
leonevers CreditAttribution: leonevers commentedYou are right, thanks.
Comment #29
plachBeta2 is out :)
Comment #30
Mac_Weber CreditAttribution: Mac_Weber commentedplach thanks for that.
You have been doing a great job!