• 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


There are only two allowed attributes for reference blocks.



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.

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

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.