Fixing Common AMP Plugin Compatibility Issues: A Troubleshooting Guide
Content
If you've installed the official AMP plugin for WordPress and are encountering unexpected behavior, you're not alone. A significant number of issues stem from compatibility conflicts with other themes and plugins. This guide will walk you through the most common problems and how to resolve them.
Why Do These Compatibility Issues Happen?
The AMP framework has strict standards to ensure fast, secure pages. It does not allow custom JavaScript, which is a common feature in many WordPress plugins and themes for adding functionality like sliders, accordions, and complex e-commerce features. When the AMP plugin encounters this non-compliant code, it can cause errors, broken features, or validation warnings.
Common Problems and Their Solutions
1. Theme and Plugin Conflicts
Many issues arise because a theme or plugin is not fully AMP-compatible.
- Symptoms: Publishing time discrepancies, broken sliders (like Revolution Slider), missing headers, or layout shifts. Some themes, like Jannah, may even force their own AMP templates, overriding the plugin's settings.
- Solution:
- Identify the source of the conflict using the plugin's built-in validation tools, which often list incompatible components.
- Check if updates are available for the conflicting theme or plugin that add AMP compatibility.
- If no update is available, contact the theme or plugin author directly and ask about AMP compatibility.
- As a last resort, consider switching to a known AMP-compatible theme like Astra or Neve.
2. WooCommerce and E-Commerce Issues
WooCommerce integration is a common pain point.
- Symptoms: Products not showing prices, 'add to cart' buttons not working, or form submission errors.
- Solution:
- It is highly recommended to disable AMP on cart and checkout pages entirely, as these complex processes often rely on non-AMP JavaScript.
- In WooCommerce settings, disable AJAX add-to-cart functionality and set cart behavior to redirect after adding a product.
- Be cautious with third-party 'AMP enhancer' plugins, as they can sometimes introduce their own errors and PHP conflicts.
3. JavaScript-Dependent Features Breaking
Features that rely on custom JavaScript will break on AMP pages.
- Symptoms: Accordions, tabs, sliders, and complex menus not functioning.
- Solution:
- Replace JavaScript-based components with AMP-compatible alternatives. For example, use the standard HTML
<details>and<summary>tags to create a simple accordion. - For sliders, check if the plugin developer provides an AMP component (e.g.,
amp-kaltura-player). Native WordPress<video>tags should convert to<amp-video>automatically. - Contact the feature's developer and request they implement an AMP-compatible version using approved AMP components.
- Replace JavaScript-based components with AMP-compatible alternatives. For example, use the standard HTML
4. Caching and Stale AMP Pages
Caching can cause outdated or broken AMP pages to be served.
- Symptoms: A site that appears 'stuck' in AMP mode even after disabling the plugin, or changes not appearing on the live site.
- Solution: After making any changes to your AMP setup or disabling the plugin, you must clear all caching layers. This includes your WordPress caching plugin (e.g., WP Rocket, Litespeed Cache), server-level cache, and any Content Delivery Network (CDN) cache like Cloudflare.
5. Setup and Permission Errors
- JSON Response Error: A 'not a valid JSON response' error during setup is often a conflict. Use the Health Check & Troubleshooting plugin to disable other plugins and switch to a default theme to identify the culprit.
- Permission Denied: Ensure you are logged in with a user account that has the Administrator role to access the AMP settings page.
General Troubleshooting Steps
- Isolate the Problem: Use the Health Check & Troubleshooting plugin to temporarily disable all other plugins and switch to a default theme (like Twenty Twenty-Three). If the problem resolves, reactivate your plugins and theme one by one to find the conflict.
- Check the AMP Validation Tool: The AMP plugin's validation tool in the WordPress admin will often provide specific details about validation errors and which theme or plugin is causing them.
- Reader Mode: If your theme is not compatible, using the plugin's 'Reader Mode' with a supported theme is a reliable way to serve valid AMP pages while keeping your main theme for non-AMP visitors.
By methodically working through these steps, you can diagnose and resolve the most frequent issues that prevent the AMP plugin from working smoothly on your WordPress site.
Related Support Threads Support
-
AMP 2.2.0 Products don’t show price either not moving add to Carthttps://wordpress.org/support/topic/amp-2-2-0-products-dont-show-price-either-not-moving-add-to-cart/
-
issues with ASTRA template and AMPhttps://wordpress.org/support/topic/issues-with-astra-template-and-amp/
-
AMP Errorhttps://wordpress.org/support/topic/amp-error-50/
-
Amp Error on Web story Amp version 2.2.4https://wordpress.org/support/topic/amp-error-on-web-story-amp-version-2-2-4/
-
Amp is not loading properly.https://wordpress.org/support/topic/amp-is-not-loading-properly/
-
AMP 2.2.3 Products are not moving add to Carthttps://wordpress.org/support/topic/amp-2-2-3-products-are-not-moving-add-to-cart/
-
AMP Breaks with Twentig Theme formatting Pluginhttps://wordpress.org/support/topic/amp-breaks-with-twentig-theme-formatting-plugin/
-
website stuck in AMP instead NON AMP versionhttps://wordpress.org/support/topic/website-stuck-in-amp-instead-non-amp-version-2/
-
AMP video issuehttps://wordpress.org/support/topic/amp-video-issue/
-
About AMP ecosystem pagehttps://wordpress.org/support/topic/about-amp-ecosystem-page/
-
Issues AMP Settinghttps://wordpress.org/support/topic/issues-amp-setting/
-
After updating wordpress 4.6+ amp breakshttps://wordpress.org/support/topic/after-updating-wordpress-4-6-amp-breaks/
-
AMP issue with Avada/Fusion builderhttps://wordpress.org/support/topic/amp-issue-with-avada-fusion-builder/
-
AMP – Transitional Modehttps://wordpress.org/support/topic/amp-transitional-mode/
-
some code on the top of my websitehttps://wordpress.org/support/topic/some-code-on-the-top-of-my-website/
-
AMP Not Working For Woocommercehttps://wordpress.org/support/topic/amp-not-working-for-woocommerce/
-
my Am plugin is not helping me wellhttps://wordpress.org/support/topic/my-am-plugin-is-not-helping-me-well/
-
Who can help me test my site and tell me if the site can add AMP plugin?https://wordpress.org/support/topic/who-can-help-me-test-my-site-and-tell-me-if-the-site-can-add-amp-plugin/
-
Site broken even after restoring.https://wordpress.org/support/topic/site-broken-even-after-restoring/
-
AMP settings error: SOmething went wronghttps://wordpress.org/support/topic/amp-settings-error-something-went-wrong/
-
My GeneratePress Theme Isn’t Competible with AMPhttps://wordpress.org/support/topic/my-generatepress-theme-isnt-competible-with-amp/
-
AMP-Version not shown after updatehttps://wordpress.org/support/topic/amp-version-not-shown-after-update/
-
failed to prepare AMP pagehttps://wordpress.org/support/topic/failed-to-prepare-amp-page-4/
-
woo cart issueshttps://wordpress.org/support/topic/woo-cart-issues/
-
Revolution Slider Broken After Install AMPhttps://wordpress.org/support/topic/revolution-slider-broken-after-install-amp/
-
AMP Astra Themehttps://wordpress.org/support/topic/amp-astra-theme/
-
Product not moving to carthttps://wordpress.org/support/topic/product-not-moving-to-cart/
-
AMP plugin causing display issues on homepagehttps://wordpress.org/support/topic/amp-plugin-causing-display-issues-on-homepage/
-
The text “lang=”en”>” appears when using AMPhttps://wordpress.org/support/topic/the-text-langen-appears-when-using-amp/
-
Failed to Prep AMP Pageshttps://wordpress.org/support/topic/failed-to-prep-amp-pages/
-
How to resolve the Error Sources (289)https://wordpress.org/support/topic/how-to-resolve-the-error-sources-289/
-
AMP Not Valid on Products, Templates is already onhttps://wordpress.org/support/topic/amp-not-valid-on-products-templates-is-already-on/
-
Amp errorhttps://wordpress.org/support/topic/amp-error-61/
-
Incorrect published time on Amp versionhttps://wordpress.org/support/topic/incorrect-published-time-on-amp-version/
-
Errors in installation and errors in the performance of the pagehttps://wordpress.org/support/topic/errors-in-installation-and-errors-in-the-performance-of-the-page/
-
AMP must be disabled to update my Travel Extend Themehttps://wordpress.org/support/topic/amp-must-be-disabled-to-update-my-travel-extend-theme/
-
AMP problems…https://wordpress.org/support/topic/amp-problems-3/
-
Products disapear on carthttps://wordpress.org/support/topic/products-disapear-on-cart/
-
AMP plugin with Astra themehttps://wordpress.org/support/topic/amp-plugin-with-astra-theme/
-
Why is my page not working well with amphttps://wordpress.org/support/topic/why-is-my-page-not-working-well-with-amp/
-
AMPhttps://wordpress.org/support/topic/amp-86/
-
Accordion not workinghttps://wordpress.org/support/topic/accordion-not-working-16/
-
AMPs 2.4.0 and 2.4.1 settings and onboarding not workinghttps://wordpress.org/support/topic/amps-2-4-0-and-2-4-1-settings-and-onboarding-not-working/
-
I can’t access the pluginhttps://wordpress.org/support/topic/i-cant-access-the-plugin-2/
-
Failed to prepare AMP pagehttps://wordpress.org/support/topic/failed-to-prepare-amp-page-3/
-
Post – AMP version looks great but won’t stayhttps://wordpress.org/support/topic/post-amp-version-looks-great-but-wont-stay/
-
AMP does’t load properlyhttps://wordpress.org/support/topic/amp-doest-load-properly/
-
site not opening since using amphttps://wordpress.org/support/topic/site-not-opening-since-using-amp/
-
Need Someone to Help with SEO Setuphttps://wordpress.org/support/topic/need-someone-to-help-with-seo-setup/
-
I am getting a lot of AMP errorshttps://wordpress.org/support/topic/i-am-getting-a-lot-of-amp-errors/
-
AMP plugin affected themehttps://wordpress.org/support/topic/amp-plugin-affected-theme/
-
AMP Subscription not Workinghttps://wordpress.org/support/topic/amp-subscription-not-working/
-
product pages They don’t show price, menu, etchttps://wordpress.org/support/topic/product-pages-they-dont-show-price-menu-etc/
-
Products don’t show price either not moving add to Carthttps://wordpress.org/support/topic/products-dont-show-price-either-not-moving-add-to-cart/
-
Website is not loading AMP properly.https://wordpress.org/support/topic/website-is-not-loading-amp-properly/
-
Unable to change Template modehttps://wordpress.org/support/topic/unable-to-change-template-mode/
-
AMP Plugin is not working in my sitehttps://wordpress.org/support/topic/amp-plugin-is-not-working-in-my-site/
-
AMP giving Error on convert kit formhttps://wordpress.org/support/topic/amp-giving-error-on-convert-kit-form/
-
How to translate AMPhttps://wordpress.org/support/topic/how-to-translate-amp/
-
lang=”pt-BR”> appear when use AMPhttps://wordpress.org/support/topic/langpt-br-appear-when-use-amp/
-
problem with form on all post, access deniedhttps://wordpress.org/support/topic/problem-with-form-on-all-post-access-denied/
-
Amp Search Cansole Isueehttps://wordpress.org/support/topic/amp-search-cansole-isuee/
-
AMP not working on posthttps://wordpress.org/support/topic/amp-not-working-on-post/
-
One Push Signal Not Workinghttps://wordpress.org/support/topic/one-push-signal-not-working/
-
I keep on getting the AMP issues on my websitehttps://wordpress.org/support/topic/i-keep-on-getting-the-amp-issues-on-my-website/
-
The response is not a valid JSON response.https://wordpress.org/support/topic/the-response-is-not-a-valid-json-response-43/
-
The header is not displayed correctlyhttps://wordpress.org/support/topic/the-header-is-not-displayed-correctly/
-
official amp enhancer alternative – Appears that AMP is not compatable.https://wordpress.org/support/topic/official-amp-enhancer-alternative-appears-that-amp-is-not-compatable/
-
AMP and Mathhttps://wordpress.org/support/topic/amp-and/
-
Accordion is not working on AMP pageshttps://wordpress.org/support/topic/accordion-is-not-working-on-amp-pages/
-
Website break after updating to WordPress 6.7.2https://wordpress.org/support/topic/website-break-after-updating-to-wordpress-6-7-2/
-
Угроза подмены содержимого сайтаhttps://wordpress.org/support/topic/%d1%83%d0%b3%d1%80%d0%be%d0%b7%d0%b0-%d0%bf%d0%be%d0%b4%d0%bc%d0%b5%d0%bd%d1%8b-%d1%81%d0%be%d0%b4%d0%b5%d1%80%d0%b6%d0%b8%d0%bc%d0%be%d0%b3%d0%be-%d1%81%d0%b0%d0%b9%d1%82%d0%b0/
-
AMP not supported oceanWP themehttps://wordpress.org/support/topic/amp-not-supported-oceanwp-theme/
-
Service AMP Unavailablehttps://wordpress.org/support/topic/service-amp-unavailable/