• Resolved stml123

    (@stml123)


    Fatal error: Uncaught TypeError: Unsupported operand types: string + string in …/wp-content/plugins/wp-statistics/includes/class-wp-statistics-user-online.php:75


    • This topic was modified 1 year ago by stml123.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter stml123

    (@stml123)

    I found the reason, in Settings: “Frequency of Online User Checks” there was a “word” (and not a number) in the field. Maybe you could implement a failsafe. Because this generates a fatal error if someone types or pastes in a word by accident and saves the settings after that.
    Maybe something like this:

    // Failsafe
    if (!is_numeric($reset_time)) {
    $reset_time = 120;
    }

    In line 69 of “class-wp-statistics-user-online.php”


    • This reply was modified 1 year ago by stml123.
    • This reply was modified 1 year ago by stml123.
    Thread Starter stml123

    (@stml123)

    Additional Information:
    The entry was not made manually and the error occurred directly after a plugin update.

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hello,

    Thank you for explaining and reporting the issue, we’ve fixed the issue and released the new version v14.5.1

    Best

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error’ is closed to new replies.