Users Online tab has stopped listing visitors online

alt=
duke
@musamensa
7 years ago
253 posts
Hi, I noticed recently that visitors and online users are not listing under the 'users online' tab even when we have multiple users online.
updated by @musamensa: 09/16/17 07:47:13AM
michael
@michael
7 years ago
7,714 posts
The users online data is all stored in the jr_jruser_session table in your database which you can access from
ACP -> MODULES -> DEVELOPER -> DEVELOPER TOOLS -> TOOLS -> DATABASE ADMIN -> jr_jruser_session

It should line up with what is shown at
ACP -> DASHBOARD -> USERS ONLINE

It may not be a up-to-the-minute live count, but should be close within 10 min or so.
SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
I do see something similar (jrUser 2.1.3) - only one visitor is ever shown, even when there are many current visitors in the jr_jruser_session table

I think this is where that bug can be found: function _jrUser_mysql_session_online_user_info()

In jrUser 2.1.3 this line changed:
$_rt = jrCore_db_query($req, 'session_user_id');
By using session_user_id as the array key only one user with the id of 0 will be returned.

If I change that to 'session_user_ip' all of the not logged in visitors are shown in the ACP dashboard users online.

Note: That might mess with view_jrDeveloper_reset_system_save() where that function is also run (and relies on the key being the user id).


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 04/20/17 04:01:21AM
SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
I'm seeing the same problem and same solution with jrUser 2.2.0b1 as well


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
alt=
duke
@musamensa
7 years ago
253 posts
thanks guys, this but was not there before i never had this issue in the past.
michael
@michael
7 years ago
7,714 posts
This should be fixed in the next beta release 2.2.0b2. thanks.
SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
Thanks Michael :)


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
researchcooperative
@researchcooperative
7 years ago
694 posts
My site is running jrUser 2.1.3 and the dashboard's invisible user issue is still there. i.e. the counter tells me generally 5-10 users at any point in time, but they do not show up in the activity log or under the Users Online tab.

Is it a counter problem? Not a problem with the activity log or tab?

Am I only seeing phantom users?

I've been spending too much time watching bats flickering outside in the Kyoto dusk. Perhaps they are my visitors, looking over my shoulder through the window.


--
PJ Matthews, Kyoto
Migrated from Ning 2.0. Now at Jamroom 6 beta and using Jamroom Hosting for The Research Cooperative (researchcooperative.org)
SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
This is an issue with jrUser 2.1.3 and 2.2.0b1. If you can't try the fix above wait for an update.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags