We noticed that some of our page layout has been broken. Did some debugging and found out that when in production mode there are some errors with the tags. Specifically:

<!--?php  <?php  <?php  <?php  <?php  <?php            <div class="page-wrapper"-->

Normally it should be:

<div class="page-wrapper">

We cleared all caches, switched to developer mode where the tag appears normally. Could someone suggest how to debug this for production mode?

We tried to disable all the 3rd party modules, disable all caches, checked most recent cms blocks and pages for div errors. Maybe someone can describe what happens when Magento does the compiling for production mode?

1 Answer 1


2 possible solutions for Magento 2.2.10 version:
1) Disable "Minify HTML";
2) Apply patch from this post: https://github.com/magento/magento2/issues/24992

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.