• Hello,

    I’m having an issue with a slow backend and ran Query Monitor to see what’s going on. I found 3 PHP errors from Wordfence as well as a message that asks to check the Console. I did that and there’s an error message that keeps appearing. HEre are the errors in QM:

    Warning (Suppressed) chmod(): Operation not permitted 3

    wfWAFWordPressRequest::createFromGlobals()
    wp-content/plugins/wordfence/waf/bootstrap.php:678
    wfWAFRequest::createFromGlobals()
    wp-content/plugins/wordfence/waf/bootstrap.php:30
    wfWAFUtils::rawPOSTBody()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/request.php:266
    wfWAFStorageFile->getConfig()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php:847
    wfWAFStorageFile->fetchConfigData()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:555
    wfWAFStorageFile->open()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:601
    wfWAFStorageFile->_open()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:422
    chmod()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:434
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:434
    Plugin: wordfence
    Warning (Suppressed) chmod(): Operation not permitted 1

    wfWAFWordPressRequest::createFromGlobals()
    wp-content/plugins/wordfence/waf/bootstrap.php:678
    wfWAFRequest::createFromGlobals()
    wp-content/plugins/wordfence/waf/bootstrap.php:30
    wfWAFUtils::rawPOSTBody()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/request.php:266
    wfWAFStorageFile->getConfig()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php:847
    wfWAFStorageFile->fetchConfigData()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:555
    wfWAFStorageFile->open()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:601
    wfWAFAttackDataStorageFileEngine->open()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:426
    chmod()
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:1002
    wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:1002
    Plugin: wordfence
    Warning (Suppressed) chmod(): Operation not permitted 1

    chmod()
    wp-content/plugins/wordfence/waf/bootstrap.php:692
    wp-content/plugins/wordfence/waf/bootstrap.php:692
    Plugin: wordfence

    Can you please help me resolve this issue? Is it something on my end? Yours?

    Hoping for a solution in both cases.

    Thank you and best regards,

    Paul

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @boulosblack,

    Have you recently installed the Query Monitor to diagnose this issue, or was it previously installed and running as well? This plugin is helpful for query troubleshooting, but it causes all database queries to be saved, which uses lot of memory during Wordfence scans. We recommend disabling it when you are not actively using it.

    Can you please share the actual PHP errors you received?

    Did you check the dev console for errors? If not, can you please check there and let me know if you see anything?

    Just as a test, if you temporarily disable Wordfence does it help with the slowness?

    Thanks,

    Gerroald

    Thread Starter touchestudio

    (@boulosblack)

    Hello @wfgerald ,

    QM was only installed and activated to troubleshoot the issue. Still working on it, but will deactivate once done.

    What I pasted up there was the PHP Errors that were given by QM.

    In the console, there are errors as well (not WF related though).

    Deactivating WF improved site speed a bit. I’m contacting all plugin devs that have errors or queries running everywhere on the site lol

    Sucks we can’t add screenshots here!

    In Console, there are PHP errors in Ajax Response (from QM)

    Hey @boulosblack,

    The Warnings you shared means Wordfence attempted to change the permissions on some files but was not allowed to do so. Perhaps your host has some security restrictions in place on your hosting account? I don’t believe it would contribute to the slowness you’re experiencing, but may affect the Firewall functionality. So I’d definitely reach out to your host for their thoughts.

    Thanks,

    Gerroald

    Thread Starter touchestudio

    (@boulosblack)

    Hello @wfgerald ,

    It may affect some slowness. I am getting WF errors in my backup logs (UpdraftPlus Premium).

    wflogs/ips.php: unreadable file – could not be backed up
    wflogs/attack-data.php: unreadable file – could not be backed up
    wflogs/config.php: unreadable file – could not be backed up

    This is happening on quite a few sites that I run.

    And how can we resolve this in case the host has some security restrictions? Can you guys work with them to resolve such issues? I am with Cloudways running a bunch of Vultr Servers.

    Best regards,

    Paul

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

The topic ‘PHP errors in Query Monitor’ is closed to new replies.