• Resolved missyklotz

    (@missyklotz)


    WordPress 4.4.2
    AMP 0.3.2
    Glue for Yoast 0.3.2

    AMP pages aren’t working anymore, this is all that appears in each page’s source:

    <!doctype html>
    <html amp>
    <head>
    	<meta charset="utf-8">
    	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    	    <script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
    
    <!-- Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/wordpress-plugins/
    
    Content Delivery Network via Amazon Web Services: CloudFront
    
     Served from: www.[MY DOMAIN NAME].com @ 2016-03-30 17:52:40 by W3 Total Cache -->

    https://www.ads-software.com/plugins/amp/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Pretty obvious from that — W3 Total Cache is breaking the AMP pages.

    So, you need to disable caching for the /amp/ endpoint.

    Thread Starter missyklotz

    (@missyklotz)

    Do you know where I’m supposed to disable it? I’ve tried in Page Caching and Minify.

    Probably need to post that on the W3 Total Cache forum for help with that, as I don’t use W3 Total Cache, for our network. But there are some older threads on here about the issue — basically the cache is “rewriting” the page and breaking it. So, there must be some kind of setting, or custom function you can put in functions.php, or similar, to say ‘Hey you, W3, don’t mess with my amp page …” but no idea, sorry!

    Thread Starter missyklotz

    (@missyklotz)

    Thanks, I’ve got a thread going over there and as far as I can tell the /amp pages are excluded from caching, but I’m getting a 500 error on all the pages. W3 Total Cache hasn’t been updated in months and my AMP pages were working at one point. I’m not sure if W3 Total Cache is the problem? But not sure how to troubleshoot at this point. Any ideas?

    Thread Starter missyklotz

    (@missyklotz)

    I’ve disabled W3 Total Cache and this is all I’m getting in the source of /amp pages.

    <!doctype html>
    <html amp>
    <head>
    	<meta charset="utf-8">
    	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    	    <script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
    Thread Starter missyklotz

    (@missyklotz)

    Ok the problem was the Yoast Glue plugin. Marking this as resolved and moving over to their forum…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No Longer Working, Blank Page’ is closed to new replies.