I have errors after the upgrade. You can see error below.
Can anyone help us to fix this error?

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block': This element is not expected. Expected is one of ( title, css, link, meta, script, remove, attribute ). Line: 1139

  • may be extension issue
    – Moin Malek
    Oct 26 '17 at 13:14
  • Thank you, but we have checked that already
    – user38833
    Oct 26 '17 at 13:39
  • Please cross check that block class name have backslashes if there Magento does not support backslash
    – Moin Malek
    Oct 26 '17 at 13:44
  • You mean this? <referenceContainer name="sidebar.main"> <block class=“Blue\Theme\Block\Category\Leftcategory" name="left.menu" template="Blue_Theme::callouts/leftmenu.phtml" before="-" ifconfig="blue_settings/leftcolumn/isenable" /> </referenceContainer>
    – user38833
    Oct 26 '17 at 14:21
  • Did you resolve this?
    – sudopratt
    Jan 31 '18 at 0:23

If there is any tag inside tag then will though mentioned error

just remove block then it works fine


you may search in your layout files reference for <head>. Once you have found some layout files that has the <head> reference.

In these files, you may check that there is no block definition within the head node. If there is a block, either comment it or remove it (you may backup your layout file of course)

The reasoning is that head has indeed title subnode, css and so on.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.