• Resolved oneoption

    (@oneoption)


    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:

    {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:

    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

    (@wfmark)

    Hi @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/Thanks,

    Mark.

    Thread Starter oneoption

    (@oneoption)

    Great, thank you!

    Thread Starter oneoption

    (@oneoption)

    A similar issue occurred on our clone WP instance. It is getting the following errors

    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

    (@wfmark)

    @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/ 

    Thanks,

    Mark.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Errors in Ajax Response’ is closed to new replies.