magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

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]*)*'. #11110

Closed csdougliss closed 7 years ago

csdougliss commented 7 years ago

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\View\Element\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\View\Element\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\View\Element\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\View\Element\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('<layout xmlns:x...')

1 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout 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\View\Model\Layout\Update\Validator->isValid('<layout xmlns:x...', 'layout_merged', false)

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

8 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Model/Layout/Merge/Interceptor.php(193): Magento\Framework\View\Model\Layout\Merge->load(Array)

9 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout/Builder.php(86): Magento\Framework\View\Model\Layout\Merge\Interceptor->load()

10 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout/Builder.php(63): Magento\Framework\View\Layout\Builder->loadLayoutUpdates()

11 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(254): Magento\Framework\View\Layout\Builder->build()

12 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(875): Magento\Framework\View\Layout->build()

13 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(414): Magento\Framework\View\Layout->getBlock('page_content_he...')

14 /Users/ccarnell/Sites/harttools-anz/vendor/magento/module-cms/Helper/Page.php(171): Magento\Framework\View\Layout\Interceptor->getBlock('page_content_he...')

15 /Users/ccarnell/Sites/harttools-anz/vendor/magento/module-cms/Controller/Index/Index.php(43): Magento\Cms\Helper\Page->prepareResultPage(Object(Magento\Cms\Controller\Index\Index\Interceptor), 'home')

16 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php(24): Magento\Cms\Controller\Index\Index->execute(NULL)

17 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/Action/Action.php(107): Magento\Cms\Controller\Index\Index\Interceptor->execute()

18 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))

19 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Cms\Controller\Index\Index\Interceptor->___callParent('dispatch', Array)

20 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

21 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php(39): Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)

22 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/FrontController.php(55): Magento\Cms\Controller\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))

23 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))

24 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)

25 /Users/ccarnell/Sites/harttools-anz/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

26 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

27 /Users/ccarnell/Sites/harttools-anz/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

28 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

29 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

30 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)

31 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))

32 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()

33 /Users/ccarnell/Sites/harttools-anz/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))

34 {main}

orlangur commented 7 years ago

Leading backslash in class name is not allowed. Please check if it works if you remove all such occurrences.

csdougliss commented 7 years ago

@orlangur Where am I looking, XML, PHP or phtml files?

csdougliss commented 7 years ago

OK I found it.. next one:

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid XML in file /Users/ccarnell/Sites/harttools-anz/vendor/magento/module-catalog/etc/widget.xml:
Element 'options': This element is not expected. Expected is one of ( description, depends ).
Line: 180

Element 'options': This element is not expected. Expected is one of ( description, depends ).
Line: 197

Element 'options': This element is not expected. Expected is one of ( description, depends ).
Line: 252

Element 'options': This element is not expected. Expected is one of ( description, depends ).
Line: 266

Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid XML in file /Users/ccarnell/Sites/harttools-anz/vendor/magento/module-catalog/etc/widget.xml:
Element 'options': This element is not expected. Expected is one of ( description, depends ).
Line: 180

Element 'options': This element is not expected. Expected is one of ( description, depends ).
Line: 197

Element 'options': This element is not expected. Expected is one of ( description, depends ).
Line: 252

Element 'options': This element is not expected. Expected is one of ( description, depends ).
Line: 266

#0 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#1 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Widget/Model/Config/Reader/Proxy.php(103): Magento\Framework\Config\Reader\Filesystem->read('global')
#2 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Config/Data/Scoped.php(118): Magento\Widget\Model\Config\Reader\Proxy->read('global')
#3 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Config/Data/Scoped.php(96): Magento\Framework\Config\Data\Scoped->_loadScopedData()
#4 /Users/ccarnell/Sites/harttools-anz/vendor/magento/module-widget/Model/Widget.php(245): Magento\Framework\Config\Data\Scoped->get()
#5 /Users/ccarnell/Sites/harttools-anz/vendor/magento/module-widget/Model/Widget.php(108): Magento\Widget\Model\Widget->getWidgets()
#6 /Users/ccarnell/Sites/harttools-anz/vendor/magento/module-widget/Model/Widget.php(143): Magento\Widget\Model\Widget->getWidgetByClassType('VaxLtd\\Widget\\B...')
#7 /Users/ccarnell/Sites/harttools-anz/vendor/vaxltd/module-widget/Model/Widget.php(31): Magento\Widget\Model\Widget->getConfigAsObject('VaxLtd\\Widget\\B...')
#8 /Users/ccarnell/Sites/harttools-anz/vendor/vaxltd/module-widget/Block/Instance.php(83): VaxLtd\Widget\Model\Widget->getWidgetDeclaration('VaxLtd\\Widget\\B...', Array)
#9 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Element/AbstractBlock.php(667): VaxLtd\Widget\Block\Instance->_toHtml()
#10 /Users/ccarnell/Sites/harttools-anz/vendor/vaxltd/module-widget/view/frontend/templates/homepage/slider.phtml(14): Magento\Framework\View\Element\AbstractBlock->toHtml()
#11 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/Users/ccarnell...')
#12 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(VaxLtd\Widget\Block\HomepageBanner\Carousel), '/Users/ccarnell...', Array)
#13 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Element/Template.php(300): Magento\Framework\View\Element\Template->fetchView('/Users/ccarnell...')
#14 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml()
#15 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(558): Magento\Framework\View\Element\AbstractBlock->toHtml()
#16 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(534): Magento\Framework\View\Layout->_renderBlock('home.slider')
#17 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('home.slider')
#18 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('home.slider')
#19 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('home.slider', true)
#20 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('home.slider')
#21 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('content')
#22 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('content')
#23 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('content')
#24 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('content', true)
#25 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('content')
#26 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('main')
#27 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main')
#28 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main')
#29 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main', true)
#30 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('main')
#31 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('columns')
#32 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('columns')
#33 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('columns')
#34 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('columns', true)
#35 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('columns')
#36 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('main.content')
#37 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main.content')
#38 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main.content')
#39 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main.content', true)
#40 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('main.content')
#41 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('page.wrapper')
#42 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper')
#43 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper')
#44 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper', true)
#45 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper')
#46 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('root')
#47 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root')
#48 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root')
#49 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('root', true)
#50 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Layout.php(954): Magento\Framework\View\Layout\Interceptor->renderElement('root')
#51 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->getOutput()
#52 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', Array)
#53 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}()
#54 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array)
#55 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Result/Page.php(257): Magento\Framework\View\Layout\Interceptor->getOutput()
#56 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/View/Result/Layout.php(170): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))
#57 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#58 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array)
#59 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#60 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(130): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, Array)
#61 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/Http.php(139): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#62 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()
#63 /Users/ccarnell/Sites/harttools-anz/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#64 {main}
orlangur commented 7 years ago

That's strange, such issue should not appear in core files.

Please try remove vendor/* and then run composer install again.

csdougliss commented 7 years ago

@orlangur I don't think it does. I have it in my own extended widget.xsd

orlangur commented 7 years ago

Oh :) That was unexpected. Then you need to check the changes in original widget.xsd and do necessary changes in your custom scheme.

csdougliss commented 7 years ago

@orlangur If only I was the original developer that changed it :)

csdougliss commented 7 years ago

@orlangur One more. I know this can be fixed by updating the copy direct from the module author.

Warning: Redis::pipeline(): Already in pipeline mode in /Users/ccarnell/Sites/harttools-anz/vendor/colinmollenhour/credis/Client.php on line 1037

Warning: Redis::pipeline(): Already in pipeline mode in /Users/ccarnell/Sites/harttools-anz/vendor/colinmollenhour/credis/Client.php on line 1037

Warning: Redis::pipeline(): Already in pipeline mode in /Users/ccarnell/Sites/harttools-anz/vendor/colinmollenhour/credis/Client.php on line 1037
Exception: Warning: substr() expects parameter 1 to be string, object given in /Users/ccarnell/Sites/harttools-anz/vendor/colinmollenhour/cache-backend-redis/Cm/Cache/Backend/Redis.php on line 1129 in /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/ErrorHandler.php:61 Stack trace: #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'substr() expect...', '/Users/ccarnell...', 1129, Array) #1 /Users/ccarnell/Sites/harttools-anz/vendor/colinmollenhour/cache-backend-redis/Cm/Cache/Backend/Redis.php(1129): substr(Object(Credis_Client), 2, 3) #2 /Users/ccarnell/Sites/harttools-anz/vendor/colinmollenhour/cache-backend-redis/Cm/Cache/Backend/Redis.php(381): Cm_Cache_Backend_Redis->_decodeData(Object(Credis_Client)) #3 /Users/ccarnell/Sites/harttools-anz/vendor/magento/zendframework1/library/Zend/Cache/Core.php(306): Cm_Cache_Backend_Redis->load('7f7_GLOBAL_FRON...', false) #4 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(39): Zend_Cache_Core->load('7f7_GLOBAL_FRON...') #5 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): Magento\Framework\Cache\Frontend\Adapter\Zend->load('global|frontend...') #6 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): Magento\Framework\Cache\Frontend\Decorator\Bare->load('global|frontend...') #7 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): Magento\Framework\Cache\Frontend\Decorator\Bare->load('global|frontend...') #8 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/Cache/Type/AccessProxy.php(74): Magento\Framework\Cache\Frontend\Decorator\Bare->load('global|frontend...') #9 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): Magento\Framework\App\Cache\Type\AccessProxy->load('global|frontend...') #10 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/PluginList/PluginList.php(288): Magento\Framework\Cache\Frontend\Decorator\Bare->load('global|frontend...') #11 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/Interception/PluginList/PluginList.php(266): Magento\Framework\Interception\PluginList\PluginList->_loadScopedData() #12 /Users/ccarnell/Sites/harttools-anz/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(217): Magento\Framework\Interception\PluginList\PluginList->getNext('Magento\\Framewo...', 'setHttpResponse...') #13 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/Http.php(182): Magento\Framework\App\Response\Http\Interceptor->setHttpResponseCode(500) #14 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #15 /Users/ccarnell/Sites/harttools-anz/vendor/magento/framework/App/Bootstrap.php(261): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #16 /Users/ccarnell/Sites/harttools-anz/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #17 {main}
orlangur commented 7 years ago

This is a known one :) As a workaround you can downgrade pecl-redis or apply the changes from linked PR. Can we close this issue now?

csdougliss commented 7 years ago

Yes thank you 👍

andidhouse commented 7 years ago

@craigcarnell how did you fix this one? I think we have the same as you did.

Many thanks!

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'move', attribute 'after': [facet 'pattern'] The value '' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d-_.]*|-'. Line: 739

Element 'move', attribute 'after': '' is not a valid value of the atomic type 'elementPositionType'. Line: 739

Element 'move', attribute 'after': [facet 'pattern'] The value '' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d-_.]*|-'. Line: 740

Element 'move', attribute 'after': '' is not a valid value of the atomic type 'elementPositionType'. Line: 740

Element 'referenceContainer', attribute 'before': The attribute 'before' is not allowed. Line: 784

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'move', attribute 'after': [facet 'pattern'] The value '' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d-_.]*|-'. Line: 739

Element 'move', attribute 'after': '' is not a valid value of the atomic type 'elementPositionType'. Line: 739

Element 'move', attribute 'after': [facet 'pattern'] The value '' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d-_.]*|-'. Line: 740

Element 'move', attribute 'after': '' is not a valid value of the atomic type 'elementPositionType'. Line: 740

Element 'referenceContainer', attribute 'before': The attribute 'before' is not allowed. Line: 784

ghost commented 7 years ago

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*'.

\Magento\Framework\View\Element\Template -> Magento\Framework\View\Element\Template

In layout, the attribute class should be specified without \

<block class="\Magento\Sales\Block\Order\Info" -> <block class="Magento\Sales\Block\Order\Info"

orlangur commented 7 years ago

@andidhouse all errors you mentioned looks pretty straightforward to me, please point out which of them seems vague to you.

Basically it seems like XSD schemas were not changed but somehow validation didn't work properly before.

Element 'referenceContainer', attribute 'before': The attribute 'before' is not allowed.

For example, this means that before attribute is useless for <referenceContainer, you should use it only with <container.

hezide commented 7 years ago

I have a similar issue but strange as it sounds, I can't understand which file is problematic, this is my exception:

1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'referenceContainer', attribute 'as': The attribute 'as' is not allowed.
Line: 219

Element 'referenceContainer', attribute 'before': The attribute 'before' is not allowed.
Line: 219

Element 'link', attribute 'async': The attribute 'async' is not allowed.
Line: 225

Element 'block', attribute 'after': [facet 'pattern'] The value '*' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d\-_\.]*|-'.
Line: 621

Element 'block', attribute 'after': '*' is not a valid value of the atomic type 'elementPositionType'.
Line: 621

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

Element 'referenceContainer', attribute 'before': The attribute 'before' is not allowed.
Line: 219

Element 'link', attribute 'async': The attribute 'async' is not allowed.
Line: 225

Element 'block', attribute 'after': [facet 'pattern'] The value '*' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d\-_\.]*|-'.
Line: 621

Element 'block', attribute 'after': '*' is not a valid value of the atomic type 'elementPositionType'.
Line: 621

#0 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<layout xmlns:x...')
#1 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, '/chroot/home/mi...', '%message%\nLine:...')
#2 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#3 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...', Array)
#4 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Config/DomFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array)
#5 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/View/Model/Layout/Update/Validator.php(125): Magento\Framework\Config\DomFactory->createDom(Array)
#6 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/View/Model/Layout/Merge.php(461): Magento\Framework\View\Model\Layout\Update\Validator->isValid('<layout xmlns:x...', 'layout_merged', false)
#7 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/View/Model/Layout/Merge.php(442): Magento\Framework\View\Model\Layout\Merge->_validateMergedLayout('LAYOUT_frontend...', '<body>\n   <refe...')
#8 /chroot/home/minimoon/staging.ochosbags.com/html/generated/code/Magento/Framework/View/Model/Layout/Merge/Interceptor.php(193): Magento\Framework\View\Model\Layout\Merge->load(Array)
#9 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/View/Layout/Builder.php(86): Magento\Framework\View\Model\Layout\Merge\Interceptor->load()
#10 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/View/Layout/Builder.php(63): Magento\Framework\View\Layout\Builder->loadLayoutUpdates()
#11 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/View/Layout.php(254): Magento\Framework\View\Layout\Builder->build()
#12 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/View/Layout.php(875): Magento\Framework\View\Layout->build()
#13 /chroot/home/minimoon/staging.ochosbags.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(414): Magento\Framework\View\Layout->getBlock('page_content_he...')
#14 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/module-cms/Helper/Page.php(171): Magento\Framework\View\Layout\Interceptor->getBlock('page_content_he...')
#15 /chroot/home/minimoon/staging.ochosbags.com/html/app/code/Codazon/ThemeOptions/Cms/Controller/Index/Index/Plugin.php(24): Magento\Cms\Helper\Page->prepareResultPage(Object(Magento\Cms\Controller\Index\Index\Interceptor), 'home')
#16 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(135): Codazon\ThemeOptions\Cms\Controller\Index\Index\Plugin->aroundExecute(Object(Magento\Cms\Controller\Index\Index\Interceptor), Object(Closure))
#17 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}()
#18 /chroot/home/minimoon/staging.ochosbags.com/html/generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php(26): Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('execute', Array, NULL)
#19 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/App/Action/Action.php(107): Magento\Cms\Controller\Index\Index\Interceptor->execute()
#20 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#21 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Cms\Controller\Index\Index\Interceptor->___callParent('dispatch', Array)
#22 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#23 /chroot/home/minimoon/staging.ochosbags.com/html/generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php(39): Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#24 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/App/FrontController.php(55): Magento\Cms\Controller\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#25 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#26 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#27 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#28 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#29 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#30 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#31 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#32 /chroot/home/minimoon/staging.ochosbags.com/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)
#33 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#34 /chroot/home/minimoon/staging.ochosbags.com/html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()
#35 /chroot/home/minimoon/staging.ochosbags.com/html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#36 {main}
lecahipe commented 7 years ago

Hello I'm having similar errors, does anyone solve this?... because I see It was a solution but I cannot understand how @craigcarnell solve it, if you guys can please help a little bit explaining how to solve will appreciate. Thanks

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

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

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

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

#0 /home/imperial/dev/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<layout xmlns:x...')
#1 /home/imperial/dev/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, '/home/imperial/...', '%message%\nLine:...')
#2 /home/imperial/dev/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#3 /home/imperial/dev/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...', Array)
#4 /home/imperial/dev/vendor/magento/framework/Config/DomFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array)
#5 /home/imperial/dev/vendor/magento/framework/View/Model/Layout/Update/Validator.php(125): Magento\Framework\Config\DomFactory->createDom(Array)
#6 /home/imperial/dev/vendor/magento/framework/View/Model/Layout/Merge.php(461): Magento\Framework\View\Model\Layout\Update\Validator->isValid('<layout xmlns:x...', 'layout_merged', false)
#7 /home/imperial/dev/vendor/magento/framework/View/Model/Layout/Merge.php(442): Magento\Framework\View\Model\Layout\Merge->_validateMergedLayout('LAYOUT_frontend...', '<move element="...')
#8 /home/imperial/dev/vendor/magento/framework/View/Layout/Builder.php(86): Magento\Framework\View\Model\Layout\Merge->load()
#9 /home/imperial/dev/vendor/magento/framework/View/Layout/Builder.php(63): Magento\Framework\View\Layout\Builder->loadLayoutUpdates()
#10 /home/imperial/dev/vendor/magento/framework/View/Layout.php(254): Magento\Framework\View\Layout\Builder->build()
#11 /home/imperial/dev/vendor/magento/framework/View/Layout.php(875): Magento\Framework\View\Layout->build()
#12 /home/imperial/dev/generated/code/Magento/Framework/View/Layout/Interceptor.php(414): Magento\Framework\View\Layout->getBlock('page_content_he...')
#13 /home/imperial/dev/vendor/magento/module-cms/Helper/Page.php(171): Magento\Framework\View\Layout\Interceptor->getBlock('page_content_he...')
#14 /home/imperial/dev/vendor/magento/module-cms/Controller/Index/Index.php(43): Magento\Cms\Helper\Page->prepareResultPage(Object(Magento\Cms\Controller\Index\Index\Interceptor), 'imp-homepage-la...')
#15 /home/imperial/dev/vendor/magento/framework/App/Action/Action.php(107): Magento\Cms\Controller\Index\Index->execute()
#16 /home/imperial/dev/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#17 /home/imperial/dev/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Cms\Controller\Index\Index\Interceptor->___callParent('dispatch', Array)
#18 /home/imperial/dev/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#19 /home/imperial/dev/generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php(26): Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#20 /home/imperial/dev/vendor/magento/framework/App/FrontController.php(55): Magento\Cms\Controller\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#21 /home/imperial/dev/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#22 /home/imperial/dev/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#23 /home/imperial/dev/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#24 /home/imperial/dev/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#25 /home/imperial/dev/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#26 /home/imperial/dev/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#27 /home/imperial/dev/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#28 /home/imperial/dev/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)
#29 /home/imperial/dev/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#30 /home/imperial/dev/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()
#31 /home/imperial/dev/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#32 {main}
orlangur commented 7 years ago

@lecahipe in your case simply remove leading backslashes: '\\Magento\Framework\View\Element\Template' -> 'Magento\Framework\View\Element\Template'

lecahipe commented 7 years ago

@orlangur thanks for your help, I was lost... and the solution was such a simple thing now everything is working. Thanks 👍

devamitbera commented 7 years ago

I have same issue .

One of xml file, has the syntax likeafter="*"

does not support at magento 2.2, I have changes it toafter="-" and it is worked

Also at on some layout xml files i have found some wrong syntax

Like

referenceBlock name="top.links" after="register-link"

remoe after as it is nested after error

bkjain commented 7 years ago

@orlangur in your case simply remove leading backslashes: '\Magento\Framework\View\Element\Template' -> 'Magento\Framework\View\Element\Template'

From Which file need to do this change ? i get same error like @lecahipe i just upgrade 2.1.8 to 2.2.1

AGhribiCoop commented 6 years ago

Exactly, what file should we edit ?

sadon commented 6 years ago

I resolve similar issue htmlClass="product media column-padding col-md-6 col-lg-4 col-lg-push-4 col-sm-12 " via removing the space at the end of string: "product media column-padding col-md-6 col-lg-4 col-lg-push-4 col-sm-12" //<--

But I think that the regular expression did not resolve their purpose.

globallydigitaluk commented 6 years ago

We are having similar issues; oddly though only after moving server. On the old server the same issue is not present:

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'argument': The attribute 'name' is required but missing. Line: 996

Element 'argument': Not all fields of key identity-constraint 'blockActionArgumentName' evaluate to a node. Line: 996

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'argument': The attribute 'name' is required but missing. Line: 996

Element 'argument': Not all fields of key identity-constraint 'blockActionArgumentName' evaluate to a node. Line: 996

0 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<layout xmlns:x...')

1 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, '/var/www/vhosts...', '%message%\nLine:...')

2 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewo...', Array)

3 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewo...', Array)

4 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Config/DomFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Magento\Framewo...', Array)

5 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/View/Model/Layout/Update/Validator.php(125): Magento\Framework\Config\DomFactory->createDom(Array)

6 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/View/Model/Layout/Merge.php(461): Magento\Framework\View\Model\Layout\Update\Validator->isValid('<layout xmlns:x...', 'layout_merged', false)

7 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/View/Model/Layout/Merge.php(442): Magento\Framework\View\Model\Layout\Merge->_validateMergedLayout('LAYOUT_frontend...', '\n <refe...')

8 /var/www/vhosts/opumo.com/htdocs/generated/code/Magento/Framework/View/Model/Layout/Merge/Interceptor.php(193): Magento\Framework\View\Model\Layout\Merge->load(Array)

9 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/View/Layout/Builder.php(86): Magento\Framework\View\Model\Layout\Merge\Interceptor->load()

10 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/View/Layout/Builder.php(63): Magento\Framework\View\Layout\Builder->loadLayoutUpdates()

11 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/View/Layout.php(254): Magento\Framework\View\Layout\Builder->build()

12 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/View/Layout.php(875): Magento\Framework\View\Layout->build()

13 /var/www/vhosts/opumo.com/htdocs/generated/code/Magento/Framework/View/Layout/Interceptor.php(414): Magento\Framework\View\Layout->getBlock('page_content_he...')

14 /var/www/vhosts/opumo.com/htdocs/vendor/magento/module-cms/Helper/Page.php(171): Magento\Framework\View\Layout\Interceptor->getBlock('page_content_he...')

15 /var/www/vhosts/opumo.com/htdocs/vendor/magento/module-cms/Controller/Noroute/Index.php(44): Magento\Cms\Helper\Page->prepareResultPage(Object(Magento\Cms\Controller\Noroute\Index\Interceptor), 'no-route')

16 /var/www/vhosts/opumo.com/htdocs/generated/code/Magento/Cms/Controller/Noroute/Index/Interceptor.php(24): Magento\Cms\Controller\Noroute\Index->execute()

17 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/App/Action/Action.php(107): Magento\Cms\Controller\Noroute\Index\Interceptor->execute()

18 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))

19 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Cms\Controller\Noroute\Index\Interceptor->___callParent('dispatch', Array)

20 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Controller\Noroute\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

21 /var/www/vhosts/opumo.com/htdocs/generated/code/Magento/Cms/Controller/Noroute/Index/Interceptor.php(39): Magento\Cms\Controller\Noroute\Index\Interceptor->___callPlugins('dispatch', Array, Array)

22 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/App/FrontController.php(55): Magento\Cms\Controller\Noroute\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))

23 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))

24 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)

25 /var/www/vhosts/opumo.com/htdocs/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

26 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

27 /var/www/vhosts/opumo.com/htdocs/vendor/mirasvit/module-search-autocomplete/src/SearchAutocomplete/Plugin/ResponsePlugin.php(156): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

28 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Mirasvit\SearchAutocomplete\Plugin\ResponsePlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

29 /var/www/vhosts/opumo.com/htdocs/app/code/Amasty/GeoipRedirect/Plugin/Action.php(127): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

30 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\GeoipRedirect\Plugin\Action->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

31 /var/www/vhosts/opumo.com/htdocs/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

32 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

33 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

34 /var/www/vhosts/opumo.com/htdocs/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)

35 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))

36 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->launch()

37 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('launch', Array)

38 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception{closure}()

39 /var/www/vhosts/opumo.com/htdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(26): Magento\Framework\App\Http\Interceptor->___callPlugins('launch', Array, Array)

40 /var/www/vhosts/opumo.com/htdocs/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()

41 /var/www/vhosts/opumo.com/htdocs/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))

42 {main}

rfifa commented 6 years ago

@lecahipe Which file have you changed, and where was it, please?

nunorcsousa commented 6 years ago

I'm trying to install a template in a local server using Magento. I made a copy to the server and then an upgrade to Magento. My Admin Panel is functioning but I face a problem when I access localhost. I'm working in developer mode. Here's my output of the page.

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'type': The attribute 'type' is not allowed. Line: 804

Element 'block', attribute 'type': The attribute 'type' is not allowed. Line: 849

Element 'block', attribute 'type': The attribute 'type' is not allowed. Line: 858

Element 'block', attribute 'type': The attribute 'type' is not allowed. Line: 865

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'type': The attribute 'type' is not allowed. Line: 804

Element 'block', attribute 'type': The attribute 'type' is not allowed. Line: 849

Element 'block', attribute 'type': The attribute 'type' is not allowed. Line: 858

Element 'block', attribute 'type': The attribute 'type' is not allowed. Line: 865

0 /opt/lampp/htdocs/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<layout xmlns:x...')

1 /opt/lampp/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, '/opt/lampp/htdo...', '%message%\nLine:...')

2 /opt/lampp/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewo...', Array)

3 /opt/lampp/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewo...', Array)

4 /opt/lampp/htdocs/vendor/magento/framework/Config/DomFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Magento\Framewo...', Array)

5 /opt/lampp/htdocs/vendor/magento/framework/View/Model/Layout/Update/Validator.php(141): Magento\Framework\Config\DomFactory->createDom(Array)

6 /opt/lampp/htdocs/vendor/magento/framework/View/Model/Layout/Merge.php(461): Magento\Framework\View\Model\Layout\Update\Validator->isValid('<layout xmlns:x...', 'layout_merged', false)

7 /opt/lampp/htdocs/vendor/magento/framework/View/Model/Layout/Merge.php(442): Magento\Framework\View\Model\Layout\Merge->_validateMergedLayout('LAYOUT_frontend...', '<!--\n <refer...')

8 /opt/lampp/htdocs/generated/code/Magento/Framework/View/Model/Layout/Merge/Interceptor.php(193): Magento\Framework\View\Model\Layout\Merge->load(Array)

9 /opt/lampp/htdocs/vendor/magento/framework/View/Layout/Builder.php(86): Magento\Framework\View\Model\Layout\Merge\Interceptor->load()

10 /opt/lampp/htdocs/vendor/magento/framework/View/Layout/Builder.php(63): Magento\Framework\View\Layout\Builder->loadLayoutUpdates()

11 /opt/lampp/htdocs/vendor/magento/framework/View/Layout.php(254): Magento\Framework\View\Layout\Builder->build()

12 /opt/lampp/htdocs/vendor/magento/framework/View/Layout.php(875): Magento\Framework\View\Layout->build()

13 /opt/lampp/htdocs/generated/code/Magento/Framework/View/Layout/Interceptor.php(414): Magento\Framework\View\Layout->getBlock('page_content_he...')

14 /opt/lampp/htdocs/vendor/magento/module-cms/Helper/Page.php(171): Magento\Framework\View\Layout\Interceptor->getBlock('page_content_he...')

15 /opt/lampp/htdocs/vendor/magento/module-cms/Controller/Index/Index.php(43): Magento\Cms\Helper\Page->prepareResultPage(Object(Magento\Cms\Controller\Index\Index\Interceptor), 'home')

16 /opt/lampp/htdocs/generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php(24): Magento\Cms\Controller\Index\Index->execute(NULL)

17 /opt/lampp/htdocs/vendor/magento/framework/App/Action/Action.php(107): Magento\Cms\Controller\Index\Index\Interceptor->execute()

18 /opt/lampp/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))

19 /opt/lampp/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Cms\Controller\Index\Index\Interceptor->___callParent('dispatch', Array)

20 /opt/lampp/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

21 /opt/lampp/htdocs/generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php(39): Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)

22 /opt/lampp/htdocs/vendor/magento/framework/App/FrontController.php(55): Magento\Cms\Controller\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))

23 /opt/lampp/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))

24 /opt/lampp/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)

25 /opt/lampp/htdocs/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

26 /opt/lampp/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

27 /opt/lampp/htdocs/app/code/TemplateMonster/ThemeOptions/Model/App/Action/ContextPlugin.php(29): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

28 /opt/lampp/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): TemplateMonster\ThemeOptions\Model\App\Action\ContextPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

29 /opt/lampp/htdocs/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

30 /opt/lampp/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

31 /opt/lampp/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

32 /opt/lampp/htdocs/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)

33 /opt/lampp/htdocs/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))

34 /opt/lampp/htdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()

35 /opt/lampp/htdocs/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()

36 /opt/lampp/htdocs/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))

37 {main}

I have no idea to solve this. Can someone please help me on this?

DeepParekhDev commented 6 years ago

Same issue:

Element 'script', attribute 'data-requiremodule': The attribute 'data-requiremodule' is not allowed. Line: 42

Element 'script', attribute 'data-requiremodule': The attribute 'data-requiremodule' is not allowed. Line: 43

Element 'script', attribute 'data-requiremodule': The attribute 'data-requiremodule' is not allowed. Line: 44

Element 'script', attribute 'data-requiremodule': The attribute 'data-requiremodule' is not allowed. Line: 45

Element 'remove': This element is not expected. Expected is one of ( block, container, referenceBlock, referenceContainer, uiComponent ). Line: 687

0 /var/www/vhosts/arredabene.local/httpdocs/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<layout xmlns:x...')

1 /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, '/var/www/vhosts...', '%message%\nLine:...')

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

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

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

5 /vendor/magento/framework/View/Model/Layout/Update/Validator.php(141):

etc... etc..

Have you find any solution ? I just added magento 2.2.3 folder in server(CentOs with nginx) and install composer and getting this error.

nunorcsousa commented 6 years ago

@D-David11 I had install Magento 2.2.3 in my server and then applied the template and problems started to appear. After many tests i found out that the main cause was incompatibility between Magento and the installed template. Check the details of your template and if necessary install a previous version of Magento. Regards

orlangur commented 6 years ago

@nunorcsousa @D-David11 simply eliminate all XSD schema violations. Looks like in 2.1 validation did not work properly thus you could have invalid declarations without even knowing it.

salelsol commented 6 years ago

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'move': This element is not expected. Line: 307

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'move': This element is not expected. Line: 307

0 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<layout xmlns:x...')

1 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, '/home/182587.cl...', '%message%\nLine:...')

2 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewo...', Array)

3 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewo...', Array)

4 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Config/DomFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Magento\Framewo...', Array)

5 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/View/Model/Layout/Update/Validator.php(141): Magento\Framework\Config\DomFactory->createDom(Array)

6 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/View/Model/Layout/Merge.php(461): Magento\Framework\View\Model\Layout\Update\Validator->isValid('<layout xmlns:x...', 'layout_merged', false)

7 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/View/Model/Layout/Merge.php(442): Magento\Framework\View\Model\Layout\Merge->_validateMergedLayout('LAYOUT_frontend...', '<referenceConta...')

8 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/generated/code/Magento/Framework/View/Model/Layout/Merge/Interceptor.php(193): Magento\Framework\View\Model\Layout\Merge->load(Array)

9 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/View/Layout/Builder.php(86): Magento\Framework\View\Model\Layout\Merge\Interceptor->load()

10 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/View/Layout/Builder.php(63): Magento\Framework\View\Layout\Builder->loadLayoutUpdates()

11 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/View/Layout.php(254): Magento\Framework\View\Layout\Builder->build()

12 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/View/Layout.php(875): Magento\Framework\View\Layout->build()

13 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(414): Magento\Framework\View\Layout->getBlock('page_content_he...')

14 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/module-cms/Helper/Page.php(171): Magento\Framework\View\Layout\Interceptor->getBlock('page_content_he...')

15 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Cms\Helper\Page->prepareResultPage(Object(Magento\Cms\Controller\Index\Index\Interceptor), 'porto_home_4')

16 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Cms\Helper\Page\Interceptor->___callParent('prepareResultPa...', Array)

17 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/app/code/Amasty/Shopby/Plugin/Cms/Helper/Page.php(102): Magento\Cms\Helper\Page\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Cms\Controller\Index\Index\Interceptor), 'porto_home_4')

18 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\Shopby\Plugin\Cms\Helper\Page->aroundPrepareResultPage(Object(Magento\Cms\Helper\Page\Interceptor), Object(Closure), Object(Magento\Cms\Controller\Index\Index\Interceptor), 'porto_home_4')

19 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Helper\Page\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Cms\Controller\Index\Index\Interceptor), 'porto_home_4')

20 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/generated/code/Magento/Cms/Helper/Page/Interceptor.php(26): Magento\Cms\Helper\Page\Interceptor->___callPlugins('prepareResultPa...', Array, NULL)

21 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/module-cms/Controller/Index/Index.php(43): Magento\Cms\Helper\Page\Interceptor->prepareResultPage(Object(Magento\Cms\Controller\Index\Index\Interceptor), 'porto_home_4')

22 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Cms\Controller\Index\Index->execute()

23 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Cms\Controller\Index\Index\Interceptor->___callParent('execute', Array)

24 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception{closure}()

25 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php(26): Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('execute', Array, Array)

26 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/App/Action/Action.php(107): Magento\Cms\Controller\Index\Index\Interceptor->execute()

27 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))

28 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Cms\Controller\Index\Index\Interceptor->___callParent('dispatch', Array)

29 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

30 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php(39): Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)

31 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/App/FrontController.php(55): Magento\Cms\Controller\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))

32 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))

33 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)

34 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

35 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

36 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/app/code/Litespeed/Litemage/Model/App/FrontController/LitemagePlugin.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

37 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Litespeed\Litemage\Model\App\FrontController\LitemagePlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

38 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

39 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))

40 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))

41 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)

42 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))

43 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()

44 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()

45 /home/182587.cloudwaysapps.com/ghzznzswbg/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))

46 {main}

Best Regards Toni

orlangur commented 6 years ago

@salelsol you need to find and fix improper <move elements in your layout XML files. Was Porto Theme upgraded for 2.2 by its developer?

GitHub is intended for bug reports, please use Magento Stack Exchange for questions. Also, googling observed error is usually helpful.