I have tried this module on four websites. The pages are coming up good with AMP.

I even checked the urls with ?amp&warnfix and they show that AMP is fine. Get the following message.

AMP-HTML Validation Issues and Fixes
-------------------------------------
PASS

Still, Google isn't indexing the pages. Google shows errors. These errors are coming on 1500 plus page. Five different types of errors are coming.

I haven't enabled any blocks on AMP pages, only we are showing content for the story.

I can show screenshots if they would be helpful in checking more about this issue.

Errors

1. The parent tag of tag 'style amp-custom' is 'body', but it can only be 'head'.
2. The tag 'script' is disallowed except in specific forms.
3. The tag 'noscript > style : boilerplate' is missing or incorrect, but required by 'head > style : boilerplate'.
4. The mandatory tag 'noscript > style : boilerplate' is missing or incorrect.
The mandatory tag 'amphtml engine v0.js script' is missing or incorrect.
5. Error in required structured data element

Comments

gdtechindia created an issue. See original summary.

RainbowArray’s picture

The warnfix feedback provides info on whether the body content is valid when processed through the AMP library. It sounds like the issue is related to HTML outside of the body content area.

Are you using the ExAMPle Subtheme? Or a custom theme with AMP Base theme as the base for the custom theme? The latest beta of the AMP Theme had some fixes that addressed error messages similar to what you listed. If you have a custom theme, you might need to make some updates to replicate those fixes.

sidharth_k’s picture

Status: Active » Closed (fixed)

This was due to https://github.com/Lullabot/amp-library/issues/53

This should be fixed. Closing ticket. Please re-open if you still face problems.

sidharth_k’s picture

Assigned: Unassigned » sidharth_k
sidharth_k’s picture

Please note:

1. The parent tag of tag 'style amp-custom' is 'body', but it can only be 'head'.
2. The tag 'script' is disallowed except in specific forms.
3. Error in required structured data element

These look like problems with your own html... maybe you're modifying the base theme and adding some HTML that is not required by the AMP standard?

RainbowArray’s picture

Status: Closed (fixed) » Closed (duplicate)