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 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 commentedHad the same issue after a 8.23 -> 8.26 upgrade. Patch seems to work for me
Comment #4
leon kessler commented$EntityTypeManagerwas being passed through via dependency injection, we should also update this withEntityRepository.Comment #6
kiss.jozsef commentedHello,
thanks for the patch, its applied.