0

I have a problem when i enable developer mode:
enter image description here

This is my default.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
  <!–referenceBlock name="privacy-policy-link">
    <referenceBlock name="footer_links">
        <block class="Magento\Framework\View\Element\Html\Link\Current" name="privacy-policy-link">
            <arguments>
               <argument name="label" xsi:type="string">Privacy Policy</argument> 
                <argument name="path" xsi:type="string">privacy-policy-cookie-restriction-mode</argument>               
            </arguments>
        </block>
    </referenceBlock>
</body>

t Thanks!

  • can you please run setup:di:compile. when you can get to find an error, – ARUNPRABAKARAN M Apr 19 at 15:18
0

The comment tag for XML format is incorrect. See the example below.

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
  <!-–referenceBlock name="privacy-policy-link">-->
    <referenceBlock name="footer_links">
        <block class="Magento\Framework\View\Element\Html\Link\Current" name="privacy-policy-link">
            <arguments>
               <argument name="label" xsi:type="string">Privacy Policy</argument> 
                <argument name="path" xsi:type="string">privacy-policy-cookie-restriction-mode</argument>               
            </arguments>
        </block>
    </referenceBlock>
</body>
  • Thank's for your reply, now when i try to clean cache in backend , i have some errors:ibb.co/VtPHkfk – KernelPaniC Apr 19 at 13:30
  • It looks like the template was deleted or there are no read permissions on it. – George M Apr 19 at 14:11
0

Validate XML

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="footer_links">
            <block class="Magento\Framework\View\Element\Html\Link\Current" name="privacy-policy-link">
                <arguments>
                    <argument name="label" xsi:type="string">Privacy Policy</argument>
                    <argument name="path" xsi:type="string">privacy-policy-cookie-restriction-mode</argument>
                </arguments>
            </block>
        </referenceBlock>
    </body>
</page>
  • Thank's for your reply, now when i try to clean cache in backend , i have some errors:ibb.co/VtPHkfk – KernelPaniC Apr 19 at 13:30

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.