The 7013 update hook isn't working anymore after the revision support was added. The revision_id column doesn't exist yet, which causes problem when we load the entities.
We probably can't use entity_load when running the update since it will cause metatag to try to load things with the revision_id.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | metatag-n2172433-5.patch | 4.35 KB | damienmckenna |
Comments
Comment #1
fabsor commentedActually, this could break things back to 7009, since remove_dupes() can call entity_load as well.
Comment #2
fabsor commentedHere is a patch that runs 7015 earlier, by invoking it programmatically that solved the problem for me. Not a very clean solution but all other solutions would involve avoiding entity api, which can be problematic for some entity types.
Comment #3
damienmckennaOh crikey! Thanks for catching this bug! Yeah, need to fix this before beta8. I've bumped it to major as it has the potential to screw up sites.
The patch could use a little tweaking, mainly that the metatag_skip_update_7015 logic could be moved into metatag_update_7015 itself.
Comment #4
damienmckennaComment #5
damienmckennaHow about this?
Comment #6
hyperglide commentedHow best to test this patch? These updates are post beta 7?
Comment #7
damienmckennaEvery patch will require the current -dev codebase.
Comment #8
hyperglide commentedPatch #5 could not be applied to the Jan 14 Dev.
output of patch.rej
Comment #9
damienmckennaYou might need to try downloading the code from git, it's working for me :-\
Comment #10
hyperglide commentedNope. I just cloned the git:
git clone --branch 7.x-1.x http://git.drupal.org/project/metatag.gitSame issue.
Hunk #1 FAILED at 221.
Hunk #2 FAILED at 459.
Hunk #3 FAILED at 475.
Hunk #4 FAILED at 489.
Hunk #5 FAILED at 598.
Hunk #6 FAILED at 628.
Hunk #7 FAILED at 919.
Hunk #8 FAILED at 1193.
Comment #11
damienmckennaI just did the same thing again, it worked fine. Do you have anything set up in your git global config to auto-change line endings? Are you able to apply other patches?
Comment #12
damienmckennaCommitted! Thanks fabsor!
Comment #13
hyperglide commentedNo. Yes. Same environment as other testing. See you committed it so :-)