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.
I tried to make the update 8100 and the following error occurs.
Error: Call to a member function id() on null in entity_legal_update_8100() (line 21 of [error]
/.../web/modules/contrib/entity_legal/entity_legal.install).
Error: Call to a member function id() on null in /.../web/modules/contrib/entity_legal/entity_legal.install on line 21
Error: Call to a member function id() on null in entity_legal_update_8100() (line 21 of /.../web/modules/contrib/entity_legal/entity_legal.install).
Any ideas how to fix this issue?
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedAlmare created an issue. See original summary.
Comment #2
codesidekick CreditAttribution: codesidekick commentedComment #3
Deciphered CreditAttribution: Deciphered at Realityloop commentedHi @Almare,
The only reason that that update hook should run is if you had installed a pre-beta release and upgraded to the beta, which is perfectly acceptable. Can you confirm this is the case?
The error however implies that you have acceptances that are linked to a document version that no longer exists? This shouldn't happen as when a document version is removed so are all acceptances linked to said version.
Cab you provide any information on how this may have come about? Or alternatively, if you are inclined to do so, can you provide me with a copy of your database (sanitised if need be)?
I need to be able to reproduce the issue to fix it determine the cause and fix.
Cheers,
Deciphered.
Comment #4
claudiu.cristeaThis is very old and has no activity. Closing. If you feel that is still actual please reopen it but add a comment and explain why.