Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1395303
    tma_dave
    Participant

    Hi,

    This was mentioned in a previous thread, but with no resolution.

    I’ve been using Automattic’s AMP plugin for a while, but after recently moving to the X theme, have decided to disable AMP. When I disable the Automattic AMP plugin, all posts on the site start showing no sidebar or content below the title. When I re-enable the plugin, posts display as normal. The problem is the same in Chrome and Edge browsers.

    It seems that pages (or at least, pages built with Cornerstone) aren’t affected by this. Screenshots attached. Demo URL is https://toomanyadapters.com/best-unlocked-mifi-devices/.

    Help?

    #1395684
    Rupok
    Member

    Hi there,

    This plugin should not control such thing as it’s not supposed to do that. If you could share your login credentials then we can try checking the issue by disabling the plugin if you want.

    Thanks!

    #1397992
    tma_dave
    Participant
    This reply has been marked as private.
    #1398197
    Nabeel A
    Moderator

    Hi again,

    Thank you for providing the credentials. This issue could be related to the cache, after deactivating the AMP plugin delete your site’s cache and since you’re using cloudflare too, clear cloudflare’s cache also and then reload the site.

    Let us know how this goes!

    #1398270
    tma_dave
    Participant

    Hi again,

    I tried purging my site cache and disabling Cloudflare entirely after disabling the AMP plugin, but unfortunately the problem remained (even in a different browser).

    #1398693
    Rupok
    Member

    Hi there,

    It would be best if you reach to the plugin support. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Thank you for your understanding.

    #1398805
    tma_dave
    Participant

    The plugin is developed by Automattic, the makers of WordPress. I’ll reach out to them and see if I can get an answer, although since the problem didn’t happen on my old theme when I disabled AMP during testing, they may just send me back to you.

    #1399040
    Joao
    Moderator

    Hi There,

    Let us know how it goes.

    Joao

    #1399050
    tma_dave
    Participant

    Just wanted to come back and close this out for the benefit of anyone who finds this thread later. I figured out what the problem was, and it was entirely my fault. 🙂

    I use a plugin to insert various things (opt in forms, ad code etc) in various places in posts. In some of those snippets, I was calling a php function exposed by the AMP plugin to check whether the page was an AMP page, but I wasn’t checking whether the function existed first.

    As a result, when I disabled the AMP plugin, the php call failed. Presumably, because this all happens before the post content is rendered, the php call failing threw an error and stopped the content from displaying.

    So, I added a check that the function exists, and I can now disable the AMP plugin just fine.

    #1399177
    Christian
    Moderator

    Glad you’ve sorted it out.

  • <script> jQuery(function($){ $("#no-reply-1395303 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>