I see two different locations in whose online and user's profile in the same time.
[
attachment=21261] [
attachment=21260]
I've tried to refresh both the pages several times but the same locations saw each. I'm sure this is a bug of locations.
I believe Support Denials are managed from the Mod CP, therefore the Who's Online shows him doing that, while the profile one doesn't show stuff like that. As sure as you are, you're wrong.
Remember these are real time online trackers. It could be coincidence that Matt browsed to the ModCP then the Support Denial section in the delay of loading the pages.
No I'm convinced there is a bug here. There's been countless times that the location on a profile and on the WOL has been different, even when the last activity time was a few minutes ago and I refresh the pages, they say something different. Also some people appear on the WOL in locations I know they're not. Very hard to debug though.
(2011-01-12, 07:16 PM)MattRogowski Wrote: [ -> ]No I'm convinced there is a bug here. There's been countless times that the location on a profile and on the WOL has been different, even when the last activity time was a few minutes ago and I refresh the pages, they say something different. Also some people appear on the WOL in locations I know they're not. Very hard to debug though.
But this isn't the bug, unless you added the Support Denial to the profile location as well.
It doesn't (well, shouldn't) show different locations when you're on the WOL and on the profile, it should show the same everywhere, because that's your location... why would the profile be designed to show something different?? If you look at the code, the profile and WOL list call the exact same function to get the current location.
online.php:
$user['activity'] = fetch_wol_activity($user['location'], $user['nopermission']);
member.php:
$activity = fetch_wol_activity($session['location'], $session['nopermission']);
Exactly the same, but it displays different results.
(2011-01-12, 08:23 PM)MattRogowski Wrote: [ -> ]It doesn't (well, shouldn't) show different locations when you're on the WOL and on the profile, it should show the same everywhere, because that's your location... why would the profile be designed to show something different?? If you look at the code, the profile and WOL list call the exact same function to get the current location.
online.php:
$user['activity'] = fetch_wol_activity($user['location'], $user['nopermission']);
member.php:
$activity = fetch_wol_activity($session['location'], $session['nopermission']);
Exactly the same, but it displays different results.
There must be a possibility of $session['location'] and $user['location'] being different then. Which one is not getting updated?
Yeah it sounds from this example especially that it's something like that, I would have gone to the Mod CP before going to the Support Denial list... I've not thoroughly gone over the code to try and track this down but the session is updated on line 308 of ./inc/class_session.php which should be run the same no matter what page is being run. I was thinking maybe there's two sessions for me, but it sorts by time in descending order in both places so if you're refreshing both pages it should be fetching the same one...
(2011-01-12, 11:14 PM)MattRogowski Wrote: [ -> ]Yeah it sounds from this example especially that it's something like that, I would have gone to the Mod CP before going to the Support Denial list... I've not thoroughly gone over the code to try and track this down but the session is updated on line 308 of ./inc/class_session.php which should be run the same no matter what page is being run. I was thinking maybe there's two sessions for me, but it sorts by time in descending order in both places so if you're refreshing both pages it should be fetching the same one...
Well it's a hard bug to track, there's no doubt about that. When this happens, you may want to check the sessions table and check if you have two different rows which match the statuses shown on profile and on WOL, then we have something to search for. Right now there isn't much we can do since we can't replicate it when we want.