Magento2: Upgrade from Magento CE 2.1.9 to 2.2.0 - 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]*)*'.

Created on 28 Sep 2017  路  29Comments  路  Source: magento/magento2

Preconditions


  1. PHP 7.0.23
  2. mysql 5.7.19
  3. OSX 10.12.6

Steps to reproduce

  1. bin/magento setup:upgrade
  2. clear the cache
  3. view the website

Expected result

  1. No errors!

Actual result

1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'class': [facet 'pattern'] The value '\Magento\Framework\ViewElement\Template' is not accepted by the pattern '[A-Z][a-zA-Z\d](\[A-Z][a-zA-Z\d])*'.
Line: 703

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

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'class': [facet 'pattern'] The value '\Magento\Framework\ViewElement\Template' is not accepted by the pattern '[A-Z][a-zA-Z\d](\[A-Z][a-zA-Z\d])*'.
Line: 703

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

0 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('

1 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, '/Users/ccarnell...', '%message%\nLine:...')

2 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewo...', Array)

3 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewo...', Array)

4 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Config/DomFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Magento\Framewo...', Array)

5 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Model/Layout/Update/Validator.php(125): Magento\Framework\Config\DomFactory->createDom(Array)

6 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Model/Layout/Merge.php(461): Magento\Framework\ViewModel\Layout\Update\Validator->isValid('

7 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Model/Layout/Merge.php(442): Magento\Framework\ViewModel\Layout\Merge->_validateMergedLayout('LAYOUT_frontend...', '