Forums / Bug Reports / [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

[Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Locked

Views: 6,142

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
14 Mar 2009, 3:16 AM
#1
bonarhya avatar

bonarhya

New Zenner

Join Date:
May 2008
Posts:
2
Plugin Contributions:
0

[Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Zen Cart 1.3.8a
Database Patch Level: 1.3.8
v1.3.8 [2008-04-18 19:58:08] (Fresh Installation)

I logged in to my admin area today 14 March 2009 and noticed that the "Counter History for last 10 recorded days Session - Total" section was showing the same record twice (the current days totals) ans when I opened the actual site to increase the counter both of the entries changed, so they are both live just duplicating. This is the first time it has done this.

No work has been done on the site for about 5 months and all has been working perfectly normal.

The site has been up and running since May 2008.

14 Mar 2009, 4:21 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Check your table counter_history via phpMyAdmin ...

You should have 1 record per day in there ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Mar 2009, 11:41 PM
#3
bonarhya avatar

bonarhya

New Zenner

Join Date:
May 2008
Posts:
2
Plugin Contributions:
0

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Hi
Thanks for the reply.

I had a look at the counter_history using phpmyadmin and to be honest I didn't really have a clue what I was looking at.

I have attached a Screen Print of the problem so you can see exactly what I am trying to describe.

Thank you for your help.

15 Mar 2009, 3:31 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Did you recently do something to alter your date format?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Jul 2009, 9:25 AM
#5
sword avatar

sword

New Zenner

Join Date:
Jul 2009
Posts:
1
Plugin Contributions:
0

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Similar thing here. I have 4 repetitions of the last, 7/28/2009, record in my counter history. Didn't play with ZenCart settings recently. The only thing I rutinely do is a manual update of currency exchenge rates.

Cheers!

21 Aug 2009, 3:59 AM
#6
carolinebogart avatar

carolinebogart

New Zenner

Join Date:
Apr 2007
Location:
Manchester, NH
Posts:
52
Plugin Contributions:
0

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

I got a triplication of the lines. Changes were adding Google Base Feeder and coupons. CounterHistory has 3 entries for the triplicated date. The USA as a zone was added but I'm pretty sure that was after the records triplicated.

21 Aug 2009, 3:19 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

I have seen this a few times but have not been able to duplicate how it is happening ...

Other than cleaning the duplicates out of the database manually, I don't really have a solution to this at this time ... :lookaroun

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Aug 2009, 5:45 PM
#8
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

The problem is caused by a race condition in includes/counter.php , in particular the logic for adding new daily records if a record does not already exist.

If the code is called twice at approximately the same time two records will be created. One trigger is Yahoo which will often launch multiple spiders on a site at exactly the same time. If this happens just after midnight you can end up with multiple counter records.

Regards,
Christian.

4 Nov 2009, 3:33 PM
#9
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

... so is there a "fix" for this? During the past week I have two sets of duplicate "Counter History for last 10 recorded days".

Some sort of code to clean up the duplicate(s) if it was to happen by a multiple Yahoo spider or Googlebot?

~ jasmel : ** My Store** Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor

20 Feb 2010, 12:16 AM
#10
iggy73 avatar

iggy73

New Zenner

Join Date:
Feb 2008
Location:
Tampa, FL
Posts:
37
Plugin Contributions:
0

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Hey there everyone. I just ran into this issue today as well... and was wondering as the poster above me did if there was any more traction on this?

Thanks,
~Iggy

EDIT:
For anyone else that has this problem, I just wanted to say that deleting just one of the duplicate rows via phpMyAdmin was easy and took care of this "anomaly" for us.

SweetLexi.com
The Chic Boutique

29 Apr 2010, 6:44 AM
#11
sparks avatar

sparks

New Zenner

Join Date:
Apr 2010
Posts:
1
Plugin Contributions:
0

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Sorry to ask but the duplicate entry on which table?
I have several tables under my "domain_znc1" database on the phpAdmin.
The only related table I see is zen_counter_history but that contains the actual data.
Thanks for your help!

29 Apr 2010, 7:18 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Upgrading to v1.3.9 has the solution built-in. No need to touch any of your tables with phpMyAdmin

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 May 2010, 1:53 PM
#13
rich0452 avatar

rich0452

New Zenner

Join Date:
Jul 2008
Posts:
2
Plugin Contributions:
0

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

Hi, I'm on v1.3.9a and I've got nothing but duplicate counter displays for the last 10 days. I've cleared up the database, and it starts replicating the same day again in the display. Since I don't see any more replies to this, apparently some people have fixed it - what's the secret?

6 May 2010, 2:29 PM
#14
rich0452 avatar

rich0452

New Zenner

Join Date:
Jul 2008
Posts:
2
Plugin Contributions:
0

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

I'll answer my own question - after doing an update, you need to make sure you upgraded the database - once I did that, the duplicate displays went away. Amazing ! RTFM !!! :)

6 May 2010, 4:20 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Done v1.3.9a] Duplicate Counter History for last 10 recorded days Session - Total

v1.3.9b includes some fixes to this issue for older versions of MySQL, along with some other unrelated fixes.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.