Google Search Console detects errors on Hikashop page

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
5 years 2 months ago #303598

-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.3

Dear supportteam,

Google Search Console inspected the webshop of one of our clients and detected some problems, related to a Hikashop page.

Errors concern the mobile usability and are:
- text too small to read
- clickable elements are too close to eachother
- viewport not installed

The errors were detected for the first time between 21-11-2018 and 2-12-2018. The following weeks no errors were detected until Wednesday 6th February and Thursday 7th February. The url Google Search Console shares:

This message contains confidential information

is of a page we don't know where it's coming from or why it exists/is detectable.

I hope you can help us solve these issues so Google Search Console no longer detects errors on this website/webpage.
Thanks in advance.

Kind regards,
Lumiga


Kind regards,
Lumiga

Please Log in or Create an account to join the conversation.

  • Posts: 81478
  • Thank you received: 13060
  • MODERATOR
5 years 2 months ago #303600

Hi,

That page should actually not be taken into account by google as it is an ajax page used for the infinite loop system to be able to load more products in a listing when you reach the bottom of the listing.
Add the code:

if(!headers_sent())
				header('X-Robots-Tag: noindex');
before the code:
$this->display();
			exit;
in the file components/com_hikashop/controllers/product.php and that should avoid search engines trying to index these pages.

The following user(s) said Thank You: Lumiga

Please Log in or Create an account to join the conversation.

  • Posts: 103
  • Thank you received: 5
5 years 2 months ago #303621

will this code get in the next version too?

Please Log in or Create an account to join the conversation.

  • Posts: 81478
  • Thank you received: 13060
  • MODERATOR
5 years 2 months ago #303644

Yes, it's already commit on my end.

The following user(s) said Thank You: n00bster

Please Log in or Create an account to join the conversation.

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
4 years 2 months ago #315321

Hi Nicolas,

We still get this error form Google with the Hikashop version 4.2.2.

See:

This message contains confidential information


Is this another URL? or is the issue still not resolved in the 4.2.2. version?

I see that you have made the above adjustment, but unfortunately we still get this error message from Google.
Print-screen from latest version from product.php:




Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:
Last edit: 4 years 2 months ago by Lumiga.

Please Log in or Create an account to join the conversation.

  • Posts: 81478
  • Thank you received: 13060
  • MODERATOR
4 years 2 months ago #315324

Hi,

You can see that this URL is probably noted as to not be indexed :
monosnap.com/file/cV7dDR2PKrL5hXdFP7P0iWVjoIfOYu
So the patch is working. The problem is that google is apparently ignoring the "noindex".
It's however recommended by google themselves:
support.google.com/webmasters/answer/93710?hl=en
However, I searched online about such potential issue and it seems that the noindex HTTP header is properly taken into account by Google so normally what you see should not happen.
So I don't know. I think you should submit a question on support.google.com/webmasters/community?hl=en to see what can be done.

The following user(s) said Thank You: Lumiga

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum