cancel
Showing results for 
Search instead for 
Did you mean: 

Error after installing new theme on Magento 2.2.5

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

1 REPLY 1

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.

 

 

https://magento.stackexchange.com/questions/201030/after-upgrade-magento-2-1-8-to-2-2-1-got-below-er...

 

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