• Resolved Nicklas L

    (@nicklasbluescreen)


    I get the following error on only one of all the sites on which we have Wordfence installed.

    How do I fix it?

    The function wfWAFUtils::normalizedTime() in /wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php gives the error Uncaught TypeError: Unsupported operand types: int + string

    Stack trace:

    0 /wp-content/plugins/wordfence/lib/wf503.php(369): wfWAFUtils::normalizedTime()

    1 /wp-content/plugins/wordfence/lib/wfLog.php(713): require_once(‘…’)

    2 /wp-content/plugins/wordfence/lib/wordfenceClass.php(3149): wfLog->do503()

    3 /wp-content/plugins/wordfence/lib/wordfenceClass.php(3164): wordfence::checkSecurityNetwork()

    4 /wp-content/plugins/wordfence/lib/wordfenceClass.php(3136): wordfence::processBruteForceAttempt()

    5 /wp-includes/class-wp-hook.php(310): wordfence::authenticateFilter()

    6 /wp-includes/plugin.php(205): WP_Hook->apply_filters()

    7 /wp-includes/pluggable.php(618): apply_filters()

    8 /wp-includes/user.php(106): wp_authenticate()

    9 /wp-login.php(1241): wp_signon()

    10 {main}

    thrown

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @nicklasbluescreen, thanks for your report.

    I’ve spoken with the team and this does require an update on our side to combat the error with PHP8.2 specifically. The conditions seem to require that version of PHP and the wfWAFUtils::normalizedTime() function to “correct” your server time, so we hadn’t seen it come up before.

    We can’t provide timescales of development work here on the forums, but this is something that will most likely be changed ASAP. In the shorter term, you could revert to another version of PHP like 8.0 in your hosting control panel to prevent this error. Its correction will appear in the changelog when new versions of the plugin are released, in which case you can use 8.2 again.

    Many thanks,
    Peter.

    Thread Starter Nicklas L

    (@nicklasbluescreen)

    Thank you for the quick reply!

    Unfortunately we cannot change the PHP version on our servers. I guess we have to either live with the problem or disable Wordfence until it is patched, since it apperas only one of our sites is affected.

    Take care,
    Nicklas

    Plugin Support wfpeter

    (@wfpeter)

    Hi @nicklasbluescreen, sorry to hear that.

    Unfortunately as WordPress and its plugins are still in beta support for 8.2, occasional issues may occur of this kind although the majority of sites seem to notice no ill-effects at all. I attempted to see if there are any workarounds, but our update is being scheduled based on your report. There’s a possibility your host or server admin could assist if you can’t change the version yourself in cPanel or similar.

    Thanks again and apologies for the inconvenience,
    Peter.

    Thread Starter Nicklas L

    (@nicklasbluescreen)

    No problems! At least now we know why it malfunctions sometimes.

    I wish you a good evening,
    Nicklas

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Uncaught TypeError: Unsupported operand types: int + string’ is closed to new replies.