Skip to content

[6.x] Fix Antlers identifiers erroring before the parser has been resolved - #15221

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15220-antlers-identifiers-env-details
Aug 19, 2026
Merged

[6.x] Fix Antlers identifiers erroring before the parser has been resolved#15221
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15220-antlers-identifiers-env-details

Conversation

@lazerg

@lazerg lazerg commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Creating an entry can fail with Call to a member function isTag() on null when an addon calls Antlers::identifiers() during a control panel request (SEO Pro does this from its previews fieldtype).

NodeTypeAnalyzer::$environmentDetails is only assigned as a side effect of the container resolving EnvironmentDetails, which happens when something builds a parser. Antlers::identifiers() runs the document parser directly, so if nothing else in the request has resolved a parser yet, the analyzer is left with a null. Whether that had happened by then was incidental, which is why #14988 (site config values no longer go through Antlers unless they actually contain Antlers) started surfacing it.

The analyzer now resolves the environment details itself the first time it needs them.

Fixes #15220

@jasonvarga
jasonvarga merged commit 1301178 into statamic:6.x Aug 19, 2026
97 of 120 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.

Call to a member function isTag() on null - when creating a new entry

2 participants