Skip to content

Indexing fails on elements with an image field #1

Open

Description

@phil-cv

Steps to repro:

  • Create an Entry Type with an image field (field type: Assets).
  • Create a section with the entry type and populate a couple records.
  • When the image field is blank for a given employee, the entry gets indexed correctly.
  • When the image field is populated, the entry does not get indexed.

Activity

  1. phil-cv commented on Dec 9, 2025

    @phil-cv
    Author

    Error details w/ some debugging:

    Error message: Invalid field handle: 
    #0 /var/www/html/vendor/craftcms/cms/src/base/Element.php(5260): craft\base\Element->normalizeFieldValue('')
    #1 /var/www/html/vendor/boldminded/craft-dexter/src/services/pipeline/FileDescribePipeline.php(90): craft\base\Element->getFieldValue('')
    #2 /var/www/html/vendor/league/pipeline/src/FingersCrossedProcessor.php(11): boldminded\dexter\services\pipeline\FileDescribePipeline->__invoke(Array)
    

    There's no categoriesFieldHandle defined, and so $entity->getFieldValue($categoriesFieldHandle)->all() throws an uncaught error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions