- Issue created by @Remco Hoeneveld
- First commit to issue fork.
- Status changed to Needs review
5 months ago 7:19am 9 July 2024
I get the following error resulting in a page that is not working, Call to a member function toUrl() on null in Drupal\view_mode_page\Controller\MainController->displayEntity() this is because the code always thinks the entity is of type EntityInterface but it could also be the case where it is now referencing an removed entity resulting in NULL, and then resulting in an error when trying to fetch on to URL on null.
Make sure that the entity referenced is invalid. Then get the error stating Call to a member function toUrl() on null in Drupal\view_mode_page\Controller\MainController->displayEntity()
Apply patch making sure that it can never break.
Review the code see if everthing keeps working as aspected.
None.
None.
None.
Needs review
4.0
Code