Title: PHP Errors in Ajax Response
Last modified: November 4, 2023

---

# PHP Errors in Ajax Response

 *  Resolved [oneoption](https://wordpress.org/support/users/oneoption/)
 * (@oneoption)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-errors-in-ajax-response-6/)
 * Hi Wordfence,
 * We’ve noticed in the Console Log while on WP Admin pages errors in the Ajax Response.
   A new one of these occurs every 20-30 seconds in the browser console. Here is
   one example:
 *     ```wp-block-code
       {key: 'a3abf9399c5d0ab3e3d95acefaa16dde', 
       type: 'warning', 
       message: 'chmod(): Operation not permitted', 
       file: '/bitnami/wordpress/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php', line: 442, …}
       ```
   
 * This seems like a permission issue, so we ran a few commands to recover the permissions
   configuration, as directed by Bitnami:
 *     ```wp-block-code
       sudo chown -R bitnami:daemon /opt/bitnami/wordpress
       sudo find /opt/bitnami/wordpress -type d -exec chmod 775 {} \;
       sudo find /opt/bitnami/wordpress -type f -exec chmod 664 {} \;
       sudo chown -R bitnami:daemon /bitnami/wordpress
       sudo find /bitnami/wordpress -type d -exec chmod 775 {} \;
       sudo find /bitnami/wordpress -type f -exec chmod 664 {} \;
       sudo chmod 640 /bitnami/wordpress/wp-config.php
       ```
   
 * This did not have any effect, unfortunately. Does anyone have any suggestions
   for how to fix?
 * Thank you!

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

 *  Plugin Support [wfmark](https://wordpress.org/support/users/wfmark/)
 * (@wfmark)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-errors-in-ajax-response-6/#post-17175280)
 * Hi [@oneoption](https://wordpress.org/support/users/oneoption/), Thank you for
   reaching out.
 * In most cases, this is caused by permission issues.
 * Since permissions are set correctly on your site, in your FTP or hosting file
   manager, navigate to your **wp-content/wflogs** folder. You should be able to
   delete the **wflogs folder** or its contents entirely and Wordfence should try
   to repopulate it within 30 minutes. This may resolve the issue.
 * If you have persistent problems with file-writing permissions, you can bypass
   Wordfence’s requirements entirely by setting logs to use the MySQLi storage engine:
   [https://www.wordfence.com/help/firewall/mysqli-storage-engine/](https://www.wordfence.com/help/firewall/mysqli-storage-engine/)
   Thanks,
 * Mark.
 *  Thread Starter [oneoption](https://wordpress.org/support/users/oneoption/)
 * (@oneoption)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-errors-in-ajax-response-6/#post-17176047)
 * Great, thank you!
 *  Thread Starter [oneoption](https://wordpress.org/support/users/oneoption/)
 * (@oneoption)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-errors-in-ajax-response-6/#post-17179145)
 * A similar issue occurred on our clone WP instance. It is getting the following
   errors
 *     ```wp-block-code
       chmod(): Operation not permitted	
       /bitnami/wordpress/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:442
       4	Unknown
       Warning	chmod(): Operation not permitted	
       /bitnami/wordpress/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:1044
       1	Unknown
       Warning	chmod(): Operation not permitted	
       /bitnami/wordpress/wp-content/plugins/wordfence/waf/bootstrap.php:953
       ```
   
 * Can we deletet the **wf-af** and **waf** folders?
 *  Plugin Support [wfmark](https://wordpress.org/support/users/wfmark/)
 * (@wfmark)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-errors-in-ajax-response-6/#post-17204050)
 * [@oneoption](https://wordpress.org/support/users/oneoption/),
 * Are the permissions set correctly on the clone site?  **755 **permissions and**
   www-data** should be the process owner for your WordPress directory. If you have
   to run your site with a different process owner, then that same user should be
   owner of the files in the directory.
 * If permissions are set correctly, please follow the steps I shared previously
   to delete the **wflogs **folder or its contents entirely and Wordfence should
   try to repopulate it within 30 minutes. This may resolve the issue.
 * If you have persistent problems with file-writing permissions, you can bypass
   Wordfence’s requirements entirely by setting logs to use the MySQLi storage engine:
   [https://www.wordfence.com/help/firewall/mysqli-storage-engine/](https://www.wordfence.com/help/firewall/mysqli-storage-engine/)
 * Thanks,
 * Mark.

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

The topic ‘PHP Errors in Ajax Response’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [wfmark](https://wordpress.org/support/users/wfmark/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/php-errors-in-ajax-response-6/#post-17204050)
 * Status: resolved