Forums

Useronline 2.73 - 2 problems (9 posts)

  1. ronaldb73
    Member
    Posted 1 year ago #

    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?

  2. ronaldb73
    Member
    Posted 1 year ago #

    no one else with this problem?

  3. deived
    Member
    Posted 1 year ago #

    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.

  4. ronaldb73
    Member
    Posted 1 year ago #

    where do i find core.php?

  5. deived
    Member
    Posted 1 year ago #

    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).

  6. scribu
    Member
    Posted 1 year ago #

    The fix by deived has been included in the development version (2.80-alpha3):

    http://plugins.trac.wordpress.org/changeset/290560/wp-useronline

  7. ronaldb73
    Member
    Posted 1 year ago #

    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...?

  8. scribu
    Member
    Posted 1 year ago #

    Just upgrade to version 2.80 (released just now).

  9. ronaldb73
    Member
    Posted 1 year ago #

    good, just updated and everything seems to work just fine.
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic