0

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

1
  • I thought you have try remove attribute in block....if you want to remove any existing block you have to use referenceBlock instead of block @anil Jan 1, 2019 at 9:44

1 Answer 1

3

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

Your Answer

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

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