A mis-named class introduced in #2865615: Not compatible with REST module unfortunately completely broke taxonomy pages, by getting this error message:
Fatal error: Cannot declare class Drupal\taxonomy_access_fix\TermAccessControlHandler, because the name is already in use in /var/www/drupalvm/web/modules/taxonomy_access_fix/src/TermAccessFixTermControlHandler.php on line 0
The fix however is easy. I'll provide a patch
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_access_handler-2943950-2.patch | 498 bytes | agoradesign |
Comments
Comment #2
agoradesign commentedhere's the patch.. please verify and commit asap incl new release
Comment #3
willieseabrook commentedI'm not sure if it's related but I'm arriving here after an upgrade to 2.3 around 20 minutes ago.
When trying to visit a taxonomy term page e.h /taxonomy/term/13 I get the following:
Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "taxonomy_term" entity type did not specify a access handler. in Drupal\Core\Entity\EntityTypeManager->getHandler() (line 236 of /docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php).
I have fixed by pinning composer.json to 2.2 and flushing the cache a couple of times
Comment #4
agoradesign commentedIt sounds definitely related, as the mentioned commit has swapped out the default access handler defined by core.
However, it sounds weird that using version 2.2 fixes the issue for you. The bug was definitely introduced in 2.2 already. 2.3 only added a less important line to the info.yml file
Comment #6
pifagorDone
Comment #7
pifagor