• Resolved vigneshkrishnamoorthy

    (@vigneshkrishnamoorthy)


    Error code: ATTR_REQUIRED_BUT_MISSING

    Missing attributes: src

    Node name: img

    Parent element: p

    I get this validation error and it says Invalid markup removed.

    How do I fix this?

    I have the amp plugin and WordPress running the latest version

    Help me.

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vigneshkrishnamoorthy

    (@vigneshkrishnamoorthy)

    Here is the screenshot of the issue https://prnt.sc/sqzorh

    Plugin Author Weston Ruter

    (@westonruter)

    In the non-AMP version of the page, you can see this in the source code:

    <p class="productimage"><img /><img class="aligncenter size-medium wp-image-3609" title="sennheiser-hd-4-50-btnc" src="https://gizmofeatures.com/wp-content/themes/breek/assets/images/transparent.gif" data-lazy="true" data-src="https://gizmofeatures.com/wp-content/uploads/2019/12/sennheiser-hd-4-50-btnc-216x300.jpeg" alt="sennheiser-hd-4-50-btnc" width="216" height="300" srcset="https://gizmofeatures.com/wp-content/uploads/2019/12/sennheiser-hd-4-50-btnc-216x300.jpeg 216w, https://gizmofeatures.com/wp-content/uploads/2019/12/sennheiser-hd-4-50-btnc-288x400.jpeg 288w, https://gizmofeatures.com/wp-content/uploads/2019/12/sennheiser-hd-4-50-btnc.jpeg 300w" sizes="(max-width: 216px) 100vw, 216px" /></p>

    Notice the <img />. This is invalid HTML, and so AMP plugin is not able to convert it to <amp-img>. Remove that from the page and the validation error will go away.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ATTR_REQUIRED_BUT_MISSING’ is closed to new replies.