Support » Plugin: Wordfence Security - Firewall & Malware Scan » PHP Warning from Wordfence time.php line 160

  • Resolved RowlandA


    I’m getting this warning in the admin panel for Users

    Warning: DateTime::setTimestamp() expects parameter 1 to be int, string given in /home/rowland/allmanbrothers/wp-content/plugins/wordfence/modules/login-security/classes/controller/time.php on line 160

    It’s only a warning but looks like something you could test for in your code. Probably the string coming in is not able to be converted to a timestamp?


Viewing 1 replies (of 1 total)
  • Plugin Support WFAdam


    Hello @rowlanda and thanks for reaching out to us!

    I have seen this issue before when the Date and Time in WordPress are set incorrectly. Go to WordPress > Settings > General. Ensure that Date Format and Time Format are not set to Custom and are set to a standard format.

    Let me know what you find and if this was helpful!


Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.