0

A validation error occured in an XML layout file

<block class="Magento\Cms\Block\Block" name="gbp_success_page-block">

        <container name="gbp-fullwidth-hero-wrapper" as="heroWrapper" label="Hero Wrapper" htmlTag="div" htmlClass="gbp-fullwidth-hero-wrapper" before="main.content">
          <block class="Magento\Cms\Block\Block" name="gbp-fullwidth-hero-block" ifconfig="theme/general/enable_fullwidth_hero">
            <arguments>
                <argument name="block_id" xsi:type="string">gbp_fullwidth_hero</argument>
            </arguments>
          </block>
        </container>

I do not see anything wrong with this:

<?xml version="1.0"?> <body> <referenceContainer name="content"> <block class="Magento\Cms\Block\Block" name="gbp_success_page-block"> <arguments> <argument name="block_id" xsi:type="string">gbp_success_page</argument> </arguments> </block> </referenceContainer> </body>
  • what is the error , could you share the screenshot or complete error message ? – Naveed Asim Oct 19 '18 at 18:54
1

can you try this?

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceContainer name="content"> 
        <block class="Magento\Cms\Block\Block" name="gbp_success_page-block">
            <arguments>
                <argument name="block_id" xsi:type="string">gbp_success_page</argument>
            </arguments>
        </block>
    </referenceContainer>
</body>
</page>
  • correct, i was missing this line. – Supplement Oct 24 '18 at 14:50
  • <page xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> – Supplement Oct 24 '18 at 14:50

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.