• Resolved stayfit2016

    (@stayfit2016)


    I receive the below email every month. I dont want to modify my .htaccess file as suggested, I just want to update manually, how do I do this in Wordfence?

    To preserve the integrity of your website we are not running Wordfence auto-update.
    You are running the LiteSpeed web server which has been known to cause a problem with Wordfence auto-update.
    Please go to your website now and make a minor change to your .htaccess to fix this.

    Alternatively you can disable auto-update on your website to stop receiving this message and upgrade Wordfence manually.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @stayfit2016,

    Can you run the following query on your database?

    UPDATE wp_wfconfig SET val=2147483647 WHERE name='lastLiteSpdEmail';

    Wordfence sends an email every 30 days, and keeps track of the last time it sent an email in with the identifier lastLiteSpdEmail.

    If you make this value very high, it won’t sent an email until a few decades later.

    The related code is found within /wp-content/plugins/wordfence/lib/wfConfig.php:928:

    $lastEmail = self::get('lastLiteSpdEmail', false);
    if( (! $lastEmail) || (time() - (int)$lastEmail > (86400 * 30))){

    It pulls this value, and then compares to see if the difference in time exceeds 30 days or not.

    Dave

    Hi @stayfit2016,

    We haven’t heard back from you in a while, so I’ve gone ahead and marked this thread as resolved.

    Please feel free to open another thread if you’re still having issues with Wordfence.

    Thanks,

    Gerroald

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wordfence will not update’ is closed to new replies.