Code:
$vbulletin->db->query_write("
DELETE FROM " . TABLE_PREFIX . "session
WHERE lastactivity < " . intval((TIMENOW - 86400]) . "
### Delete stale sessions ###
Is the code to use in cleanup.php only. Do not change what is in cleanup2.php.
I run "who was online today" and have had no issues or conflicts with them working together.
I just installed this on 3 other boards in an attempt to duplicate this problem. So far they are working fine.
Check your cleanup2.php and make sure you did not change the original code. This is the only hack I know that changes the cleanup.php you can re upload a new copy and try again to see if that fixes it.