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

Anonymous’s picture

Almare created an issue. See original summary.

codesidekick’s picture

Assigned: Unassigned » Deciphered
Deciphered’s picture

Hi @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.

claudiu.cristea’s picture

Assigned: Deciphered » Unassigned
Status: Active » Closed (outdated)

This 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.