Skip to content

fix: Add type checking for $field and $layout parameters in _acfe_flexible_render_layout_template_after()#150

Open
t0hm wants to merge 1 commit into
acf-extended:masterfrom
t0hm:FIX-/-Cannot-access-offset-of-type-string-on-string-error-in-flexible-content-rendering
Open

fix: Add type checking for $field and $layout parameters in _acfe_flexible_render_layout_template_after()#150
t0hm wants to merge 1 commit into
acf-extended:masterfrom
t0hm:FIX-/-Cannot-access-offset-of-type-string-on-string-error-in-flexible-content-rendering

Conversation

@t0hm

@t0hm t0hm commented Aug 29, 2025

Copy link
Copy Markdown

Add type safety checks to prevent fatal errors when $field/$layout are passed as strings instead of arrays. Fixes "Cannot access offset of type string on string" error in flexible content rendering.

…xible_render_layout_template_after()

Add type safety checks to prevent fatal errors when $field/$layout are passed as strings instead of arrays. Fixes "Cannot access offset of type string on string" error in flexible content rendering.
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.

2 participants