- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2018
10:45 PM
08-26-2018
10:45 PM
Error after installing new theme on Magento 2.2.5
Hi
I'm getting this error when i try to install a new theme on my Magento. Could someone please help med out. I don't know witch file i have to change:
1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'class': [facet 'pattern'] The value '\\Magento\Framework\View\Element\Template' is not accepted by the pattern '[A-Z][_a-zA-Z\d]*(\\[A-Z][_a-zA-Z\d]*)*'. Line: 745 Element 'block', attribute 'class': '\\Magento\Framework\View\Element\Template' is not a valid value of the atomic type 'blockClassType'. Line: 745 Element 'block', attribute 'remove': The attribute 'remove' is not allowed. Line: 826 Element 'move', attribute 'name': The attribute 'name' is not allowed. Line: 890 Element 'move', attribute 'name': The attribute 'name' is not allowed. Line: 891 Element 'remove': This element is not expected. Expected is one of ( block, container, referenceBlock, referenceContainer, uiComponent ). Line: 909
I have been looking for an answer on Github and Magento stack, but I can't find the right answer
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2018
11:46 PM
08-26-2018
11:46 PM
Re: Error after installing new theme on Magento 2.2.5
Hello @cealdk
latest Magento does not support remove an element, it should be on the block.
So you need to find such a xml from theme and you need to change into it.
otherwise, ask to theme developer to upgrade theme with latest version of that and use of that.
Hope it will help you.
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer