I am running Solspace User 3.5.3 on EE 2.9.2 and have a discrepancy with the total number of entries shown for a user.

When I am logged in as admin for the site and I go to my profile in user_main, it says I have a total of 0 entries. However it also has a link to the page that displays all my entries and there are 19 pages worth of entries.

The code for this section is:

<li class="list-group-item">
<strong>Total Entries:</strong> &nbsp; 
{if last_entry_date == "0"}
This user has not published any entries yet.
{total_entries} &nbsp; <i>(last published: {last_entry_date format="%F %j, %Y"})</i>
&nbsp; <a href="{path='user_main/user_entries'}/{member_id}/">view all &rarr;</a>

The same problem is evident on the user_entries page where despite the fact that there are 19 pages of entries, the total_count shows as 0.

enter image description here

The code:

<h2 style="margin-bottom:20px;">{exp:user:stats member_id="{segment_3}" limit="1"}{if logged_in_member_id == "{segment_3}"}My{if:else}{screen_name}'s{/if} Entries <span class="label label-warning">{total_entries}{/exp:user:stats}</span></h2>

Clearly {total_entries} is having a bad day.

  • I have a site with EE 2.9.2 and User 3.5.0 ... And your code worked fine for me. Do you have that block of code inside of any other EE loops?
    – jrothafer
    Jul 2, 2015 at 17:42
  • No. This is directly from the Solspace provided templates.
    – forrest
    Jul 2, 2015 at 20:19
  • Random suggestion.. Turn in php on input, and do this: <?php $t = "{segment_3}"; var_dump($t); ?> and see if you get a weird looking result.
    – jrothafer
    Jul 2, 2015 at 20:36
  • Also, if you hard code a value instead of segment_3, do you get the expected results?
    – jrothafer
    Jul 2, 2015 at 20:37
  • I get the following output: string(0) "" and the results are the same if I hard code the member id.
    – forrest
    Jul 2, 2015 at 20:46

1 Answer 1


There must have been some sort of issue with EE's stats being up to date for channel entry data. I ran the recount stats utility on your site and the numbers seem to be correct now. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.