xdebug maximum function nesting level error

See During installation, xdebug maximum function nesting level error.

Errors display when you access a PHTML template

Error text is typically:

Parse error: syntax error, unexpected 'data' (T_STRING)

Solution: Set asp_tags = off in php.ini

Multiple templates have syntax for support abstract level on templates (use different templates engines like Twig) wrapped in <% %> tags, like this template for displaying a product image:

<img
    class="product-image"
    src="<%- data.url %>"
    data-position="<%- data.position %>"
    alt="<%- data.label %>" />

More information about asp_tags.

Edit php.ini and set asp_tags = off. For more information, see Required PHP settings.

Previous pageBlockers launching on Adobe Commerce on cloud infrastructure
Next pageRedis issue delay Commerce Admin login or checkout

Commerce


Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more