xsd template validation error

If you upgraded to Magento 2.2.0 while also having Fooman Google Analytics+ installed at version 2.0.5 you will encounter the following error in development mode:

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: 530

Element 'block', attribute 'class': '\Magento\Framework\View\Element\Template' is not a valid value of the atomic type 'blockClassType'.
Line: 530


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: 530

Element 'block', attribute 'class': '\Magento\Framework\View\Element\Template' is not a valid value of the atomic type 'blockClassType'.
Line: 530

to fix please update to a more recent version of the extension 3.0.0 with

composer require fooman/googleanalyticsplus-m2:^3.0

Still need help? Contact Us Contact Us