• I am getting the following errors and I don’t know how to fix them

    The attribute ‘href’ in tag ‘link rel=stylesheet for fonts’ is set to the invalid value wp-includes/css/dist/block-library/style.min.css?ver=5.5′.
    line 37, column 0

    The mandatory attribute ‘amp-custom’ is missing in tag ‘style amp-custom’.
    line 38, column 0

    The attribute ‘href’ in tag ‘link rel=stylesheet for fonts’ is set to the invalid value ‘wp-includes/css/dist/block-library/theme.min.css?ver=5.5’.
    line 41, column 0

    The mandatory attribute ‘amp-custom’ is missing in tag ‘style amp-custom’.
    line 42, column 1

    The mandatory attribute ‘amp-custom’ is missing in tag ‘style amp-custom’.
    line 546, column 1

    The tag ‘img’ may only appear as a descendant of tag ‘noscript’. Did you mean ‘amp-img’?
    line 578, column 3

    The tag ‘audio’ may only appear as a descendant of tag ‘noscript’. Did you mean ‘amp-audio’?
    line 581, column 0

    The parent tag of tag ‘style amp-custom’ is ‘a’, but it can only be ‘head’.
    line 583, column 282

    The tag ‘amp-analytics’ requires including the ‘amp-analytics’ extension JavaScript.
    line 608, column 1

    The tag ‘amp-analytics extension .json script’ requires including the ‘amp-analytics’ extension JavaScript.
    line 608, column 57

    The mandatory tag ‘noscript enclosure for boilerplate’ is missing or incorrect.
    line 610, column 7

    The mandatory tag ‘head > style[amp-boilerplate]’ is missing or incorrect.
    line 610, column 7

    The mandatory tag ‘noscript > style[amp-boilerplate]’ is missing or incorrect.
    line 610, column 7

    The mandatory tag ‘amphtml engine v0.js script’ is missing or incorrect.
    line 610, column 7

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

    (@westonruter)

    Please open a support topic and provide the URL for an AMP page on your site that has this problem.

    Plugin Author Weston Ruter

    (@westonruter)

    Your support topic seems to have been deleted for some reason.

    In any case, it appears you have a plugin conflict. I’ve seen similar behavior with the Cache Enabler plugin in the past.

    Thread Starter Tee

    (@teenow)

    what do you suggest i do? I have deactivated all my plugins and left only amp but the issue is still there.

    Plugin Author Weston Ruter

    (@westonruter)

    Please check your PHP error log.

    You can make sure the error log is enabled by adding this to your wp-config.php:

    define( 'WP_DEBUG_LOG', true );

    For more, see https://www.ads-software.com/support/article/debugging-in-wordpress/#wp_debug_log

    Thread Starter Tee

    (@teenow)

    it didn’t work

    Plugin Author Weston Ruter

    (@westonruter)

    I’m not sure then. Either there is a fatal PHP error which is preventing the AMP page from being processed, or you have some caching layer that is serving a non-processed AMP page. You can submit your Site Health info via a private form.

    Thread Starter Tee

    (@teenow)

    I have another issue and I will like to hear your input.. amp ads are showing on my desktop amp pages but not showing on my amp mobile pages what do you think could cause that?

    @teenow While it may be more of a question for the AdSense product experts using the Help Center I can inspect your current setup if you’d like to open a support topic while sharing your Site Health info using this form.

    Thread Starter Tee

    (@teenow)

    @jamesosborne I submitted it yesterday don’t know if you saw it

    @teenow I’ve checked your site now and I can confirm the Auto ads for AMP code is placed on your site. If you’ve recently just added the snippets it may just be a matter of waiting a couple of days. As there can be a number of reasons why ads are not appearing in your AMP URLs the AdSense Help Center should be able to assist.

    Note also that as you’re using AMP in legacy reader mode your page content isn’t as substantial, with no sidebars or other widget positions. The AdSense logic may not find any suitable placements for Auto ads in your AMP URLs, in particular for URLs that have very little content. Most URLs I’ve checked have a couple few sentences of content. You may have better luck using one of the available core WordPress reader mode themes.

    Thread Starter Tee

    (@teenow)

    I will just like to ask this. Is there going to be a time when reader mode can activate category pages for amp or we will have to pick other options for amp to show on category pages??

    Plugin Author Weston Ruter

    (@westonruter)

    You can already use Reader mode with category pages now as long as you select a Reader theme other than “AMP Legacy”.

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