I solved this warning message in Magento 2.1.1:
Open your file (override file not in vendor) checkout_index_index.xml
.
In line equals:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
add layout="1column"
property:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
I found this solution here.
It's possible that there is another layout file somewhere which is supposed to reference the above.header.msg
container that's defined here and add a block element named customer
, but isn't doing so for some reason.
This file is overriding vendor/magento/module-theme/view/frontend/layout/default.xml
, and the above.header.msg
is the only container declaration in the default.xml override file you've provided, that isn't in vendor/magento/module-theme/view/frontend/layout/default.xml
. Also, there is a block named top.links
in this base default.xml file.
I'd first start by removing the <move element="copyright" destination="before.body.end" />
declaration, since the error is related to the moveElementInStructure. If that works, I'd investigate the existence of the copyright
element being referred to.
Otherwise, I'd look through the custom code for a customer
block to see if there's one in a layout file, if so, try and figure out why it's not behaving correctly. Next, I'd look through custom blocks to see if there's any block creation logic that's not behaving. Finally, I'd see if there was a layout which was in fact removing a customer
block, thereby causing this issue.
That's what comes to mind right now. It's hard to say more without more context.
I would be interested in your findings.
Good luck
Doc reference to the default.xml file:
basic layouts
UPDATE
There's a reference to these types of critical messages being logged while in developer mode here: Issue:#3507. There's also a recently opened issue here: Issue:#7715.
Best Answer
I eventually tracked this down to the following lines in my
app/design/frontend/vendor-name/theme-name/Magento_Theme/layout/default.xml
where I am adding the classesheader
andlinks
to the<ul>
tag for the panel header:I have no idea why this causes an error. I found the following does the same but without the error (I've highlighted the change from above in upper case although in reality it needs to be lower case). Again I have no idea why this is more successful!