magento2-theme-performance icon indicating copy to clipboard operation
magento2-theme-performance copied to clipboard

Magento 2.2: Element 'remove', attribute 'media': The attribute 'media' is not allowed.

Open Tjitse-E opened this issue 8 years ago • 0 comments

Preconditions: Magento 2.2 PHP 7.1 snowdog/frontools 1.5.8 snowdog/theme-blank-sass 0.10.0

Apparently Magento 2.2 is rather strict about the XML configuration. This piece of code:

https://github.com/SnowdogApps/magento2-theme-performance/blob/34316c278d54483c505148b43dcfb9a2f64cc18a/Magento_Theme/layout/default_head_blocks.xml#L7

Generates the following error in M2.2:

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'remove', attribute 'media': The attribute 'media' is not allowed.
Line: 23

If you remove the 'media' attribute of print.css this issue is resolved.

Tjitse-E avatar Oct 10 '17 18:10 Tjitse-E