• Hello

    I’ve been upgrading my sites to PHP8 from 7.4. Prior to upgrading I’ve had no PHP error or warnings with Wordfence but on PHP v8 I’m getting plenty of…

    unlink(/code/web/wp-content/uploads/wflogs/template.0232964001657801493.tmp): No such file or directory

    When I look at the diagnostics page I see…

    Checking if web server can read from ~/plugins/wordfence
    OK
    Checking if web server can write to ~/plugins/wordfence
    FAIL
    Checking if web server can read from ~/wp-content/wflogs
    OK
    Checking if web server can write to ~/wp-content/wflogs
    OK

    I followed the advise on another support question to use MySQLi storage engine however this doesn’t solve the issue and I’m unsure MySQLi storage engine is being used properly

    Here’s my environment details:

    Hosting:?Pantheon – set up following Pantheons instructions
    PHP:?8.0

    • This topic was modified 1 year, 10 months ago by mattinventive.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mattinventive

    (@mattinventive)

    Just to follow up on this I’ve been looking through the Diagnostics tab and I can confirm that MySQLi Storage is the Active WAF storage engine

    Plugin Support wfpeter

    (@wfpeter)

    Hi @mattinventive, thanks for getting in touch with us.

    Is the unlink... message presented on-screen, in your PHP logs, or in an external tool like Query Manager? It’s worth checking you have 755 permissions on your WordPress site’s directories, the process owner is also www-data to see if the web server stops failing on writing.

    If that doesn’t seem to help, please drop us a diagnostic report to wftest @ wordfence . com using the link at the top of the Wordfence > Tools > Diagnostics page so I can look into this further for you. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    NOTE: It should look as follows – Screenshot of Tools > Diagnostic > Send by Email

    Thanks,
    Peter.

    Thread Starter mattinventive

    (@mattinventive)

    Hey Peter,

    Thanks a bunch for your response.

    • Unlink issue is coming up in the PHP logs.
    • I can confirm that the directories wp-admin, wp-content and wp-includes have the permissions 755 however due to how Pantheon works I’ve had to create a symbolic link from wordfence-waf.php to /wp-content/uploads/private as per Pantheons installation instructions so I wonder if this is an issue.
    • Again due to how pantheon works the file owners are root

    I will follow your advice to send a report via email following your instructions for more information

    Thanks a bunch for the help ??

    Plugin Support wfpeter

    (@wfpeter)

    Hi @mattinventive, thanks for getting back to me with all that information.

    It seems that we do currently have an issue with some sites running on Pantheon but do intend to implement a fix in an upcoming version of the plugin. Prior cases I’ve seen do seem to be related to the Wordfence scan rather than the ones we’re seing here though.

    We do not have a diagnostic email containing your username “mattinventive” in our the inbox for wftest specified above.

    If you contact the same email address with your username in the subject line, but instead export the diagnostic as a txt file from the same Diagnostics screen and attach it from your regular email account, I will be more than happy to look into it for you immediately.

    Thanks,
    Peter.

    Thread Starter mattinventive

    (@mattinventive)

    Hey Peter,

    Thanks again for your response, weird I’ve noticed this PHP8 issue is also happening for another user in the support forums, however they haven’t mentioned a fix so luckily I’m not the only one.

    I’ve sent the diagnostics via email as requested with my WordPress username in the subject line.

    Thread Starter mattinventive

    (@mattinventive)

    Hello, I’m wondering if there’s any update on this? I now have this on multiple of accounts which are hosting on Pantheon.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP 8 Wordfence Warnings’ is closed to new replies.