Ever since I've upgraded to the latest version of WP-Useronline, 2 problems occur.
1- every x-minutes the count resets to 0
2- The most users ever online gives the current date and time
any solution for this?
Ever since I've upgraded to the latest version of WP-Useronline, 2 problems occur.
1- every x-minutes the count resets to 0
2- The most users ever online gives the current date and time
any solution for this?
no one else with this problem?
I had the same thing with the counter resetting. I think I fixed it. Seems to work. Here's my fix...
In core.php, look for the Purge Table around line 118.
I changed from ...
OR timestamp < CURRENT_TIMESTAMP - %d
to...
OR timestamp < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL %d SECOND)
I think it's something with the date format that the math returns. Seems to be working right now, and I can still change the interval using the plugin's settings. Hope this helps you.
where do i find core.php?
I had it in the same folder as wp-useronline.php. Also check wp-useronline.php for the same block of code (I've seen it there in a prev version of wp-useronline.php). Just look for the Purged Table code (Purged Table is commented).
The fix by deived has been included in the development version (2.80-alpha3):
http://plugins.trac.wordpress.org/changeset/290560/wp-useronline
i dont have a dir 'trunk' or a file 'core.php' and i just redownloaded 2.73 and they just aren't there.
so do I have to make a dir called trunk and place the core.php there and then it just works? or...?
Just upgrade to version 2.80 (released just now).
good, just updated and everything seems to work just fine.
Thanks!
This topic has been closed to new replies.