Skip to content

[5.x] Revert detect recursion when augmenting Entries (#11854)#11894

Merged
jasonvarga merged 1 commit into
statamic:5.xfrom
JohnathonKoster:revert-detect-recursion
Jun 24, 2025
Merged

[5.x] Revert detect recursion when augmenting Entries (#11854)#11894
jasonvarga merged 1 commit into
statamic:5.xfrom
JohnathonKoster:revert-detect-recursion

Conversation

@JohnathonKoster

@JohnathonKoster JohnathonKoster commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

This PR fixes #11892 and fixes #11887 by reverting the changes in #11854 and removes the need for #11888. I'll keep the original idea in the back of my head for a potential implementation in the future.

From investigation, the over-aggressive behavior is related to multi-site; specifically this line https://github.com/statamic/cms/blob/5.x/src/Data/HasOrigin.php#L58 will trigger the recursive detection. I have not been able to reproduce the aggressive behavior in simple sites, but have seen it in action on more complicated sites. Removing the exception throwing on that site also didn't end up in infinite recursion, which is very odd.

Current suggestion is to simply revert until I can track down where along the way things are getting messy, which may take some time. Also currently refraining from adding something to the log, as that has the potential to generate a ton of false positive log entries on large sites (would like to eventually track down the root cause, instead).

@JohnathonKoster JohnathonKoster changed the title [5.x] Detect recursion when augmenting Entries (#11854) [5.x] Revert detect recursion when augmenting Entries (#11854) Jun 24, 2025
@jasonvarga jasonvarga merged commit 224d1ef into statamic:5.x Jun 24, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recursion error resolvingValues returned as member variable from __sleep() but does not exist

2 participants