I am getting a fatal PHP error with a content type (node) set to scan for terms in a referenced entity.

TypeError: Drupal\autotagger_search_in_text\Plugin\Autotagger\SearchInTextFields::processReferencedEntity(): Argument #1 ($entity) must be of type Drupal\autotagger_search_in_text\Plugin\Autotagger\ContentEntityInterface, Drupal\node\Entity\Node given, called in /app/web/modules/contrib/autotagger/modules/autotagger_search_in_text/src/Plugin/Autotagger/SearchInTextFields.php on line 257 in Drupal\autotagger_search_in_text\Plugin\Autotagger\SearchInTextFields->processReferencedEntity() (line 351 of modules/contrib/autotagger/modules/autotagger_search_in_text/src/Plugin/Autotagger/SearchInTextFields.php).

CommentFileSizeAuthor
#3 autotagger-3424520.patch1.07 KBabhishek_gupta1

Comments

brooke_heaton created an issue. See original summary.

abhishek_gupta1’s picture

Assigned: Unassigned » abhishek_gupta1
abhishek_gupta1’s picture

Assigned: abhishek_gupta1 » Unassigned
Status: Active » Needs review
StatusFileSize
new1.07 KB

@brooke_heaton , i have fixed the issue and crated patch.

brooke_heaton’s picture

Can we use MRs going forward?

alvar0hurtad0’s picture

Status: Needs review » Needs work

I think this patch applies in an old version of the module before the stable release.
Could you check if the error still exists with current release?
I could not reproduce.

alvar0hurtad0’s picture

Status: Needs work » Closed (cannot reproduce)