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 website encountered an unexpected error. Please try again later.
Error: Call to a member function getValue() on null in revision_log_default_entity_presave() (line 72 of modules/contrib/revision_log_default/revision_log_default.module).
WSOD when saving a node with modifications in Entity Reference field (Media Image entities).
Other fields modifications do not trigger the error.
Comment | File | Size | Author |
---|---|---|---|
#7 | 3055390-call-to-member-function-getvalue-on-null-7.patch | 1.66 KB | dan2k3k4 |
| |||
2019-05-17_14-34-48.jpg | 101.76 KB | LemonHardos | |
2019-05-17_14-33-19.jpg | 106.27 KB | LemonHardos |
Comments
Comment #2
LemonHardos CreditAttribution: LemonHardos commentedNo WSOD with 1.0, it seems only related to dev version.
Comment #3
dan2k3k4 CreditAttribution: dan2k3k4 at Amazee Labs commentedI also got a similar error:
Comment #4
samuel.mortensonWe probably need to do more "instanceof" checks to help with this.
Comment #5
dan2k3k4 CreditAttribution: dan2k3k4 at Amazee Labs commentedHere's a patch to check bundle before calling label function. I also added some spacing between the if() statements as it was hard to ready where one if/elseif ended and one new if started.
EDIT: This is for the 8.x-1.0 release. But this drupal.org issue is about the dev branch being broken. Fix for that should be in #7
Comment #6
samuel.mortensonLooks like the patch failed to apply.
Comment #7
dan2k3k4 CreditAttribution: dan2k3k4 at Amazee Labs commentedAh, I just realised, it should be for the 8.x-1.0 version instead.
However the issue pointed out could be fixed with a different patch.
Comment #8
kobb CreditAttribution: kobb commented@dan2k3k4 Thanks! Tested and verified.
Comment #10
samuel.mortensonThanks all!