Skip to content

Stack overflow exception #2

@GarethJames

Description

@GarethJames

Recently my team and I have been getting stack overflow exceptions in a Sitecore 7.2 site we're working on. We tracked the issue down to the UpdateIndexDatasource processor from your (excellent) datasource indexer.

We have content items which refer to each other which caused the index crawler to get dependants infinitely when the following code was called:

Globals.LinkDatabase.GetReferrers(item)

Looking at the article which your solution was inspired by I noticed they had supplied an additional parameter:

Globals.LinkDatabase.GetReferrers(item, FieldIDs.LayoutField)

For us, this fixed the problem as it's only datasource components that are added to the layout of the page we're interested in. Has this parameter been omitted deliberately for other use cases?

Many thanks for a great plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions