1

After upgrading to Magento 2.2.5 I got the error

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'referenceContainer', attribute 'after': The attribute 'after' is not allowed.

I understand that this is caused by an 'after' attribute in referenceContainer in an xml file.

But how can I find out, which xml file and which element is causing the error?

1 Answer 1

2

I know you're probably looking for a log or command that will tell you exactly where this is occurring but as far as I'm aware that doesn't exist (if it does please let me know!).

The quickest way will be to search app/design/frontend/PACKAGE/THEME for after or referenceContainer and go through them . Even if you have 200 instances of this providing you have a half decent editor it should only take you a few seconds max per instance meaning it shouldn't take more than 10 minutes for the worst case.

1
  • 1
    I think I'll file a bug report, the erroneous location, or at minimun file, should be reported. Aug 17, 2018 at 5:56

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.