Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For some reason, my site will show 0 anonymous users and 2-3 may be in Forum statistics section. We get 10,000+ uniques per day and sometimes up to 500 concurrent users so not sure why this is showing very small numbers.
Any known issues?
Comment | File | Size | Author |
---|---|---|---|
#14 | Add_anonymous_guest_user_count.patch | 2.56 KB | ibedoya |
#12 | online_anno.diff | 689 bytes | ibedoya |
#3 | af7_1635800.patch | 2.09 KB | troky |
Comments
Comment #1
troky CreditAttribution: troky commentedAF doesn't count online visitors count.
Comment #2
standingtall CreditAttribution: standingtall commentedThis was probably not a very helpful resolution. Can you please explain more?
Comment #3
troky CreditAttribution: troky commentedPlease try attached patch.
Comment #4
troky CreditAttribution: troky commentedBTW, check this post: http://blog.rwky.net/2011/09/drupal-7-anonymous-sessions.html
Comment #5
troky CreditAttribution: troky commentedAbove patch committed do 7.x.
Comment #7
standingtall CreditAttribution: standingtall commentedThanks - #3 fixed the issue.
Comment #8
MGParisi CreditAttribution: MGParisi commentedNot fixed to date.
Comment #9
troky CreditAttribution: troky commentedHave you read #4?
AF reads "session" table to count guest/anonymous users. It is not AF problem when Drupal core doesn't populate that table.
Try to use workaround from #4.
Comment #10
MGParisi CreditAttribution: MGParisi commentedI tried number 4 and it doesn't work, shouldn't this be "wont fix".
Comment #11
troky CreditAttribution: troky commentedCalculating and displaying guest count on forum page has been removed. Changes just committed to 7.x-2.x-dev.
Comment #12
ibedoya CreditAttribution: ibedoya commented#3 Doesn't fix the issue because use DISTINCT and then only want to show uid 0, only 1 record will be shown.
I did a bit fix to this.
I think this should be "won't fix" since they removed the functionality.
I would like to ask, please, don't remove this functionality, with my patch and #4 is working on stable branch.
Comment #13
zietbukuel CreditAttribution: zietbukuel commentedWell this was a very nice feature, instead of removing it you could have made it optional and add a setting from the admin panel, of course warning the user that the it is not totally accurate. Just my 2c. Thanks for all the work though.
Comment #14
ibedoya CreditAttribution: ibedoya commentedThis patch adds support for guest user count on statistics and is working properly.
Read #12 to know why #3 wasn't working.
Would be nice if this patch was committed on to 7.x-2.x-dev
Also can be useful if someone wants to add the guest user count on their forums.
NOTE:
To count guest is also needed to add this in your theme:
Comment #15
standingtall CreditAttribution: standingtall commentedNote #14 kills all caching on your site specially boost.
Comment #16
MichelleFixing the status. I wasn't involved with the discussion so not going to weigh in on whether it should be added right now but, per #15, sounds like it needs to be optional and come with a warning.
Comment #17
podarokThis can affect performance.
Needs performance review