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've recently come across this error when loading a (panels) page containing block groups:
Call to undefined method Drupal\Core\Entity\EntityTypeManager::loadEntityByUuid() in web/modules/contrib/blockgroup/src/Plugin/Block/BlockGroup.php on line 86
Honestly not sure what change triggered the error.
Comment | File | Size | Author |
---|---|---|---|
#4 | exception_loading_block-2857416-4.patch | 2.84 KB | Leon Kessler |
#2 | blockgroup-use_service_to_load_block_group_content-2857416-2.patch | 651 bytes | acrollet |
Comments
Comment #2
acrollet CreditAttribution: acrollet commentedPatch attached that fixes the issue for me - I wish I had a known reproducible test case but as it happens EntityManager::loadEntityByUuid is deprecated so I think this is a good change to make.
Comment #3
el1_1el CreditAttribution: el1_1el commentedHad the same issue after a 8.23 -> 8.26 upgrade. Patch seems to work for me
Comment #4
Leon Kessler CreditAttribution: Leon Kessler at Mirum Agency commented$EntityTypeManager
was being passed through via dependency injection, we should also update this withEntityRepository
.Comment #6
kiss.jozsef CreditAttribution: kiss.jozsef commentedHello,
thanks for the patch, its applied.