#117 – Jumping in and out of AMP

Posted in ‘weeblrAMP’
This is a public ticket. Everybody will be able to see its contents. Only enter usernames, passwords or any other sensitive information in the Private information field.
Friday, 21 December 2018 12:21 UTC
perkster
 Hello,

https://www.shoplinux.ca/amp

1. Seems that I jump in and out of AMP when navigating the AMP pages.
2. When I click on a category in AMP on the main homepage it doesn't show any items/products.
3. I have Woocommerce AMP theme plugin installed.

Love this plugin. Gone thru all setting but have not messed with look.

Advice appreciated.

Mike Perks
Friday, 21 December 2018 13:18 UTC
wb_weeblrpress
Hi

1 - Cart, Checkout and account will always be non-AMP. The other links I've seen stay AMP for me. Which ones do not?

2 - I'm not sure why it looks like that. The Debian page looks better: https://www.shoplinux.ca/product-category/debian/amp but many others looks pretty much like you did not enable the WooCommerce part or ares still using the Community version of the plugin.

One thing that may not be clear: you should install the WooCommerce theme add-on but you must also upgrade your weeblrAMP from the Community version to the full version with all features. This is done by downloading the zip file from the download section here on the site and installing throuhg WP installer.

Best regards
 
Friday, 21 December 2018 19:54 UTC
perkster
Thanks for the reply.

Gp to https://www.shoplinux.ca/amp

Click on one of a Linux category.

It shows no products even if there are some in that category.

I reinstalled both Full version and Woocommerce addon.

Hope you can help.

Support use my login details to look. I went through every option and cant figure it out.

M Perks
Friday, 21 December 2018 20:00 UTC
perkster
Update.

Notice that when you click on a category from home page. You see no products and also copyright in footer looks like this:

(c) Shop Linux Canada - [weeblramp_current_year]

Mike
Friday, 21 December 2018 20:08 UTC
perkster
I keep finding issues.

From homepage click on an actual product under New Arrivals. A link does not stay in amp? No /amp at end of product url
Friday, 21 December 2018 20:16 UTC
perkster
Also, when in amp the header link for site url does not have the /amp after it. Is this correct and if not how can I add it?
Friday, 21 December 2018 20:19 UTC
perkster
In SEO >> Structured data scema.org, the link for "Site name in search reults goes to 404 error.
Friday, 21 December 2018 20:19 UTC
wb_weeblrpress
Hi

[EDIT as you posted while I was writing my response] >>> I keep finding issues.::: you should stop testing. Something on your site is breaking weeblrAMP. Nothing is normal and there's no point in trying to find things...
Now the rest of my response that I wrote earlier:

Indeed there's no setting issue, they are pretty straightforward anyway. So it means there's a conflict with one of your plugins. I did not want to go around and disable them one by one as is customary in such case as I could not risk breaking anything.

Currently plenty of things are not working: the admin page has rounded corners around the settings tabs, the front page does not have the proper styling, and likewise the categories pages are styled but dont have a proper content.

It shows no products even if there are some in that category.
I cannot see any product now, however when I tried after your first message I could see products in one single category: Debian. RIght now, they are gone.

Which makes me think, considering how much caching and CDN you have that caching is what might be interfering. I tried disabling the LiteSpeed cache to no avail but I'm not sure exactly how your setup is so I would suggest either:

- you try disabling your plugins one by one and see if this make the problem go away
- you try purging/disabling all caching you may have at WP, server or browser level

If that does not work, the newt step is as follow, if suitable to you:

- we install a backup plugin (we can provide Duplicator)
- you take a backup and we download that to install here locally
- I can debug the site code and will find what the problem is,whether in weeblrAMP or not

Alternatively, if you have a backup/restore procedure in place already, you can try take the site to your local machine or to another server and see if it makes a difference.

Unfortunately, if we are to have to take that backup and install locally to debug, this will not happen this week and probably not until after dec 26.

Best regards

 
Friday, 21 December 2018 20:21 UTC
wb_weeblrpress
Hi again

In SEO >> Structured data scema.org, the link for "Site name in search reults goes to 404 error.
As you can see by the link, this is only a link to Google documentation and it seems they have moved it. I will take a note of that and try to find an equivalent or remove the link in a future version

Best regards
 
Friday, 21 December 2018 21:17 UTC
perkster
Thanks for all your help.

I will disable caching/CDN and go through all plugins. I won't bother posting until after holidays.

Thanks again for great instructions.

Mike Perks
Friday, 21 December 2018 23:24 UTC
perkster
Hello,

I went through every plugin and disabled everything and still, homepage looked and acted the same.

I have cloned the site to https://www.shoplinux.ca/weeblr

Same passwords and directory for admin.

---------------------------------

I placed a fresh install at https://www.shoplinux.ca/site Same admin passwords and directory. It only has weeblrAmp, woocommerce
weeblramp addon, woocommerce, woocommerce blocks plus Storefront stock demo.

When you go to https://www.shoplinux.ca/site/amp no cats or prods ???? I have everything selected ??

Mike
Saturday, 22 December 2018 01:15 UTC
perkster
Just to add before I stop looking.

If you remove the trailing backslash off the end, It shows items in categories.

BAD: https://www.shoplinux.ca/product-category/mint/amp/
GOOD: https://www.shoplinux.ca/product-category/mint/amp

now if on the homepage I could get the products url to have /amp at end ???

Mike
Monday, 24 December 2018 10:54 UTC
wb_weeblrpress
Hi

I placed a fresh install at https://www.shoplinux.ca/site Same admin passwords and directory. It only has weeblrAmp, woocommerce

weeblramp addon, woocommerce, woocommerce blocks plus Storefront stock demo.



When you go to https://www.shoplinux.ca/site/amp no cats or prods ???? I have everything selected ??
Indeed you have to visit https://www.shoplinux.ca/site/amp/ for that but that's expected and is the AMP URL published to search engines.



I installed Duplicator from Wordpress.org then downloaded a backup and restored the backup on my computer. Problem is now: works perfect on my local machine:





All links and navigation works perfectly as expected. I am a bit stumped by that and will keep investigating on your site.

- do you have any caching/CDN enabled at server level?
- can you enable if not already WP_DEBUG, maybe there's a PHP error happening, or check the PHP logs?
- can you take that Duplicator backup and install yourself onto another server or your local machine to validate this?

Best regards
 
Monday, 24 December 2018 10:55 UTC
wb_weeblrpress
Hi again

And anything special in your .htaccess? (although I see no way this could influence the issue here but we are already outside of anything regular)

Best regards
 
Monday, 24 December 2018 20:58 UTC
perkster
Hi,

On my main site: https://www.shoplinux.ca I do have CDN and Litespeed Cache enabled but weeblramp in delevopment mode. You have passwords to access that site

https://shoplinux.ca/weeblr is clone of my main site.
https://www.shoplinux.ca/site is Storefront default.

Both above url do not have cdn/cache

I am running PHP 7.2 is that maybe issue?

Mike
Monday, 24 December 2018 21:21 UTC
perkster
Let's work on url https://www.shoplinux.ca/weeblr I will add WP_DEBUG to cfg.

I switched my main site to php 5.6 and made no difference. Disability CDN/Litespeed makes no difference

One thing I did notice when you make the Woocommerce Shop page my home page the AMP page is cleaner looking html.


Mike

Wednesday, 26 December 2018 10:16 UTC
wb_weeblrpress
Hi

Let's work on url https://www.shoplinux.ca/weeblr I will add WP_DEBUG to cfg.



I switched my main site to php 5.6 and made no difference. Disability CDN/Litespeed makes no difference



One thing I did notice when you make the Woocommerce Shop page my home page the AMP page is cleaner looking html.
There is nothing to look for in my opinion in that direction. weeblrAMP i working fine as evidenced by the fact that copying the website to another server fixes all display issues.

- can you take that Duplicator backup and install yourself onto another server or your local machine to validate this?
I would suggest you do that now. Please do not use a server from the same company, best is to use your local machine.

I can only think this is a server configuration now, Apache configuration. All works totally fine when you move the site to another server and all the problems are related to a trailing slash not behaving properly ie the URL must have a trailing slash for AMP pages to work properly but on your server, even with a trailing slash in the URL, PHP still thinks there is no trailing slash.

Best regards
 
Thursday, 27 December 2018 06:52 UTC
perkster
Thanks for your help. I will move to another server as you mentioned.

I will post back my results. Thanks again.
Thursday, 27 December 2018 08:29 UTC
wb_weeblrpress
HI

Great, thanks for that. Be sure to use another company, not just another server from the same company. If you stay withing the same company, they will have the same server setup.

Best regards
 
Friday, 28 December 2018 02:43 UTC
perkster
Hello,

I purchased space on another hosting company. I use cpanel hosting currently. I moved the site over to a subdomain store.shoplinux.ca. I did install from Duplicator and all went.

First attempt at trying AMP was showing same results. Having the backslash at end would not show items in categories.

Finally, I made a change in permalinks which warned me not to do but all I did was remove backslash. from this /%postname%/ >>>>> /%postname%

Guess what, it now works.

It would be nice if the main page looked a bit better but now it works.

I think it would be ok to try on the main site??? Opinion??

Mike
Friday, 28 December 2018 08:15 UTC
wb_weeblrpress
Hi,

I cannot access store.shoplinux.ca, maybe DNS has not propagated yet but "It would be nice if the main page looked a bit better but now it works." worries me. It either show the correct layout, ie here is what I get for the shop front page after using Duplicator to replicate the site on my local machine without making any change to any setting:



I have looked at the site now and I think you went ahead and made the change in permalink structure as products are now displayed normally so I guess it's "OK". However I still don't understand why a trailing slash would break this. The obvious reason would the server rewriting the trailing slash. Another would be the theme, your functions.php or an extension using the WordPress function untrailingslashit at some point to remove the slash internally, fooling our URL handling.
But the latter does not much make sense as:

- you had same issue on a copy of the site with most stuff removed
- copying the site to another server (mines, not the ones you tried) made the problem go away instantly.

I'm still puzzled to be honest.

Best regards
 
Friday, 28 December 2018 09:36 UTC
perkster
Hi,

- I took shop.shoplinux.ca down after I made rewrite changes to shoplinux.ca
- shoplinux.ca is running AMP in Normal mode.
- Original shoplinux.ca used a PAGE as frontpage/homepage. That what gave it the wrong format.

- New Issue

- Canonical URL's seem to be not correct as getting validation warnings?
- I look at the source and see the /amp is not added. <link rel="canonical" href="https://www.shoplinux.ca/" />
- Is that correct format?

- Also, link at top heading in AMP redirects to the non-amp homepage? Should that have a /amp too?

Thanks again for the help.

Mike
Friday, 28 December 2018 10:11 UTC
wb_weeblrpress
Hi

Canonical URL's seem to be not correct as getting validation warnings?
I see no validation warning on https://www.shoplinux.ca/

- I look at the source and see the /amp is not added. <link rel="canonical" href="https://www.shoplinux.ca/" />

- Is that correct format?
Yes, the canonical page is the NON-AMP version.

- Also, link at top heading in AMP redirects to the non-amp homepage? Should that have a /amp too?
Yes, that's how we link, to the standard site version.

Best regards
 
Friday, 28 December 2018 10:18 UTC
perkster
I was getting canonical warnings from Google Search Console when being indexed.
Thanks for clearing up linking questions.
How do I change colour of background in footer copyright area?
Thanks.
On Fri, Dec 28, 2018 at 2:11 AM WeeblrPress <[email protected]> wrote:

Friday, 28 December 2018 11:09 UTC
wb_weeblrpress
Hi

I was getting canonical warnings from Google Search Console when being indexed.
That would not be related to AMP, you need to investigate that separately.

How do I change colour of background in footer copyright area?

You can use the "Customize" page to change colors and layouts. We have many options where you can simply select colors. For those for which we have no option, you can simply enter custom CSS under the "Custom styles" tab of weeblrAMP configuration, in the "Raw AMP CSS".

Best regards
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.