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

asked Jan 1, 2019 at 9:29
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 Commented 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

answered Jan 1, 2019 at 9:44

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.