0
  • I got an error after installing cart2Quote free
  • (Magento\Framework\Config\Dom\ValidationException): Element 'referenceBlock', attribute 'class': The attribute 'class' is not allowed.
  • i am using magento 2.2.7 Please help! enter image description here

1 Answer 1

0

There are only two allowed attributes for reference blocks.

remove

display

Search for referenceBlock in your cart2quote module and remove the class attribute from referenceBlock element.

Flush your Magento cache php bin/magento c:f and check.

7
  • thank your answer! i has remove all class attribute from referenceBlock, but it not working for me. Commented Sep 16, 2020 at 6:23
  • make sure to flush all cache and then check. Commented Sep 16, 2020 at 6:24
  • yes. i has flush all cache but it not working. Commented Sep 16, 2020 at 6:27
  • this is my mistake. I mistook referenceBlock vs referenceContainer Commented Sep 16, 2020 at 6:42
  • glad it helps you. please accept and upvote the answer if helpful. Commented Sep 16, 2020 at 6:45

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.