The {total_entries} tag in a template is spitting out ‘65454’, but in the Recount Statistics page in the Control Panel, the total entries is ‘21992’.
Huh?
(EE 2.1 build 20101020)
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
November 09, 2010 9:01pm
Subscribe [6]#1 / Nov 09, 2010 9:01pm
The {total_entries} tag in a template is spitting out ‘65454’, but in the Recount Statistics page in the Control Panel, the total entries is ‘21992’.
Huh?
(EE 2.1 build 20101020)
#2 / Nov 10, 2010 11:09am
Hi, Sean. How did do you get the entries in there? Is your version really 2.1.0? With that build number, the version should be 2.1.1. What does it day in the actual footer of the page?
#3 / Nov 10, 2010 2:32pm
Yes, sorry, it’s EE 2.1.1.
Entries have been created by guests using the SafeCracker add-on.
#4 / Nov 11, 2010 9:12am
I’ve not used SafeCracker yet.
Have you do the recount at Tools > Data > Recount Statistics?
#5 / Nov 11, 2010 2:36pm
Yes, I’ve done the recount function. No change.
#6 / Nov 11, 2010 7:46pm
Hi Sean,
You’re referring to the total_entries variable of the {exp:stats} tag, right? Or is this the global variable?
#7 / Nov 11, 2010 8:03pm
Yes, the total_entries in exp:stats.
#8 / Nov 12, 2010 4:05am
Sean,
If you goto your Edit page does the pagination under the entry listing say something like
Showing 1 to 50 of 21992 entries (filtered from 65454 total entries)
I can replicate locally.
It looks like I have duplicates in the exp_channel_titles and exp_channel_data tables so your total entries tag is only counting 1 of the duplicates
My site was upgraded from a previous version so unsure of what stage this happened at. Was yours a fresh install or upgraded from previous versions
I will need to start with a fresh install and try and replicate again.
We will update in this thread when we have investigated it further. Thanks for your patience
#9 / Nov 12, 2010 1:28pm
Without any filtering options it reads:
Showing 1 to 150 of 22596 entries
When I add a filter, it reads:
Showing 1 to 150 of 20327 entries (filtered from 22597 total entries)
This install was fresh at 2.0 (forget which build) and has been updated to 2.1, then 2.1.1, with a few build updates in between.
#10 / Nov 13, 2010 3:39pm
Hi Sean,
Thank you for the additional information. We will update this thread as soon as we can.
Cheers
Greg
#11 / Dec 09, 2010 8:11pm
Not sure what’s become of this, but we (Solspace) are noticing a similar issue as well.
We were seeing this on a per member count in the User module during some testing in EE2. User just pulls the stats from EE and I double confirmed this by checking out the regular EE Member templates - on the profile page for one member says “Total Channel Entries: 17”, where the real count is actually “64”. On another profile it says “Total Channel Entries: 2”, where the real count is actually “6”.
Using v2.1.1 - Build: 20101020
😊
#12 / Dec 10, 2010 12:32pm
PIe Man - thanks for the additional information. Are you also seeing the duplicate entries that John Henry noted in post #7?
#13 / Dec 10, 2010 2:33pm
Hi Lisa,
No, I am not seeing any duplicate entries in those tables. 😊
I have 72 entries in the tables (none are dupes) and Edit page is showing 72 entries, and a total of 72 entries does sound about right 😊
#14 / Dec 11, 2010 3:58pm
Hi,
This is 72 entries with an open status or 72 with a variety of statuses?
Cheers
Greg
#15 / Dec 11, 2010 4:49pm
Good question… 71 of them are in “Open” status, and 1 is in “Closed” status. There is not a single CUSTOM status even created 😊