• Resolved gerobe

    (@gerobe)


    Hello,
    for testing I just switched to PHP8. After that, WordFence displays a message above the admin panel with a “Dismiss” button. But even after returning to PHP 7.4 this message does not disappear. Clicking the Dismiss-button changes nothing. How can I delete this message?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WFMattR

    (@wfmattr)

    Hi,

    Thanks for writing in — curiously, this box dismisses as it should for me on a local build of PHP 8, but only intermittently works on another host that offers PHP 8, including the issue you’re seeing where it can’t be dismissed on older PHP versions. It looks like it’s a stuck value in an in-memory cache, which might depend on PHP’s settings.

    Can you send a diagnostic report to wftest @ wordfence . com so that I can see your PHP configuration? You can find the link to do so at the top of the Wordfence Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    If you can run database queries, this should remove the notice:
    delete from wp_wfconfig where name = 'adminNoticeQueue';

    (You may need to change the table prefix, or capitalize the C in “wfConfig” if this is an older installation. This option will re-create itself when necessary, but should be empty.)

    -Matt R

    Plugin Author WFMattR

    (@wfmattr)

    Hi again,

    I did some testing and found the cause. We’ll have a fix in the next release, though that will likely be after the holidays. The issue turns out to be additional javascript causing the page to load at the same time as the AJAX request that would dismiss the notice, overwriting the value where the notice is stored, with its original value.

    The above database query would fix it in the meantime, or while viewing a Wordfence page with the notice at the top, running this in the browser console should also dismiss it — it’s essentially the same as clicking the button if the additional handler was not attached:
    jQuery('.wf-dismiss-link')[0].onclick()

    -Matt R

    Thread Starter gerobe

    (@gerobe)

    Thank you. I ran the database query and the message is gone.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t dismiss PHP8 message’ is closed to new replies.