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

St3phan
2,9451 gold badge26 silver badges49 bronze badges
asked Oct 26, 2017 at 12:15
5
  • may be extension issue Commented Oct 26, 2017 at 13:14
  • Thank you, but we have checked that already Commented Oct 26, 2017 at 13:39
  • Please cross check that block class name have backslashes if there Magento does not support backslash 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> Commented Oct 26, 2017 at 14:21
  • Did you resolve this? 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

answered May 10, 2018 at 10:57
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.

answered Nov 12, 2019 at 16:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.