Closed (duplicate)
Project:
User Stats
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2010 at 23:22 UTC
Updated:
28 Oct 2010 at 14:05 UTC
I am using Views 3 and dev release of user_stats:
When creating a view that tries to sort by "is_online", the following error occurs:
user warning: Unknown column 'users.is_online' in 'field list' query: SELECT (1284420040 - users.access) < 900 AS users_is_online, users.uid AS uid, users.is_online AS users_is_online_1 FROM users users WHERE (1284420040 - users.access) < 900 ORDER BY users_is_online_1 ASC in mysite/sites/all/modules/views/plugins/views_plugin_query_default.inc on line 1096.
Comments
Comment #1
YK85 commentedI get the same scary error. Can anyone please help?
Comment #2
entrigan commentedSince is_online is just a threshold on the last access, it is possible to achieve approximately the same functionality by sorting by last access.
I suppose you could even work it so that the last access field displayed the is_online value, change the label and it should work.
Comment #3
chuckbar77 commentedmarking this duplicate of #787682: Views 3 Compatibility