Problem/Motivation

When running the re-index command on a plugin which indexes the user entity type, an error " [error] '' not found" is displayed.

Steps to reproduce

1. Create an index plugin which indexes the "user" entity type.
2. Run the drush command "drush eshr users"
3. See that the error "[error] '' not found" is displayed.

CommentFileSizeAuthor
#3 reindex-error-3389459-3.diff774 bytesmaijs

Comments

maijs created an issue. See original summary.

maijs’s picture

Title: Re-indexing fails with an ereror » Re-indexing fails with an error
maijs’s picture

Status: Active » Needs review
StatusFileSize
new774 bytes

The provided patch mitigates the problem by checking if the entity type has the "bundle" entity key prior to reindexing entities.

  • maijs committed 9f290adb on 8.x
    Issue #3389459 by maijs: Re-indexing fails with an error
    

  • maijs committed 8bea0eee on 8.x-7.x
    Issue #3389459 by maijs: Re-indexing fails with an error
    
maijs’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.