I have this problem and I can't locate where the problem is :
1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'referenceBlock', attribute 'class': The attribute 'class' is not allowed. Line: 1124
This problem occurs as a connected customer, when I try to access the invoice for a test order.
Here is what I tried to do to solve the problem by following a lot of topics on this forum:
- Delete the content of /pub/static/frontend
- Deploy static content
Note that I searched my XML for a referenceBlock with a class attribute, but I didn't find anything. Maybe I'm not looking in the right place?
The directories scanned to find the error: - /app/code - /app/design
Can someone explain to me how to locate this error more precisely? Or help me solve it?
EDIT : I made :
grep -r -i --include \* '<referenceContainer' mySiteDirectory/
And there is no referenceBlock with "class" attribute.
EDIT 2 : With Luma theme, I have same problem. So I suppose it's coming from a module.
So... What to do please ?
Magento version 2.3.1
Thank you in advance.