• Resolved deborah86

    (@deborah86)


    I am getting the following errors in the console when I use the AMP plugin. The plugin is not working correctly on my website. I believe the console errors could be a factor.

    Failed to load resource: the server responded with a status of 404 ()
    amp.js:175 Powered by AMP ? HTML – Version 2101230412005 https://lazyjack.blog/
    lazyjack.blog/:1 Access to fetch at ‘https://www.googletagmanager.com/amp.json?id=GTM-57ZFVVR&__amp_source_origin=https%3A%2F%2Flazyjack.blog’ from origin ‘https://lazyjack.blog’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
    https://www.googletagmanager.com/amp.json?id=GTM-57ZFVVR&__amp_source_origin=https%3A%2F%2Flazyjack.blog:1 Failed to load resource: net::ERR_FAILED
    log.js:258 [AmpAnalytics <unknown id>] Error loading remote config: https://www.googletagmanager.com/amp.json?id=GTM-57ZFVVR Error: XHR Failed fetching (https://www.googletagmanager.com/&#8230;): Failed to fetch???
    at hb (log.js:710)
    at db.g.createExpectedError (log.js:370)
    at xhr-impl.js:109
    at async Promise.all (/index 0)
    fb @ log.js:258
    log.js:258 [AmpAnalytics <unknown id>] No request strings defined. Analytics data will not be sent from this page.
    fb @ log.js:258
    log.js:258 [AmpAnalytics <unknown id>] No triggers were found in the config. No analytics data will be sent.
    fb @ log.js:258
    The FetchEvent for “https://lazyjack.blog/” resulted in a network error response: an object that was not a Response was passed to respondWith().

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @deborah86

    Thanks for the support topic, can you please confirm that you have created and published the tag in the tagmanager settings.

    You can use refer to this guide: https://support.google.com/tagmanager/answer/9205783?hl=en

    Thread Starter deborah86

    (@deborah86)

    Thanks for the support topic, can you please confirm that you have created and published the tag in the tag manager settings.

    Yes. I can confirm.

    Other errors I am facing. AMP refuses to validate URLs. I get the following error:

    Failed to fetch URL to validate. cURL error 28: Operation timed out after 15001 milliseconds with 0 bytes received. Please check your Site Health to verify it can perform loopback requests. If you are stuck, please search the support forum for possible related topics, or otherwise start a new support topic including the error message, the URL to your site, and your active theme/plugins. Please include your Site Health Info.

    I get the following errors in the console on (lazyjack.blog URL only):
    Failed to load resource: net::ERR_BLOCKED_BY_CLIENT cdn.ampproject.org/rtv/012101300534005/v0/analytics-vendors/gtag.json:1

    f3f38.js?d2075:9 [AmpAnalytics <unknown id>] Error loading vendor config: https://cdn.ampproject.org/rtv/012101300534005/v0/analytics-vendors/gtag.json Error: XHR Failed fetching (https://cdn.ampproject.org/&#8230;): Failed to fetch???
    at hb (f3f38.js?d2075:11)
    at db.g.createExpectedError (f3f38.js?d2075:9)
    at f3f38.js?d2075:63
    at async Promise.all (/index 1)
    fb @ f3f38.js?d2075:9

    Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
    https://www.googletagmanager.com/amp.json?id=GTM-57ZFVVR&__amp_source_origin=https%3A%2F%2Flazyjack.blog:1

    f3f38.js?d2075:9 [AmpAnalytics <unknown id>] Error loading remote config: https://www.googletagmanager.com/amp.json?id=GTM-57ZFVVR Error: XHR Failed fetching (https://www.googletagmanager.com/&#8230;): Failed to fetch???
    at hb (f3f38.js?d2075:11)
    at db.g.createExpectedError (f3f38.js?d2075:9)
    at f3f38.js?d2075:63
    at async Promise.all (/index 0)
    fb @ f3f38.js?d2075:9

    I am getting these warnings in the console (all URLs):
    The resource https://cdn.ampproject.org/v0.js was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as value and it is preloaded intentionally.

    Plugin Support Milind More

    (@milindmore22)

    Hello @deborah86

    It seems the tag manager issue is resolved. I don’t see any errors in the browser console.

    please confirm that your site can perform loopback request by following steps as shown in this screenshot

    Also, your AMP page seems to be invalid, mainly because of combining and minifying js files with the LiteSpeed plugin, please disable that feature in the plugin

    I will recommend using the WP Rocket plugin which is fully AMP compatible

    Thread Starter deborah86

    (@deborah86)

    please confirm that your site can perform loopback request by following steps as shown in this screenshot

    I am seeing: your site could not complete a loopback request
    Performance
    Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.

    The loopback request to your site failed, this means features relying on them are not currently working as expected.
    Error: cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received (http_request_failed)

    Also, your AMP page seems to be invalid, mainly because of combining and minifying js files with the LiteSpeed plugin, please disable that feature in the plugin

    The Litespeed plugin features not running on the amp pages. The setting is turned off within the Litespeed plugin. I am using the Litespeed server. The Litespeed plugin is for the server.

    Thread Starter deborah86

    (@deborah86)

    I removed the AMP plugin. It was causing too many issues with other plugins I had installed on my website. Plus, it was causing issues with the Twenty-Twenty theme. It is taking me too much time to get my website working with the plugin. Plus, the new Google Analytics and Google Tage manager are not fully supported.

    Thank you for all your help. My blog is not a news blog so I don’t think the increase in speed will benefit me much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Console Errors and Plugin Not Working Correctly’ is closed to new replies.