Support » Plugin: Wordfence Security - Firewall & Malware Scan » Wordfence "failure to include" files on Multisite

  • Resolved aloeroot

    (@aloeroot)


    Hi folks. I noticed recently Wordfence had apparently disappeared from my Multisite. I tried to reinstall it and was told it was already in place, so I deleted the folder, and attempted to reinstall. It allows me to network activate it, but then the Live Activity message bar gives me the following:

    Warning: include(wfDict.php): failed to open stream: No such file or directory in /home/[removed]/public_html/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 61 Warning: include(): Failed opening ‘wfDict.php’ for inc

    wfDict.php is on the server, and appears fine. It’s not truncated, and the file doesn’t seem damaged.

    Line 61 in wfScanEngine.php is as follows:

    $this->apiKey = wfConfig::get('apiKey');
    		$this->api = new wfAPI($this->apiKey, $this->wp_version);
    		<strong>include('wfDict.php'); //$dictWords</strong>
    		$this->dictWords = $dictWords;
    		$this->jobList[] = 'publicSite';

    https://wordpress.org/plugins/wordfence/

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

    (@wfmattr)

    Can you check the site’s error log file, to see if there are any additional errors listed? If there are, you can post them here. (If it is long, please use pastebin.com, and just give us a link here. Remember to remove sensitive information, if there is any.)

    Also, when you deleted the folder in order to reinstall, were there any files in it at the time? It might be possible that a failed update caused the plugin to become deactivated, if you have “Update Wordfence automatically when a new version is released” enabled. I have not seen this for certain before, but do recall someone with missing files that may not have been resolved.

    The warning about wfDict.php may have happened before the plugin was reinstalled, so it may have been a side-effect of the other issue. If you can try running a second scan and see if the error message appears again, that part may already be fixed. (You can click the “View activity log” link below the Scan Detailed Activity box on the Scan page, so see a much larger view of the scan results.)

    -Matt R

    The warning about wfDict.php may have happened before the plugin was reinstalled, so it may have been a side-effect of the other issue.

    You’re right; the new scan completed without issue and WF seems to be working fine again. Thanks for your help!

    I didn’t think to check if there were files in the WF folder when I deleted it, so I can’t answer that. A reinstall seemed to be the fix after all. Thanks.

    Plugin Author WFMattR

    (@wfmattr)

    Ok, thanks! Let us know if you see any more related issues.

    -Matt R

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wordfence "failure to include" files on Multisite’ is closed to new replies.