amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

AMP Pages not loading on Iphone on Google Search App

Open hisureshkumar opened this issue 5 years ago • 30 comments

I am facing peculiar problem. I posted this on wordpress support forum and I heard this is known problem with Google Search App and asked me to post it on Github.

I have installed AMP two weeks back on my blog myinvestmentideas.com

  1. When I go through google search (through Google search App), the AMP pages are not loading on some mobiles. e.g. Iphone. When I type myinvestmentideas in google search option and my website appears on first row

  2. It show the AMP icon in google search results and when I click it, it takes to blank page of website.

  3. When I view the URL of the blank screen, it shows the website url, but without AMP (amp/ not in link).

  4. If I click on URL link and say “Search” button in iphone, AMP pages load directly from website (not from google cache).

This is not just happening only for home page of URL, but with all AMP pages. None of the AMP pages are opening on iphone if I go through google search (I have Iphone 11 and latest softwares installed).

Strangely, if I open Iphone Safari or Google Chrome, these are working fine.

I am yet to check various android mobile phones if we have same issue.

I have cleared cache / history / restarted mobile couple of times to check if this caching issue, but still not working

I am attaching screenshots for quick reference. https://imgur.com/a/KLMld3R

SERP Blank page Location
image image image

Let me know if there is any solution for this problem, if not, pls address it in future versions of AMP

hisureshkumar avatar May 23 '21 06:05 hisureshkumar

Thanks for posting here. This may end up being an issue with the Google Search app for iPhone, but I can't confirm since I don't have an iPhone.

westonruter avatar May 23 '21 17:05 westonruter

@jridgewell – this appears to be a runtime level question, but if you'd like someone else to take a look let me know.

kristoferbaxter avatar May 24 '21 18:05 kristoferbaxter

Another apparent instance of this issue: https://wordpress.org/support/topic/my-amp-urls-return-a-blank-screen-when-i-click-on-google-serps-mobile/

westonruter avatar May 29 '21 17:05 westonruter

Adding Erwin and Greg, as this appears to be more than a singular document.

Also, bumping priority to P1.

kristoferbaxter avatar May 29 '21 23:05 kristoferbaxter

Looking into this

erwinmombay avatar Jun 04 '21 15:06 erwinmombay

@hisureshkumar would you mind confirming this is still an issue? i tried reproducing the steps and myinvestmentideas.com seems to be loading for me

erwinmombay avatar Jun 24 '21 17:06 erwinmombay

also if possible would you mind giving me your iOS version as well as the version of the the Google Search App

to get the iOS version: Settings > General > About > Software Version

to get the Google Search App version: Settings > General > iPhone Storage > Google > Version

erwinmombay avatar Jun 24 '21 17:06 erwinmombay

IOS verison 14.6Google Search App 159.1 On Thursday, June 24, 2021, 11:16:17 PM GMT+5:30, erwin mombay @.***> wrote:

also if possible would you mind giving me your iOS version as well as the version of the the Google Search App

to get the iOS version: Settings > General > About > Software Version

to get the Google Search App version: Settings > General > iPhone Storage > Google > Version

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

hisureshkumar avatar Jun 24 '21 18:06 hisureshkumar

Its still not loading On Thursday, June 24, 2021, 11:06:50 PM GMT+5:30, erwin mombay @.***> wrote:

@hisureshkumar would you mind confirming this is still an issue? i tried reproducing the steps and myinvestmentideas.com seems to be loading for me

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

hisureshkumar avatar Jun 24 '21 18:06 hisureshkumar

@hisureshkumar do you happen to have any content blockers installed?

erwinmombay avatar Jun 25 '21 11:06 erwinmombay

No. I did not installed any content blockers On Friday, June 25, 2021, 05:03:46 PM GMT+5:30, erwin mombay @.***> wrote:

@hisureshkumar do you happen to have any content blockers installed?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

hisureshkumar avatar Jun 25 '21 14:06 hisureshkumar

No any

icann2005 avatar Jun 28 '21 08:06 icann2005

Filed Google internal: b/192285255

ericfs avatar Jun 28 '21 21:06 ericfs

This is still not resolved and the problem exists. Is there any update on this? On Tuesday, June 29, 2021, 03:12:14 AM GMT+5:30, ericfs @.***> wrote:

Filed Google internal: b/192285255

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

hisureshkumar avatar Aug 13 '21 07:08 hisureshkumar

I did further investigation which can help Github team to help me here.

  1. I visited one of the webpage on google search through iphone-112) I clicked and holded the URL on search result which provides me an option to "Copy URL"3) The URL is having an error.Original URL should have been: https://myinvestmentideas.com/2021/01/top-best-mutual-funds-to-invest-through-sip-india/ URL On google Search Result (Copy URL option) shows: https://myinvestmentideas.com2021/01/top-best-mutual-funds-to-invest-through-sip-india/ There is "/" missing after my website result. This is appearing only on iphone - google search app search option. It is working fine on android/chrome/safari kind of browsers. Screenshots attached for quick reference.

On Friday, August 13, 2021, 01:16:19 PM GMT+5:30, Suresh Kumar @.***> wrote:

This is still not resolved and the problem exists. Is there any update on this? On Tuesday, June 29, 2021, 03:12:14 AM GMT+5:30, ericfs @.***> wrote:

Filed Google internal: b/192285255

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

hisureshkumar avatar Aug 13 '21 08:08 hisureshkumar

FINALLY FINALLY FINALLY, I found a solution for AMP pages not loading on iphone only. I have added below code in HTACCESS file in wordpress on top.  RewriteCond %{REQUEST_URI} !amp [NC]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{HTTP_USER_AGENT} iPhone|Mobile [NC]RewriteRule (.*)$ https://%{HTTP_HOST}/$1/amp/ [L,R=301] Now when I type myinvestmentideas as an example in google search app in iphone-11, it shows myinvestmentideas.com link in search result and when I click on it it takes me to actual webpage. Earlier it was showing white page with no message. Now all our pages are loading in normal way on google search app like it is loading in chrome and safari.

You may like to suggest the same solution to other wordpress users who might be facing similar issues. Thanks for your patience. Suresh KPFounder - Myinvestmentideas.com On Friday, August 13, 2021, 02:16:36 PM GMT+5:30, Suresh Kumar @.***> wrote:

I did further investigation which can help Github team to help me here.

  1. I visited one of the webpage on google search through iphone-112) I clicked and holded the URL on search result which provides me an option to "Copy URL"3) The URL is having an error.Original URL should have been: https://myinvestmentideas.com/2021/01/top-best-mutual-funds-to-invest-through-sip-india/ URL On google Search Result (Copy URL option) shows: https://myinvestmentideas.com2021/01/top-best-mutual-funds-to-invest-through-sip-india/

| | | | | |

|

| | | | Best Mutual Funds to invest in 2021 - Best SIP for 2021 in India

Best Mutual Funds to invest in 2021 in India; Best SIP to invest in 2021; Top 10 Mutual Funds for SIP to invest ... |

|

|

There is "/" missing after my website result. This is appearing only on iphone - google search app search option. It is working fine on android/chrome/safari kind of browsers. Screenshots attached for quick reference.

On Friday, August 13, 2021, 01:16:19 PM GMT+5:30, Suresh Kumar @.***> wrote:

This is still not resolved and the problem exists. Is there any update on this? On Tuesday, June 29, 2021, 03:12:14 AM GMT+5:30, ericfs @.***> wrote:

Filed Google internal: b/192285255

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

hisureshkumar avatar Aug 13 '21 09:08 hisureshkumar

this problem is still there for me. https://stackblogger.com is my site. when I search my article in Google App in iPhone and click on the result link then its showing a white page screen. site is not loading even if I am reloading the page.

stackblogger avatar Oct 06 '21 05:10 stackblogger

@westonruter could this be an issue with AMP WP plugin?

ericfs avatar Oct 06 '21 15:10 ericfs

I don't see how. The AMP plugin is just creating valid & optimized AMP pages.

westonruter avatar Oct 06 '21 17:10 westonruter

Unless… the issue is not with AMP pages but rather with the mobile redirection functionality in the AMP plugin. When using the Transitional or Reader template modes a site is in a Paired AMP configuration, and the plugin provides a “mobile redirection” feature to automatically redirect mobile visitors of canonical pages over to the paired AMP pages, basically implementing using AMP to provide the mobile version of the site. Given the variance in page caching layers, the AMP plugin by default uses JavaScript to do this redirection, following the direction of Google Search Central. If AMP Cache is not following those redirects properly (or even just the link[rel=alternate][media="only screen and (max-width: 640px)"]) then this could be the cause of the blank screen.

@jimcute I suggest trying this mini plugin to opt for server-side redirection (HTTP headers in PHP): https://gist.github.com/westonruter/e5032d805625f0f743237708c43d3783

westonruter avatar Oct 06 '21 17:10 westonruter