• Resolved Droogs

    (@droogs)


    I am getting an error I have not seen before when using wordfence for a few years.
    I followed the debugging information in the link “Click here for steps you can try.” but it did not work.

    This error about permissions is new. I have not installed any new plugins for at least 11 weeks.

    Please find the debug information below.

    [Nov 20 11:13:58:1542730438.647590:2:error] Scan terminated with error: Wordfence could not read the contents of your base WordPress directory. This usually indicates your permissions are so strict that your web server can’t read your WordPress directory.
    [Nov 20 11:13:58:1542730438.647590:10:info] SUM_KILLED:Previous scan terminated with an error. See below.
    [Nov 20 11:13:58:1542730438.647590:1:error] <br /> <b>Warning</b>: scandir(D:\Hosting\4923565\html/,D:\Hosting\4923565\html/): Access is denied. (code: 5) in <b>D:\Hosting\4923565\html\wp-content\plugins\wordfence\lib\wfScanEngine.php</b> on line <b>754</b><br /> <br /> <b>Warning</b>: scandir(D:\Hosting\4923565\html/): failed to open dir: Permission denied in <b>D:\Hosting\4923565\html\wp-content\plugins\wordfence\lib\wfScanEngine.php</b> on line <b>754</b><br /> <br /> <b>Warning</b>: scandir(): (errno 13): Permission denied in <b>D:\Hosting\4923565\html\wp-content\plugins\wordfence\lib\wfScanEngine.php</b> on line <b>754</b><br />
    [Nov 20 11:13:58:1542730438.304302:4:error] scandir(D:\Hosting\4923565\html/,D:\Hosting\4923565\html/): Access is denied. (code: 5) (2) File: D:\Hosting\4923565\html\wp-content\plugins\wordfence\lib\wfScanEngine.php Line: 754
    [Nov 20 11:13:58:1542730438.304302:4:error] scandir(D:\Hosting\4923565\html/): failed to open dir: Permission denied (2) File: D:\Hosting\4923565\html\wp-content\plugins\wordfence\lib\wfScanEngine.php Line: 754
    [Nov 20 11:13:58:1542730438.304302:4:error] scandir(): (errno 13): Permission denied (2) File: D:\Hosting\4923565\html\wp-content\plugins\wordfence\lib\wfScanEngine.php Line: 754
    [Nov 20 11:13:58:1542730438.304302:4:info] Calling Wordfence API v2.25:https://noc1.wordfence.com/v2.25/?k=bb3457b8c38c8b7301664fcd783a54be8f692cdb6d101180702cd42a4118e92877a2dcb5242584e6a9eda23786b833507731f6c9cbd66177c43de960a4d56422&s=eyJ3cCI6IjQuOS44Iiwid2YiOiI3LjEuMTciLCJtcyI6ZmFsc2UsImgiOiJodHRwOlwvXC93YXJtd2F0ZXIuY29tIiwic3NsdiI6MjY4NDQzODIzLCJwdiI6IjUuNi4zMCIsInB0IjoiY2dpLWZjZ2kiLCJjdiI6IjcuNTEuMCIsImNzIjoiT3BlblNTTFwvMS4wLjJqIiwic3YiOiJNaWNyb3NvZnQtSUlTXC83LjUiLCJkdiI6IjUuMC45Ni1sb2cifQ&betaFeed=0&action=record_scan_metrics
    [Nov 20 11:13:58:1542730438.288698:10:info] SUM_ENDOK:Checking for future GeoIP support
    [Nov 20 11:13:58:1542730438.273094:10:info] SUM_START:Checking for future GeoIP support
    [Nov 20 11:13:58:1542730438.257490:2:info] Total disk space: 2 TB — Free disk space: 361.67 GB
    [Nov 20 11:13:58:1542730438.257490:2:info] The disk has 370345.96 MB available
    [Nov 20 11:13:58:1542730438.257490:10:info] SUM_ENDOK:Scanning to check available disk space
    [Nov 20 11:13:58:1542730438.241886:10:info] SUM_START:Scanning to check available disk space
    [Nov 20 11:13:58:1542730438.226282:2:info] Scanning DNS MX record for warmwater.com
    [Nov 20 11:13:58:1542730438.226282:2:info] Scanning DNS MX record for warmwater.com
    [Nov 20 11:13:58:1542730438.226282:10:info] SUM_ENDOK:Scanning DNS for unauthorized changes
    [Nov 20 11:13:58:1542730438.210678:2:info] Starting DNS scan for warmwater.com
    [Nov 20 11:13:58:1542730438.210678:2:info] Scanning DNS A record for warmwater.com
    [Nov 20 11:13:58:1542730438.195074:10:info] SUM_START:Scanning DNS for unauthorized changes
    [Nov 20 11:13:58:1542730438.179470:10:info] SUM_ENDSKIPPED:Checking for the most secure way to get IPs
    [Nov 20 11:13:58:1542730438.163866:10:info] SUM_START:Checking for the most secure way to get IPs
    [Nov 20 11:13:56:1542730436.150950:10:info] SUM_PAIDONLY:Checking if your site is on a domain blacklist is for paid members only
    [Nov 20 11:13:54:1542730434.138034:10:info] SUM_PAIDONLY:Checking if your IP is generating spam is for paid members only
    [Nov 20 11:13:52:1542730432.125118:10:info] SUM_PAIDONLY:Check if your site is being Spamvertized is for paid members only
    [Nov 20 11:13:52:1542730432.109514:4:info] Got value from wf config maxExecutionTime: 0
    [Nov 20 11:13:52:1542730432.109514:4:info] Got max_execution_time value from ini: 300
    [Nov 20 11:13:52:1542730432.109514:4:info] getMaxExecutionTime() returning half ini value: 150
    [Nov 20 11:13:51:1542730431.906662:4:info] Scan process ended after forking.
    [Nov 20 11:13:51:1542730431.797434:10:info] SUM_PREP:Preparing a new scan.
    [Nov 20 11:13:51:1542730431.797434:1:info] Contacting Wordfence to initiate scan
    [Nov 20 11:13:51:1542730431.797434:4:info] Calling Wordfence API v2.25:https://noc1.wordfence.com/v2.25/?k=bb3457b8c38c8b7301664fcd783a54be8f692cdb6d101180702cd42a4118e92877a2dcb5242584e6a9eda23786b833507731f6c9cbd66177c43de960a4d56422&s=eyJ3cCI6IjQuOS44Iiwid2YiOiI3LjEuMTciLCJtcyI6ZmFsc2UsImgiOiJodHRwOlwvXC93YXJtd2F0ZXIuY29tIiwic3NsdiI6MjY4NDQzODIzLCJwdiI6IjUuNi4zMCIsInB0IjoiY2dpLWZjZ2kiLCJjdiI6IjcuNTEuMCIsImNzIjoiT3BlblNTTFwvMS4wLjJqIiwic3YiOiJNaWNyb3NvZnQtSUlTXC83LjUiLCJkdiI6IjUuMC45Ni1sb2cifQ&betaFeed=0&action=log_scan
    [Nov 20 11:13:51:1542730431.781830:4:info] Scan engine received request.
    [Nov 20 11:13:51:1542730431.781830:4:info] Fetching stored cronkey for comparison.
    [Nov 20 11:13:51:1542730431.781830:4:info] Checking cronkey: 1665ddf7bb7ae3b8b96a531f15c06de0 (expecting 1665ddf7bb7ae3b8b96a531f15c06de0)
    [Nov 20 11:13:51:1542730431.781830:4:info] Checking saved cronkey against cronkey param
    [Nov 20 11:13:51:1542730431.781830:4:info] Checking if scan is already running
    [Nov 20 11:13:51:1542730431.781830:4:info] Requesting max memory
    [Nov 20 11:13:51:1542730431.781830:4:info] Setting up error handling environment
    [Nov 20 11:13:51:1542730431.781830:4:info] Setting up scanRunning and starting scan
    [Nov 20 11:13:50:1542730430.892402:4:info] Test result of scan start URL fetch: array ( ‘headers’ => Requests_Utility_CaseInsensitiveDictionary::__set_state(array( ‘data’ => array ( ‘cache-control’ => ‘no-cache, must-revalidate, max-age=0’, ‘content-type’ => ‘text/html; charset=UTF-8’, ‘content-encoding’ => ‘gzip’, ‘expires’ => ‘Wed, 11 Jan 1984 05:00:00 GMT’, ‘vary’ => ‘Accept-Encoding’, ‘server’ => ‘Microsoft-IIS/7.5’, ‘x-robots-tag’ => ‘noindex’, ‘x-content-type-options’ => ‘nosniff’, ‘x-frame-options’ => ‘SAMEORIGIN’, ‘referrer-policy’ => ‘strict-origin-when-cross-origin’, ‘x-powered-by’ => ‘ASP.NET’, ‘date’ => ‘Tue, 20 Nov 2018 16:13:50 GMT’, ‘content-length’ => ‘133’, ), )), ‘body’ => ‘WFSCANTESTOK’, ‘response’ => array ( ‘code’ => 200, ‘message’ => ‘OK’, ), ‘cookies’ => array ( ), ‘filename’ => NULL, ‘http_response’ => WP_HTTP_Requests_Response::__set_state(array( ‘response’ => Reque
    [Nov 20 11:13:50:1542730430.892402:4:info] Starting cron with normal ajax at URL https://warmwater.com/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&scanMode=standard&cronKey=1665ddf7bb7ae3b8b96a531f15c06de0
    [Nov 20 11:13:49:1542730429.987370:4:info] Ajax request received to start scan.
    [Nov 20 11:13:49:1542730429.987370:4:info] Entering start scan routine
    [Nov 20 11:13:49:1542730429.987370:4:info] Got value from wf config maxExecutionTime: 0
    [Nov 20 11:13:49:1542730429.987370:4:info] Got max_execution_time value from ini: 300
    [Nov 20 11:13:49:1542730429.987370:4:info] getMaxExecutionTime() returning half ini value: 150
    [Nov 20 11:06:20:1542729980.665219:10:info] SUM_ENDOK:Scanning for old themes, plugins and core files
    [Nov 20 11:06:20:1542729980.665219:1:info] ——————-
    [Nov 20 11:06:20:1542729980.665219:2:info] Wordfence used 512 KB of memory for scan. Server peak memory usage was: 23.25 MB
    [Nov 20 11:06:20:1542729980.665219:1:info] Quick Scan Complete. Scanned in less than 1 second.
    [Nov 20 11:06:20:1542729980.665219:10:info] SUM_FINAL:Scan complete. Congratulations, no new problems found.
    [Nov 20 11:06:20:1542729980.618386:10:info] SUM_PREP:Preparing a new scan.
    [Nov 20 11:06:20:1542729980.618386:1:info] Initiating quick scan
    [Nov 20 11:06:20:1542729980.618386:10:info] SUM_START:Scanning for old themes, plugins and core files

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Droogs

    (@droogs)

    I have unchecked the Scan files outside your WordPress installation and still no luck.

    Thread Starter Droogs

    (@droogs)

    If I need to change permissions, where and to what?

    Hi @droogs,

    Can you right-click on your D:\Hosting\4923565\html\ folder -> Properties:

    Then click on the Security tab, from there check the permissions for Users.

    The read permission should be checked off.

    Dave

    Hi again!

    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error runnin scan’ is closed to new replies.