• [04-May-2021 07:22:13 UTC] PHP Warning:  sleep() has been disabled for security reasons in /data/home/xyu4398740001/htdocs/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 898
    [04-May-2021 07:22:13 UTC] PHP Warning:  sleep() has been disabled for security reasons in /data/home/xyu4398740001/htdocs/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 524
    [04-May-2021 07:22:13 UTC] PHP Warning:  sleep() has been disabled for security reasons in /data/home/xyu4398740001/htdocs/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 536
    [04-May-2021 07:22:50 UTC] PHP Warning:  sleep() has been disabled for security reasons in /data/home/xyu4398740001/htdocs/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 416
    [04-May-2021 07:23:11 UTC] PHP Warning:  sleep() has been disabled for security reasons in /data/home/xyu4398740001/htdocs/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 416
    [04-May-2021 07:23:31 UTC] PHP Warning:  sleep() has been disabled for security reasons in /data/home/xyu4398740001/htdocs/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 416
    [04-May-2021 07:23:52 UTC] PHP Warning:  sleep() has been disabled for security reasons in /data/home/xyu4398740001/htdocs/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 416

    it apper in error.log

    how to fix it ? tks .

    • This topic was modified 3 years, 10 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, Could you check whether you’re using the latest version of the wordfence plugin? You can do so under Plugins, in the sidebar. If not, please post what version of the plugin you’re currently using.

    Updating the plugin to the latest version might fix the issue.

    • This reply was modified 3 years, 10 months ago by Paulo Pinto. Reason: Fixed typo
    Thread Starter lhtkick

    (@lhtkick)

    of course its the lastest version..

    I checked the source code of the plugin, and it seems these warnings happen when you try to use a premium feature you don’t have access to.

    The code will call the sleep() function, but that function has been disabled by your hosting provider, which causes the entry in the log.

    If you want to remove those entries from the log, you should contact your hosting provider and ask if they can enable the sleep() function for your site.

    However, in my opinion, you can just ignore those warnings since they should not have any practical impact on your site.

    Alternatively, you could contact the plugin developer to clarify why those sleep() calls are needed, and whether they can be removed from the plugin code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning: sleep() has been disabled for security reasons plugins/wordfence/l’ is closed to new replies.