Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

216593 Posts in 58326 Topics- by 87996 Members - Latest Member: o3lindascott
Pages: [1]   Go Down
Print
Author Topic: cookie check (Question to developers)  (Read 13402 times)
Sergey Romanov
Newbie
*
Posts: 12


View Profile
« on: January 10, 2007, 17:15:38 pm »

Hello,

i am developer of JPromoter. This component crawl the site and then allow edit meta on every page of the site of any component.

Recently I discovered problem that it hardly index VM. First I thought that is is server error of my client but then I git the problem. When user or crawler first get to VM page it produce 301 error to the same page with &vmcchk=1 added. That is Ok. I have solved that. I catch this error code, record this page as empty and try to open page where I have been redirected to. but since CURL crawler do not remember the cookie this page again move me to the same page and my crawler do not scan the same URL twice within one indexation process.

Is it possible to turn off this checker?
DO you think it is SE compatible?
Logged
Sergey Romanov
Newbie
*
Posts: 12


View Profile
« Reply #1 on: January 15, 2007, 14:25:03 pm »

Hard to answer?
Logged
Soeren
Administrator
Hero Member
*
Posts: 3105


VirtueMart Lead Developer


View Profile WWW
« Reply #2 on: January 16, 2007, 12:43:07 pm »

Hi,

you can remove the check in line 63 in the file /classes/ps_session.php:

Code:
if( @$_REQUEST['option'] == 'com_virtuemart' && USE_AS_CATALOGUE == '' ) {
$this->doCookieCheck(); // Introduced to check if the user-agent accepts cookies
}

Maybe we can check at this stage if that the user agent is not a bot or something like that.

ciao, Sören
Logged

The future of eCommerce: VirtueMart & Joomla!
http://virtuemart.net
--
The VirtueMart project needs your help! To be able to continue this project please contribute your skills. Read more.
Sergey Romanov
Newbie
*
Posts: 12


View Profile
« Reply #3 on: January 20, 2007, 15:11:34 pm »

Ok. I can easily avoid that error. I can track cookie by crawler. But I am interested is it normal behavior for other crawlers? I mean is this error met by Google or other? Is this ok for SEO?
Logged
Adam Bazaroff
Jr. Member
**
Posts: 73



View Profile
« Reply #4 on: February 08, 2007, 22:50:05 pm »

Is this ok for SEO?
It is very very bad for SEO Sad
I hate that f**g "&vmcchk=1" Google show terrible URLs for my site...
Code:
http://www.mysite.com/component/page,shop.browse/category_id,56/option,com_virtuemart/Itemid,26/index.php?page=shop.browse&category_id=56&option=com_virtuemart&Itemid=26&vmcchk=1
arrrgghh... Sad
Logged

/Adam'B ... Poor english mode [ON] Grin
Sergey Romanov
Newbie
*
Posts: 12


View Profile
« Reply #5 on: July 29, 2007, 11:24:18 am »

i wounder why they still not deleted this &vmcchk=1 from the code. It is worst thing available for SE.
Logged
Vdub
Full Member
***
Posts: 149


View Profile
« Reply #6 on: August 17, 2007, 15:49:09 pm »

you can remove the check in line 63 in the file /classes/ps_session.php:

Code:
if( @$_REQUEST['option'] == 'com_virtuemart' && USE_AS_CATALOGUE == '' ) {
$this->doCookieCheck(); // Introduced to check if the user-agent accepts cookies
}

If I understand this correctly, I can remove line 63 to stop the &vmcchk=1 problem I have with Google. But will this have any detrimental effect to customers using the site
Logged

Lee
Jr. Member
**
Posts: 60


These go to 11.


View Profile
« Reply #7 on: April 12, 2008, 05:02:20 am »

Quote
But will this have any detrimental effect to customers using the site

Vdub did you ever get an answer?

I too would like to disable the vmcchk code because of the 301 redirect that results which clearly pisses off google.
Logged
Lee
Jr. Member
**
Posts: 60


These go to 11.


View Profile
« Reply #8 on: May 01, 2008, 20:31:45 pm »

Well, without knowing how to improve the vmcchk code to distinguish bots from human visitors (as Sören suggested), I commented it out 3 weeks ago. 

I have seen no ill effects on my site from doing so.  I've had orders placed and processed successfully and all other functionality seems normal. 

Importantly, Google stopped giving me warnings about too many redirects while crawling my site.

If anybody wants to upgrade the vmcchk code so we can safely re-implement it, have it at!
Logged
Peter Clements
Newbie
*
Posts: 28


View Profile WWW
« Reply #9 on: July 07, 2008, 14:47:29 pm »

Well, without knowing how to improve the vmcchk code to distinguish bots from human visitors (as Sören suggested), I commented it out 3 weeks ago. 
I have seen no ill effects on my site from doing so.  I've had orders placed and processed successfully and all other functionality seems normal. 
Importantly, Google stopped giving me warnings about too many redirects while crawling my site.
If anybody wants to upgrade the vmcchk code so we can safely re-implement it, have it at!

I've just commented that line out on one of our sites too.

Are you still finding everything running OK?

I think this may well solve about a million and one issues, one being SEO.

You don't want to go down the path of checking to see if a site visitor is a bot or not, it's a very dangerous one.
Logged

Chris Silva
Newbie
*
Posts: 2


View Profile
« Reply #10 on: July 15, 2008, 02:00:28 am »

I have done the same thing and had it work although there HAS to be a more elegant solution if Virtuemart is to call itself a viable solution.  Our site http://mitcables.com has suffered a few months until I finally found this and commented out the lines.  I think the checking is important, but I guess only until the customer is checking out.
Logged
xDenisk
Newbie
*
Posts: 5


View Profile
« Reply #11 on: September 13, 2009, 19:26:11 pm »

Hello. Can you tell me may i rebuild the VMCHK?
Logged
Pages: [1]   Go Up
Print
Jump to: