Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Dav999 on July 28, 2013, 09:28:45 AM

Title: Spiders counted twice in Most Online Today
Post by: Dav999 on July 28, 2013, 09:28:45 AM
Today I saw there were a lot of spiders online at the same time on my forum. First there were "16 Guests, 3 Users (16 Spiders)", and 'Most Online Today' said 35 users had been online at the same time, so I assumed there had been a lot of people online earlier today. Less than a minute later, I refreshed the index and saw that another spider came online, because it said "17 Guests, 3 Users (17 Spiders)". But meanwhile the Most Online Today changed to 37! This means that SMF counts 17 guests + 3 users + 17 spiders = 37 total, while the spiders already show up as guests.

I'm running SMF 2.0.4 with search engine tracking enabled and 'Show spiders in the online list' set to 'Show spider names'.

EDIT: Currently, there are 25 Guests, 3 Users (25 Spiders) online and the most online today changed to 53 (and it also broke the record of most online ever). In the forum stats, Users Online gives the correct number (28). Don't ask me why there are 25 spiders on the forum (all are Google). :o The online threshold is set to 15 minutes, but that's a different story.

EDIT 2: 31 spiders and 2 users, most online got bumped to 64! :o
Title: Re: Spiders counted twice in Most Online Today
Post by: Don Jajo on April 08, 2014, 04:27:44 AM
Just had the same issue now. I have ran refreshing forum statistics and cleared unimportant logs but still facing this issue. Any help on this?

Thanks
Title: Re: Spiders counted twice in Most Online Today
Post by: emanuele on April 10, 2014, 11:52:09 AM
I'd say: BoardIndex.php
Code (find) Select
trackStatsUsersOnline($context['num_guests'] + $context['num_spiders'] + $context['num_users_online']);
Code (replace with) Select
trackStatsUsersOnline($context['num_guests'] + $context['num_users_online']);