Support » Plugin: Wordfence Security - Firewall & Malware Scan » Fatal Error-Warning: Unknown: failed to open stream (etc)
I suffered a Fatal Error in couchsurfingcook.com, here is the error message in the browser window.
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0Fatal error: Unknown: Failed opening required '/home/emseeeng/public_html/wordfence-waf.php' (include_path='.:/usr/local/php71/pear') in Unknown on line 0This is what happened,I logged into the website,Went to “WordFence > All Options > General WordFence Options / and checked “Delete WordFence tables and data on deactivation”, then saved.I clicked “Plugins” in the menu, screen page changed to the fatal error white page. Any Admin menu item clicked would result in a fatal errorI checked the website domain URL itself in another browser, same fatal error message.
You are watching: Warning: unknown: failed to open stream: no such file or directory in unknown on line 0
Researching this error, the Google result came up to the referenced link above. I read that post and the WordFence rep spoke about the “wordfence-waf.php” file. I went to FTP, looked at the root folder for the website to see that the “wordfence-waf.php” file was missing.
I went to my backup of the site and located the “wordfence-waf.php” file, it was in the root folder when I backed up in Dec 2018.
I FTP uploaded the PHP file to the website root folder.
That fixed the Fatal Error, and all was back to normal.
Conclusion:The absence of the “waf” file caused the error. How that file was removed, I do not know. Maybe WordFence deleted it when I checked that option as described above, or someone got into the root and deleted it, yet the site worked until I checked that WordFence option and saved the change, which dropped the website into a fatal error.
Moral of this story, ALWAYS make a good backup of your couchsurfingcook.com site, INCLUDING all root files. Most backup plugins now do not include root files (which is really dumb). To properly backup, I had to download all root files via FTP and ZIP them, then include that ZIP in the backup archive of the website.
See more: Im Looking For Mike Memes - Looking For Mike (Short 2016)
Glad I did.
QuestionWas this some glitch that occurred erasing the WAF file or could this be a hacker getting in and removing that file?