0

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

5
  • may be extension issue
    – Moin Malek
    Commented Oct 26, 2017 at 13:14
  • Thank you, but we have checked that already
    – user38833
    Commented Oct 26, 2017 at 13:39
  • Please cross check that block class name have backslashes if there Magento does not support backslash
    – Moin Malek
    Commented Oct 26, 2017 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
    Commented Oct 26, 2017 at 14:21
  • Did you resolve this?
    – sudopratt
    Commented Jan 31, 2018 at 0:23

2 Answers 2

0

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

just remove block then it works fine

0

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 and acknowledge you have read our privacy policy.

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