Title: Function chmod() error
Last modified: April 8, 2024

---

# Function chmod() error

 *  Resolved [edz2021](https://wordpress.org/support/users/edz2021/)
 * (@edz2021)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/function-chmod-error/)
 * An unexpected exception occurred during WAF execution: Error: Call to undefined
   function chmod() in /home/domain/public_html/wp-content/plugins/wordfence/vendor/
   wordfence/wf-waf/src/lib/storage/file.php:442
   When i am trying to active the 
   plugin then my site is not able to work getting above error in my error log file
    -  This topic was modified 2 years, 3 months ago by [edz2021](https://wordpress.org/support/users/edz2021/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/function-chmod-error/#post-17562464)
 * Hi [@edz2021](https://wordpress.org/support/users/edz2021/),
 * This sounds like when `disable_functions` has been used to disable `chmod` in
   your **php.ini**. If you don’t have access to modify this file, it could also
   be configurable through your hosting control panel.
 * If not, I would firstly reach out to your host to find out if chmod is disabled
   by design, or if they can help you reenable it. It’s sometimes possible to bypass
   some chmod requirements if you’re using the [MySQLi engine for logging in Wordfence](https://www.wordfence.com/help/firewall/mysqli-storage-engine/),
   but I’m not certain that resolves all occasions when the function would be required.
 * Let us know how you get on,
   Peter.

Viewing 1 replies (of 1 total)

The topic ‘Function chmod() error’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/function-chmod-error/#post-17562464)
 * Status: resolved