Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#26 03-23-2015 13:55:36

amdowney
Member
From: UK-Warwickshire
Registered: 09-21-2007
Posts: 507
Website

Re: Google Issues

The issue is Google is seeing the desktop view for mobile now, since google changed it's agents an update is needed no?

Offline

 

#27 03-24-2015 07:02:25

west4
Member
From: UK
Registered: 04-16-2008
Posts: 639
Website

Re: Google Issues

In comment 13 you can see my FETCH AS GOOGLE was set at mobile, and returned desktop, so we need a fix for this Nick.

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#28 03-24-2015 07:36:54

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19557
Website

Re: Google Issues

In the file {private}/core/CORE/tasks_startup/0350_session.php, look for:

Code:

$this->CORE_Session->idmobile();

$mobile = $this->globals('core_session.mobile');

And replace with:

Code:

$mobile = $this->CORE_Session->idmobile();

Then look for:

Code:

if ($this->globals('core.robot')) {

     $this->CORE_Session->sessvalues('mobile_display',0);

     $this->globals('core.mobile_display',0);

     $this->globals('core_settings.core.mobile_active',0);

     if ($this->debug) {$this->debugger("exec: A robot was detected.  Bypassed mobile display recognition, and set mobile display to false.");}

     return 1;

} // End of if statement.

And comment out the entire block by add a '//' in front of each line.  No other changes are necessary (back out any changes you may have made to CORE_Session, they're not needed).  This basically allows Mobile for bots (Google's utility is reporting itself as a bot).

Enjoy your 'Awesome! This page is mobile-friendly.' message.


Nick Hendler

Offline

 

#29 03-24-2015 09:37:03

west4
Member
From: UK
Registered: 04-16-2008
Posts: 639
Website

Re: Google Issues

Hi Nick,

Thanks for the response, but it hasn't worked for me, neither the 'Mobile Friendly' test nor the 'Webmaster tools-Fetch as Google'.. both still returned the desktop version..

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#30 03-24-2015 09:42:07

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 838

Re: Google Issues

Same here. Google also only reports a partial status for Mobile: Smartphone (random images, css, js missing) but always returns Complete status for desktop view of the same page.

Last edited by sdn (03-24-2015 09:51:07)


Simon

Offline

 

#31 03-24-2015 17:29:02

ThomasGiannou
Member
Registered: 02-10-2007
Posts: 184

Re: Google Issues

Here's some info about the user agent google is using:

I do understand your point, and your frustration, but what I'm trying to do is understand what is causing the problem and help you to fix it - wherever it is.

The google audit program is not presenting itself as a mobile device accessing my shopping cart.   If it did, the shopping cart would be presenting pages formatted for a mobile device, not for a desktop.   The google program is presenting itself as a desktop computer and my shopping cart is formatting the pages as if it were displaying on a desktop. 

Unfortunately, that doesn't follow at all. For example, your site (their code - however you want to put it) might be testing using an out-of-date list of user agents. That could mean that it would fail to recognize Google's smartphone crawler as a smartphone and therefore fail to serve it the mobile site. Or your javascript might be too complex for Googlebot to crawl through, which, again, would be a problem at your end. Or something else. These would essentially be problems with your site.

Googlebot's smartphone crawler doesn't "present itself as a desktop computer": it identifies itself in the user agent string with the word "iPhone", something like this:

Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

See: http://googlewebmastercentral.blogspot. … wling.html

So the question is why your site (or their shopping cart code) does not recognize that user agent string and do a javascript redirect to the mobile version.

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

The above came out as a result of an interchange I was having on the google webmaster forum.   I said this all will probably just eventually go away when Kryptronic comes out with their responsive web site coding.   But, potentially, that's going to present quite a problem for people who have a lot of customization on their shopping cart displays.   Those people are going to have to retrofit their customizations into the responsive web site coding or the responsive web site coding into their custom display skins.

Offline

 

#32 03-25-2015 03:47:02

ThomasGiannou
Member
Registered: 02-10-2007
Posts: 184

Re: Google Issues

Here's some additional info I'm passing along:

One quick thing to check with them is that they're looking out for the correct user agent string to identify the smartphone crawler. It used to be:

Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot-Mobile/2.1; +http://www.google.com/bot.html)

and it is now, as above:

Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

Of course it's not acceptable to do special things for Googlebot, but typically people include Googlebot in a whole list of user agents they are testing for. It's possible that if your shopping cart guys didn't update this when Google made the changeover (about a year ago), the smartphone crawler would be served the wrong flavor of the site.

"Googlebot-mobile" is now used in the feature phone crawler user agent instead, as explained here:
http://googlewebmastercentral.blogspot. … wling.html

Offline

 

#33 03-25-2015 07:48:16

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19557
Website

Re: Google Issues

I've edited post 28 with a definitive change (no changes to CORE_Session, two changes to 0350_session startup script).  Review post 28 and ask any questions you may have.  Test at:

https://www.google.com/webmasters/tools … -friendly/


Nick Hendler

Offline

 

#34 03-25-2015 08:02:22

geraldz
Member
Registered: 09-27-2011
Posts: 251

Re: Google Issues

Which script is responsible for printing this in the source code?

thisSID = ''
this URL = 'http://mystore.com/store.php';
thisMODE = 'desktop';

I'd like to add the detected user-agent and device so we can see what the Google bot is using

Thanks

Offline

 

#35 03-25-2015 08:47:05

west4
Member
From: UK
Registered: 04-16-2008
Posts: 639
Website

Re: Google Issues

Awesome! This page is mobile-friendly.

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#36 03-25-2015 10:18:16

geraldz
Member
Registered: 09-27-2011
Posts: 251

Re: Google Issues

"Awesome! This page is mobile-friendly"

We are now mobile-friendly per Google's Mobile Friendly Test.  Thanks NIck!

Offline

 

#37 03-25-2015 11:00:43

meshugy
Member
Registered: 12-18-2004
Posts: 349

Re: Google Issues

Thanks Nick!

Offline

 

#38 03-25-2015 22:30:30

greg_oz
Member
From: Adelaide, Australia
Registered: 01-20-2007
Posts: 102
Website

Re: Google Issues

Thanks Nick it works great

Offline

 

#39 03-26-2015 05:59:14

kev
Member
Registered: 03-16-2009
Posts: 399

Re: Google Issues

Awesome!

Offline

 

#40 04-05-2015 09:05:54

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 935

Re: Google Issues

This is a nogo for us. Today, we receive an error of the site not being mobile friendly.

The G Mobile Friendly test shows the desktop page.

Ergo, we removed the googlebot from your $robots array in CORE_Session.php and that worked.

However, a better solution is requested. I posted another question about mobi urls.

Last edited by Blitzen (04-05-2015 09:08:25)

Offline

 

#41 04-06-2015 06:46:50

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19557
Website

Re: Google Issues

Blitzen: I addressed your other post already:

https://forum.kryptronic.com/viewtopic.php?id=32496

The 8.0.9 update contains changes to the CORE_Session.php file to remove tables from the list of mobile devices, and the 0350_session.php startup file was modified to remove the robot check, and to include this code for the mobile session check:

Code:

$mobile = $this->globals('core_session.mobile');

if (!(isset($mobile))) {

     $mobile = $this->CORE_Session->idmobile();

} // End of if statement.

That was it.  Apply the 8.0.9 update and you'll be good to go.


Nick Hendler

Offline

 

Board footer