X hide

Magento Accelerated Mobile Pages v1.x Troubleshooting

From Plumrocket Documentation



If the AMP validation failed - please check here for the possible known reasons and solutions to your issues. Please note that this list does not include all the possible issues, as they are being added upon submission.


AMP - "Force AMP On Mobile Devices" and Amasty_FPC (issue with page caching)


In order to use "Force AMP On Mobile Devices" option for Accelerated Mobile Pages Extension by Plumrocket, whereas Amasty FPC module is used for caching pages at your store - change Amasty FPC extension settings in a particular way, so for the desktop and mobile pages cache can be formed separately.

1. Go to the main menu and select System > Configuration.
2. Select "Default config" for "Current Configuration Scope" option in the left menu sidebar.
3. Navigate to "Amasty" menu in the left sidebar and select "Full Page Cache" extension.
4. In the module settings select "Mobile Design" option and enable it by choosing "Yes".
5. Save your settings by pressing "Save Config" button.
6. Clear Magento Cache - go to System > Cache Management > press "Flush Magento Cache".

7 magento amp validate.jpg


AMP iframe doesn't load on AMP product pages

In case the alias of your domain name is not setup with "www" - AMP Iframe will not load on your AMP pages.

1.The following error displays when AMP iframe doesn't load on AMP product pages.

Magento amp iframe not loading.jpg


You need to configure the alias of your domain name with "www" - in this way the iframe will be loading properly.


AMP doesn't work when "LESTI FPC" is enabled

Solution: In order for the AMP extension to work properly with Lesti FPC - please perform the following steps.

1. Go to FPC in Admin Panel > System > Configuration > System > Lesti FPC.
2. Input "amp" in the "Uri Params" text area.

Information Sign sm.png Step-by-Step action:
  1. After you've added the required data, the field should look like this.

1 magento amp troubleshppting.jpg

Attention green.png Important Information:

Make sure to save your changes and clear Magento cache.


AMP CDN is not accessible

This can happen when "https" protocol is enabled for all the pages on your website.

Attention green.png Important information!
Use this solution ONLY in case your secure URLs & unsecure URLs use the "https" protocol. If otherwise - please do NOT add this code into index.php, as this may result in your AMP pages to not display on Magento v1.9.x

Solution: Follow these steps in order for AMP CDN to get an access to a page through "http".

1.Go to Magento base directory and open "index.php" file.

2. Before the line:

 define('MAGENTO_ROOT', getcwd());

Enter the following code:

 if (isset($_GET['amp']) && $_GET['amp'] == 1) {
 $_SERVER['HTTPS'] = 'on';

3. Save the file with your changes.


Incorrect "script" tags placement

In some cases AMP is not valid because the script tags are in the "body" part of the HTML page.
This can be caused by the third-party extension that moves "script" tags from "head" to the end of "body" part of the HTML page.


You need to set the third-party extension in the specific way, so it will not be running on AMP pages. These configurations can be performed in the extension's settings or you can make minor code modifications.
For this purpose contact your third-party extension developers or our support service.


AMP Pages validation fail due to custom changes in "robots.txt" file

In some cases your AMP pages will not be validated - it can be due to custom changes in "robots.txt" file.

1.Enter your website URL with GET parameter "?amp=1" into this field and run the validation.
2.If you receive the following error, this means that an access for Google crawlers is restricted in the "robots.txt" file on the server.

Amp search unavailable robots.jpg


Remove the restrictions for Google crawlers on your server in order your AMP pages to be parsed.


404 error while filtering categories in the catalog

In case you have 404 error while filtering categories in the catalog or you have incorrect URL, e.g. "category-path/attribute-value&=1.html" and you have MageWorx/SeoFriendlyLN extension installed, follow the instructions below to fix it.

1. Copy the following file:




2. Edit the file, and find the following code in line #71:

$url = $catpart . $layeredpart . $suffix;

3. Replace it with the following code:

* Fix for AMP
if (strpos($catpart, '&=1') === false) {
$url = $catpart . $layeredpart . $suffix;
} else {
$url = str_replace('&=1', '', $catpart) . $layeredpart . $suffix . '?amp=1';


Google Search Console does not display AMP pages indexed

If you see this notice: "We did not find any Accelerated Mobile Pages in your site" and Magento AMP extension was installed more than 1-2 weeks ago, you might have set some rules in the ".htacess" or "robots.txt" files on your server that do not permit indexing by Google crawlers.

Search-console-amp troubleshooting.jpg


In this case you need you to make the following steps:
1. Check the rules set in the ".htacess" or "robots.txt" files to make sure that indexing is permitted.
2. Go to Google Search Console > Crawl > Fetch as Google, and check in the "Status" column. The pages indexed should be marked with green checkmark and status "Complete". If you see any other statuses in the list - please inspect the status report by clicking on the page with issue.

Information Sign sm.png Example:
  1. Here are the pages with "Not found" status.

Amp troubleshooting google-search console.jpg

Accelerated Mobile Pages Extension for Magento Accelerated Mobile Pages Extension for Magento

Buy Magento Accelerated Mobile Pages Extension on Plumrocket Store
Click below to check key features of this extension, view live demo and screenshots: