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.
Problem/Motivation
The amp_update_8002() is problematic because it is calling in the middle of an hook_update_N() and then going on to use the full entity API.
One thought is that this might be related to https://www.drupal.org/node/2861863
Proposed resolution
Empty out this update an move it to a post update hook.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#5 | remove-problem-update-2867636.patch | 2.53 KB | KarenS |
| |||
#3 | 2867636-3.patch | 5 KB | alexpott |
#3 | 2-3-interdiff.txt | 558 bytes | alexpott |
#2 | 2867636-2.patch | 4.98 KB | alexpott |
Comments
Comment #2
alexpottHere's a patch
Comment #3
alexpottWhoops.
Comment #4
dawehnerYou could also drop it and implement
hook_update_last_removed
Comment #5
KarenS CreditAttribution: KarenS at Lullabot commentedI like the last option, just remove the update. Having those image styles is not critical to the AMP functionality so it's not worth breaking things. There's now a later update too that actually is more important. Earlier update didn't apply any more so this is a new patch.
Comment #7
KarenS CreditAttribution: KarenS at Lullabot commentedCommitted! Thanks!