• I am getting a PHP error from Wordfence that is slowing down my site

    Warning chmod(): Operation not permitted

    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:442

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

      (@wfpeter)

      Hi @f9finance, thanks for getting in touch!

      I’m not sure if this is from an error logging tool or just presented on-screen, but it looks like either a permissions or file-locking issue on your site. PHP Warnings shouldn’t be slowing down your site, although the site may be reaching timeout waiting for the operation to complete. Do you see any connectivity or permissions fail/error messages in your?Wordfence > Tools > Diagnostics?page? The specific area to check would be to expand “Filesystem” near the top.

      It’s also worth checking that permissions on your WordPress site’s directories are?755, and that the process owner is?www-data?instead of root. Usually Wordfence and other plugins will be trying to modify as www-data and will be stopped from doing so if a different user level owns the files.

      If you have persistent problems with file-writing permissions, you can bypass many of Wordfence’s by setting logs to use the MySQLi storage engine:?https://www.wordfence.com/help/firewall/mysqli-storage-engine/

      Whilst that’s not the area you’re receiving a warning about in your post, our regularly updated signatures, rules, etc. could be a cause of slowdown if they’re also unable to complete and are timing out regularly.

      Many thanks,
      Peter.

      Thread Starter Mike Dion

      (@f9finance)

      Resetting the permissions fixed this, thanks so much.

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