Problem/Motivation
Errors when installing project on a Drupal 10 / PHP 8.1 project.
Steps to reproduce
* Drupal 10.0.1
* PHP 8.1
* Taxonomy Entity Index 1.11.0 or 1.x-dev
drush en taxonomy_entity_index
Error 1
Fatal error: Type of Drupal\taxonomy_entity_index\Commands\TaxonomyEntityIndexCommands::$logger must be ?Psr\Log\LoggerInterface (as in cl
ass Drush\Commands\DrushCommands) in /var/www/html/web/modules/contrib/taxonomy_entity_index/src/Commands/TaxonomyEntityIndexCommands.php
on line 13Solution : remove $logger variable
Error 2
Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().
Solution: add a accesCheck to FALSE when using EntityTypeManager.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3334811-error-on-installation.patch | 1.93 KB | crtlf |
Issue fork taxonomy_entity_index-3334811
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
crtlf commentedMaking a patch.
Comment #3
crtlf commentedComment #4
crtlf commentedAdding patch
Comment #5
larowlanComment #6
larowlanChanges look good, will merge and cut a new release if tests pass, thanks for opening
Comment #8
larowlanFixed, cutting 8.x-1.12 - thanks again
Comment #9
larowlanhttps://www.drupal.org/project/taxonomy_entity_index/releases/8.x-1.12
Comment #10
crtlf commentedThanks for the quick release