1)Invalid inline script
Arbitrary JavaScript is not allowed in AMP. You cannot use JS <script> tags unless they are for loading AMP components (which the AMP plugin will add for you automatically). In order for a page to be served as AMP, the invalid JS code must be removed from the page. Learn more about how AMP works. As an alternative to using custom JS, please consider using a pre-built AMP functionality, including actions and events (as opposed to JS event handler attributes like onclick) and the amp-bind component; you may also add custom JS if encapsulated in the amp-script.
If you remove the invalid markup then it will not block this page from being served as AMP. Note that you need to check what impact the removal of the invalid markup has on the page to see if the result is acceptable. If you keep the invalid markup, then the page will not be served as AMP.
Error code
DISALLOWED_TAG
Element name
script
————————————-
2) Excessive CSS
AMP allows you to style your pages using CSS in much the same way as regular HTML pages, however there are some restrictions. Nevertheless, the AMP plugin automatically inlines external stylesheets, transforms !important qualifiers, and uses tree shaking to remove the majority of CSS rules that do not apply to the current page. Nevertheless, AMP does have a 75KB limit and tree shaking cannot always reduce the amount of CSS under this limit; when this happens an excessive CSS error will result.
If you remove the invalid markup then it will not block this page from being served as AMP. Note that you need to check what impact the removal of the invalid markup has on the page to see if the result is acceptable. If you keep the invalid markup, then the page will not be served as AMP.
Error code
STYLESHEET_TOO_LONG
Node name
style
————————————–
3) Invalid script: tagdiv_theme.min.js
Arbitrary JavaScript is not allowed in AMP. You cannot use JS <script> tags unless they are for loading AMP components (which the AMP plugin will add for you automatically). In order for a page to be served as AMP, the invalid JS code must be removed from the page. Learn more about how AMP works. As an alternative to using custom JS, please consider using a pre-built AMP functionality, including actions and events (as opposed to JS event handler attributes like onclick) and the amp-bind component; you may also add custom JS if encapsulated in the amp-script.
If you remove the invalid markup then it will not block this page from being served as AMP. Note that you need to check what impact the removal of the invalid markup has on the page to see if the result is acceptable. If you keep the invalid markup, then the page will not be served as AMP.
Error code
DISALLOWED_TAG
Invalid markup
<script … >
Element attributes
type text/javascript
src https://sp24news.com/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js
Element name
script
Parent element
body
4)
Illegal CSS at-rule: @-moz-document
Error code
CSS_SYNTAX_INVALID_AT_RULE
At-rule
-moz-document
Element attributes
rel stylesheet
id tdb_front_style-css
href https://sp24news.com/wp-content/plugins/td-cloud-library/assets/css/tdb_less_front.css
type text/css
media all
Node name
link
Hi,
Those look like issues with AMP. Are you using the mobile theme + AMP plugins? https://tagdiv.com/amp-newspaper-theme/ If there are issues, have you checked if they are solved by deactivating non-theme plugins and AMP? Usually plugins cause issues with AMP and validation issues.
If you tried that, we could take a closer look. You can send us an email at contact@tagdiv.com and provide admin login. Include a link to this topic in the email.
Thank you!
