No Code Attached Yet
avatar diro-cowic
diro-cowic
17 Aug 2026

according to the module caption
'Last 5 Logged-in Users'
the 5 most recent logged in users should be displayed.
That is not the case
Unfortunately there is no sort order defined in
administrator/modules/mod_logged/src/Helper/LoggedHelper.php
thus the selection is random.

I have attached a diff of the file with added sort by s.time descending.

BTW the displayed time is the time of the last action in the user session.

avatar diro-cowic diro-cowic - open - 17 Aug 2026
avatar diro-cowic diro-cowic - change - 17 Aug 2026
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Aug 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Aug 2026
avatar diro-cowic
diro-cowic - comment - 17 Aug 2026

in case the upload of the diff not worked:

-- administrator/modules/mod_logged/src/Helper/LoggedHelper.php~ 2025-12-20 20:18:56.000000000 +0100
+++ administrator/modules/mod_logged/src/Helper/LoggedHelper.php 2026-08-17 10:20:57.533019672 +0200
@@ -49,6 +49,7 @@
->from('#__session AS s')
->join('RIGHT', '#__users AS u ON s.userid = u.id')
->where('s.guest = 0')

  •        ->order('s.time desc')
           ->setLimit($params->get('count', 5), 0);
    
       $db->setQuery($query);
    

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48256.
avatar diro-cowic
diro-cowic - comment - 17 Aug 2026

in case the upload of the diff not worked:

-- administrator/modules/mod_logged/src/Helper/LoggedHelper.php~ 2025-12-20 20:18:56.000000000 +0100
+++ administrator/modules/mod_logged/src/Helper/LoggedHelper.php 2026-08-17 10:20:57.533019672 +0200
@@ -49,6 +49,7 @@
->from('#__session AS s')
->join('RIGHT', '#__users AS u ON s.userid = u.id')
->where('s.guest = 0')

  •        ->order('s.time desc')
           ->setLimit($params->get('count', 5), 0);
    
       $db->setQuery($query);
    

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48256.
avatar brianteeman
brianteeman - comment - 17 Aug 2026

You didnt say what version of Joomla you are using but I believe it must be 5.4 as since #46047 in Joomla 6.1 this should be resolved

avatar diro-cowic
diro-cowic - comment - 17 Aug 2026

yes, Version 5.4.2

is there a chance the issue will be fixed in Joomla 5.4 ?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48256.

avatar diro-cowic
diro-cowic - comment - 17 Aug 2026

yes, Version 5.4.2

is there a chance the issue will be fixed in Joomla 5.4 ?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48256.

avatar brianteeman
brianteeman - comment - 17 Aug 2026
  1. You really should update to Joomla 5.4.7
  2. Apparently it was considered a feature and not a bug so it wont be backported to Joomla 5
avatar brianteeman
brianteeman - comment - 27 Aug 2026

This should be closed

avatar alikon alikon - change - 27 Aug 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-08-27 14:13:19
Closed_By alikon
avatar alikon alikon - close - 27 Aug 2026

Add a Comment

Login with GitHub to post a comment