• Hi, I just installed this plugin, and the first scan didn’t happen. I hit the scan button several times. Nothing. I checked the JS error console, nothing there. No errors in the servers PHP error log, or in the access error log. I do have wp-admin behind .htaccess, but admin-ajax.php is excepted, and is returning a 200 response code according to the browser’s console. Any ideas on what’s happening? I even have WP_DEBUG on.

    As I was writing this I just checked the debug log, and found this error:

    PHP Notice: Undefined variable: err in .../wp-content/plugins/wordfence/lib/wordfenceClass.php on line 879

    https://www.ads-software.com/extend/plugins/wordfence/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Wordfence Security

    (@mmaunder)

    Hi,

    I’ve checked the newest code and we dont’ have a variable called “err” at that line in the newest version. Can you send me the full message if you’ve left something out.

    Also makes sure you’re running the newest version.

    Thanks,

    Mark.

    Thread Starter J.D. Grimes

    (@jd55)

    I am using 3.5.2. I checked that file, and the variable is there:

    //Clears next scan if scans are disabled. Schedules next scan if enabled.
    /*879*/		if($err){
    			return array('errorMsg' => $err);
    		} else {
    			return array('ok' => 1, 'reload' => $reload, 'paidKeyMsg' => $paidKeyMsg );
    		}

    That probably has nothing to do with the problem though.

    Here is what is in the “detailed activity” section after about 12 hours installed:

    [Feb 06 01:46:32] Scheduled Wordfence scan starting at Wednesday 6th of February 2013 01:46:32 AM
    [Feb 06 05:48:29] Scheduled Wordfence scan starting at Wednesday 6th of February 2013 05:48:29 AM
    [Feb 06 08:51:33] Scheduled Wordfence scan starting at Wednesday 6th of February 2013 08:51:33 AM

    There is nothing in the “new issue” area.

    Plugin Author Wordfence Security

    (@mmaunder)

    Thanks, I agree that warning is not related.

    Are you seeing a “0” when you hit your AJAX handler? For some clarity on what I mean, see the top item on our FAQ:

    https://www.wordfence.com/docs/frequently-asked-questions/

    Thanks,

    Mark.

    Thread Starter J.D. Grimes

    (@jd55)

    Yes, I am seeing the “0”.

    I have the whole /wp-admin/ behind a second password, but I don’t think that it’s causing a problem. The live traffic is working perfectly.

    Thread Starter J.D. Grimes

    (@jd55)

    Thank you for the help, Mark. This is now fixed.

    It turned out that admin-ajax.php was password protected. I made an exception for it, and now things are working great!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘First scan didn't happen’ is closed to new replies.