Administration menu Toolbar style 7.x-3.0-rc3
drupal core 7.15 (was 7.14 with same issue)
devel modules disabled
cache disabled, cleared
2 sites sharing the same code base
one of the sites is multilingual
> Administration » Configuration » Administration and disabled "Cache menu in client-side browser" to prevent sort of client cache issue
tested firefox and chrome

Issue: both sites don't show the number of anonymous users
count of logged users is OK

Not sure if this is a bug or something related with my setup.
Any help or sugestion is welcome.
thanks

Comments

-Mania-’s picture

Same problem. :/ Anonymous users always at 0, logged in count working fine.

nfin01’s picture

We had the same problem, we un-check cache for anonymous user, it seems to solve it. See if this will work for you:

Goto: admin>>config>>development>>performance - under caching un-check the Cache pages for anonymous users.

-Mania-’s picture

I've got all the caching off as I'm working on localhost. I also read that some people had problems because they didn't have user '0' in the users table but I checked and it's there. Anything else to try?

darrell_ulm’s picture

Category: support » bug
Status: Active » Needs work

This issue still seems to be active.

#2 https://drupal.org/node/1733384#comment-6386372 is not going to work in a production environment.

Has there been any resolution to this? It's a nice option to have.

Update: actually this may be a duplicate of this issue: https://drupal.org/node/1911434, delegate it to the maintainers to decide.

Road Runner’s picture

I have had this issue forever i.e. no anonymous user count showing. FYI I use Boost and Domain Access too. It is difficult to determine if logged in works because we have so few but it does seem to show correctly.

Road Runner’s picture

Issue summary: View changes

update

Pomliane’s picture

Issue summary: View changes
Status: Needs work » Active
christiaan_’s picture

Had the same issue. What worked was to disable the administration menu module, uninstall the module, clear the caches, and re-install.

Road Runner’s picture

#7 didn't work also disabling cache menu in admin menu config didn't work. The online block reflects what is shown in the admin menu too which is always 0 or 1

ckvergleich’s picture

Same problem, need help or suggestions

alexandreracine’s picture

Version: 7.x-3.0-rc3 » 7.x-3.x-dev
Component: User interface » Code

This is also happening in dev, so let's put it there.

jay.lee.bio’s picture

Did you guys try downgrading to 7.x-3.0-rc1? I stopped upgrading since this version because for me it's the last version that shows the correct number of anonymous users. I won't even bother upgrading to 7.x-3.0-rc5 that just came out unless somebody can confirm that this issue has been taken care of.

SKAUGHT’s picture

sorry i don't currently have time to make patch..

function anon_users_total() {
	$interval = REQUEST_TIME - variable_get('user_block_seconds_online', 900);
	$query = db_select('sessions', 's')
		->fields('s', array('sid'))
		->condition('uid',' 0', '=')
		->condition('timestamp',$interval, '<=');
	$users = $query->execute();
	$list = array();
	while($record = $users->fetchAssoc()) {
		$list[] = $record;
	}
	return sizeof($list);
}
Road Runner’s picture

Who really cares now, seriously, 4 years after initial problem is called out you show back up and still don't care enough to fix the issue and who would want to mess around with a patch you won't even do yourself.

truls1502’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +postponed2w

I am sorry for no reply until now.

There are many issues regarding this module admin_menu which is a bit difficult for us to follow up since some of the issues might be already outdated, or is already fixed by the module or any other modules or itself core which means that the problem might no longer need to be fixed.

We can see that the issue has been created for a few years ago, I hope it is okay for you that I am postponing the issue, and give you around two weeks. If you still face the problem, could you tell us the step by step when until you get the error message or what is frustrated you, and a list of modules you are using related to admin_menu and a screenshot that might help us? So it makes us easier to reproduce your issue.

However, after two weeks with no feedback - we will close this issue. So in case, you noticed it after the issue is closed, do not hesitate to reopen it like and fill information which is mentioned above.

So before giving us a feedback, do you mind to test it again with our latest 7.x-3.x-dev?

Thank you for understanding! :)

truls1502’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
Issue tags: -postponed2w

This issue has been automatically marked as closed because it has not had recent activity after the last post.

However, if you or someone is still facing the same issue as described to the issue, could you please to re-open the issue by changing the status of the issue, and add an explanation with more details which can help us to reproduce your situation.

Again, thank you for your contributions! :)