• Resolved Eaton

    (@eatonz)


    Hi, I ran into an issue where when I rebooted my server, the time zone was out of sync for a second, and Wordfence logged an event in Live Traffic.

    As a result, stuck at the top of Live Traffic was an item that was essentially from the future. It said something like “-1000 seconds ago”.

    The bug is when Live Traffic is viewed while this event is there. I get some crazy errors.

    https://pastebin.com/raw/S1FGy5VR

    While Live Traffic events from the future isn’t something that should happen, they do, and you should ensure your code handles this edge case gracefully instead of triggering all these warnings.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @eatonz,

    It is likely that a table was being written to during the reboot and the process was interrupted which caused data corruption.

    I would recommend deleting the tables and doing a fresh install. Either by using the Wordfence Assistant plugin or deleting the tables on deactivation.

    Thread Starter Eaton

    (@eatonz)

    I am not seeing any issues, so I think I’ll just let the bad entries be deleted automatically once it reaches my “Amount of Live Traffic data to store (number of rows)” setting.

    I just wanted to let you know that you should consider adding future timestamp handling to prevent these warnings from showing.

    Hi @eatonz,

    Thanks for your input.

    I passed it on to our development team.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Live Traffic – Future Time Bug’ is closed to new replies.