Magento – Element ‘block’, attribute ‘remove’: The attribute ‘remove’ is not allowed. Line: 745

attributesblocksdatabasemagento-2.2.5xml

I'm getting this error when I hit the front end. Couldn't able to find any solution regarding this.

1 exception(s): Exception #0
(Magento\Framework\Config\Dom\ValidationException): Element 'block',
attribute 'remove': The attribute 'remove' is not allowed. Line: 745

Thanks for any help in advance

Best Answer

in Magento 2, we can remove a block with the layout instruction below (it is an example)

<referenceBlock name="product.info" remove="true" />

now, reading your error, I suspect you have a line like this instead:

<block name="product.info" remove="true" />

I would look for the string remove="true" in your app/design/frontend folder and app/code folder

Related Topic