Problem/Motivation
After updating Drupal core from 11.2 to 11.3, Rabbit Hole triggers a fatal error on
taxonomy vocabulary forms, including the Forum module’s admin page at:
`/admin/structure/forum`
Error: Call to a member function getEntityTypeId() on null in rabbit_hole_form_alter()
(line 46 of modules/contrib/rabbit_hole/rabbit_hole.module)
Steps to reproduce
1. Install Forum module.
2. Update Drupal core to 11.3.
3. Visit /admin/structure/forum.
4. Observe fatal error.
Proposed resolution
Rabbit Hole should check for a NULL entity before accessing it.
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #4
souvik_banerjee commentedI have added defensive code for NULL check, this code resolves the issue for me, please try at your end as well.
Comment #5
langelhc commentedSame here, it resolves the issue.
Comment #6
langelhc commentedFor some reason Composer now cannot apply this patch from https://git.drupalcode.org/project/rabbit_hole/-/merge_requests/99.patch
Comment #7
anybodyThanks for the fix, confirming RTBC.
We're experiencing a weird behaviour now, but I'm unsure if it's related. With rabbit_hole enabled the taxonomy term weight sorting page does not save anymore. All changes are discarded. I guess it happens since Drupal 11.3 upgrade, but I'm not sure.
Comment #9
japerry