• Resolved japohim

    (@japohim)


    I have recently installed your plugin and its working fine. I noticed that all my post urls is displaying two related errors when I try to validate it. I also have the same errors in search console which has affected over 1, 000 post and I am afraid I will loose all my traffick.

    The errors displayed goes like this:

    The attribute ‘public’ may not appear in tag ‘html !doctype’.
    he attribute ‘system’ may not appear in tag ‘html !doctype’.

    It further highlights the error in this html:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt;

    I checked my WordPress text editor and there is nothing like that. I do not know where and how to edit the html document and I need your help.

    From my end I deactivated all my plugins except AMP and my normal post and the error was still showing. I have also suppressed all plugins which may have issues with the AMP.

    Thank you

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    What template mode did you use? Standard or Transitional?

    Thread Starter japohim

    (@japohim)

    I used transitional.

    Thank you for the quick response

    Plugin Author Weston Ruter

    (@westonruter)

    I’ve been able to reproduce the issue.

    I’ve filed a bug to fix this in the next patch version of the plugin: https://github.com/ampproject/amp-wp/issues/5462

    The issue is that your theme likely has a header.php that starts with:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    The AMP plugin is not correctly converting this to <!DOCTYPE html> as AMP requires. If you make this change in your theme then the issue should go away. Otherwise, we’ll be fixing this in the AMP plugin for the next release.

    Thread Starter japohim

    (@japohim)

    Thank you.

    Really appreciate your support

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The attribute ‘public’ may not appear in tag ‘html !doctype’ is closed to new replies.