• Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #19165 - AMP errors in google search console.

Hello,

Google complains about invalid items in AMP pages.

errors are:

” ” The attribute ‘role’ in tag ‘input’ is missing or incorrect, but required by attribute ‘on’. " and also,
” The attribute ‘tabindex’ in tag ‘input’ is missing or incorrect, but required by attribute ‘on’. "

for this section:

    <button class="load-more-button lmore lmore-show" hidden>
      <label for="run-loadmore">
      <input type="checkbox" name="loadmore" id="run-loadmore" hidden value="Load More" class="ampstart-btn big-btn caps m1 show" on="tap:filter.submit">
      Show More Products
      </label>
    </button>

How can I fix this?

Thank you.

Comments

Fred 17 Sep 2020, 11:00

Hi, Joao.
Open the file

/themes/alysum/templates/mobile/catalog/_partials/sort-orders.tpl

find and remove following code

<button class="load-more-button lmore lmore-show" hidden>
  <label for="run-loadmore">
  <input type="checkbox" name="loadmore" id="run-loadmore" hidden value="{l s='Load More' d='Shop.Theme.Amp'}" class="ampstart-btn big-btn caps m1 show" on="tap:filter.submit">
  {l s='Show More Products' d='Shop.Theme.Amp'}
  </label>
</button>
Joao Carlos Alves 17 Sep 2020, 12:16

Hi.

Thank you for your reply.

That is fixed.

Found also another issue in google search.

The parent tag of tag 'amp-accordion > section' is 'div', but it can only be 'amp-accordion'. 

it points to:

<section class="page-product-box">

Can you help with this one also please?

Thanks

Fred 17 Sep 2020, 12:17

Please give me a link to a page where I can see that

Joao Carlos Alves 17 Sep 2020, 13:20
Fred 17 Sep 2020, 22:16

Please review the source code of product description, you seems added there not allowed tag. We recommend to use HTML Cleaner to paste clean code into the product description https://html-cleaner.com

Joao Carlos Alves 20 Sep 2020, 00:45

Thanks for your suggestion, seems to be fine at least for now.

I have another issues that just found while optimizing website.

1st:
When I activate php-fpm, I can’t open any product, it just tries to download a file. (tried clearing the cache also by deleting var/cache contents)

2nd:
after upgrade to 5.6.0, amp is not working well when we either click in the logo to go to home page, or when we click in the products listed in products carousel. They all give 404 not found.
I’ve disabled the product carousel for now, but I would like to have it.

Thanks

Fred 21 Sep 2020, 11:34

1. I’m not sure the issue is related to the theme. The theme just display product list generated inside prestashop
2. Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your server through FTP

Joao Carlos Alves 22 Sep 2020, 20:58

Hi Fred,

Just filled in ftp detail.

Please note that you must select plain ftp, no encryption.

Thanks

Joao Carlos Alves 25 Sep 2020, 16:53

Ok, just found the issue.

This upgrade installs amp with diferente name.
It install pkamp, instead of pk_amp.

This causes to have both folders, and makes this mess.

Just deleted the pk_amp, and now all works fine!

Joao Carlos Alves 25 Sep 2020, 16:55

wait, spoke to soon.

This breaks admin….. can’t configure it anymore…

Fred 25 Sep 2020, 20:16

strange, when you install pkamp another pk_amp module should be uninstalled automatically, we will check that out

Joao Carlos Alves 29 Sep 2020, 14:44

Hello.

How can I fix this?

Page not found
The controller AdminPkAmp is missing or invalid.
 

Since I deleted the pk_amp, I can’t configure the module.

Thanks

Fred 29 Sep 2020, 14:47

I have no access to your server through FTP

Joao Carlos Alves 29 Sep 2020, 14:49

please note, you must select plain ftp, no encryption

Status: Resolving address of server.diy2all.com
Status: Connecting to 89.115.184.19:20021… Status: Connection established, waiting for welcome message… Status: Plain FTP is insecure. Please switch to FTP over TLS.
Status: Logged in
Status: Retrieving directory listing… Status: Server sent passive reply with unroutable address. Using server address instead.
Status: Directory listing of “/” successful

Fred 29 Sep 2020, 14:59

Still not able to connect https://take.ms/seR0Z

Joao Carlos Alves 29 Sep 2020, 15:01

in the encryption part, you must select the option

” Only use plain FTP (insecure) "

Joao Carlos Alves 29 Sep 2020, 15:02

also, username is incomplete.

Must be:

userftp@parties2remember.com

Fred 29 Sep 2020, 15:02

still the same https://take.ms/xifKr

Fred 29 Sep 2020, 15:03

now it works

Joao Carlos Alves 29 Sep 2020, 15:03

ok.

Fred 29 Sep 2020, 15:05

I also need access to back office to see the issue

Joao Carlos Alves 29 Sep 2020, 15:08

details added in my profile

Fred 29 Sep 2020, 15:17

the module AMP was not installed. I just installed it.

Joao Carlos Alves 29 Sep 2020, 15:20

so probably disapeared when I removed old pk_amp

Fred 29 Sep 2020, 15:21

yes

Joao Carlos Alves 29 Sep 2020, 15:22

If I want to do a fresh install, can I remove everything without losing settings ?

Or some stuff are stored inside theme folders?

Joao Carlos Alves 29 Sep 2020, 15:24

mobile page is not opening now.

Fred 29 Sep 2020, 15:28

now it works.
AMP updated to the latest version

Joao Carlos Alves 29 Sep 2020, 15:31

ok, in this version, were the I change the bottom copyright ?

Fred 29 Sep 2020, 15:32

Go to theme translation → theme → amp

Joao Carlos Alves 29 Sep 2020, 15:42

translations are in place, but still doesn’t work.

Fred 29 Sep 2020, 16:10

Looks like a cache issue