Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if post is not its own parent #18930

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open

Conversation

skallet
Copy link

@skallet skallet commented Sep 1, 2022

Context

If any post is it's own parent (could be wrongly set in database) running indexing action will loop itself indefinitely.

Summary

changelog: bugfix

This PR can be summarized in the following changelog entry:

  • Bugfix

@mmikhan
Copy link
Member

mmikhan commented Sep 15, 2022

Thanks for your contribution @skallet. Can you share the step-by-step guide to reproduce your PR so that we can deep dive in?

@mmikhan mmikhan added the changelog: bugfix Needs to be included in the 'Bugfixes' category in the changelog label Sep 15, 2022
@mmikhan
Copy link
Member

mmikhan commented Sep 15, 2022

Most likely fixes the https://yoast.atlassian.net/browse/IM-1867

@skallet
Copy link
Author

skallet commented Oct 3, 2022

To replicate the issue, set any post in the database post_parent to post ID and run:

wp yoast index --allow-root --reindex

Without this PR, the command will not finish.

@skallet
Copy link
Author

skallet commented Mar 20, 2023

This is still an issue.

@pls78 pls78 self-assigned this Mar 28, 2023
@enricobattocchi enricobattocchi changed the base branch from trunk to feature/indexables-improvements March 28, 2023 09:16
@enricobattocchi enricobattocchi changed the base branch from feature/indexables-improvements to trunk March 28, 2023 09:16
@pls78
Copy link
Member

pls78 commented Mar 28, 2023

This is still an issue.

Hey @skallet, I'm currently working on this issue but I cannot reproduce the endless indexing behavior: could you share some more information about your setup (WP version, plugins activated, PHP version)? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: bugfix Needs to be included in the 'Bugfixes' category in the changelog community-patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants