Hi BillOsuch,
This error is coming from a conflict between Wordfence and your WordPress version — the
get_current_site()
function isn’t loading correctly, likely due to an incomplete plugin file or a WordPress core issue.
Quick fix to try:
- Deactivate Wordfence → re-activate it
- If that doesn’t work: delete Wordfence via FTP (don’t just deactivate) → reinstall fresh from WordPress.org
- Check if you’re running a multisite — this function behaves differently there
If the error keeps coming back after reinstall, the WordPress core files may be corrupted.
I can resolve this quickly if needed
Thanks for your advice above @cemsid, that’s a good set of instructions to try first when it could be a potential failed update or installation.
@billosuch, just in case any settings need to be kept during that process, check our remove/reset instructions: https://www.wordfence.com/help/advanced/remove-or-reset/
The role sync cron runs on multisite so it’d be good to know if this error is coming from the master site. If you’re not running multisite and/or a reinstallation rectified the messages then we don’t need to go further with that.
Peter.
I wonder if this is the same issue I am facing. Wordfence and Divi Sumpreme Pro do not work well together.
When both are activated, I get a white screen saying that there has been a critical error on the website.
Right now I have Wordfence Deactivated because of the website. You mentioned to @cemsid to delete and reinstall it via FTP. Why can’t this be done in the cpanel or the WP dashboard itself?
@wfpeter Would your article be better to do first? Or should I just delete it and then reinstall it again to try to correct the issue?
Hi @ez123abc,
I don’t think it’s the same issue. It sounds more like a false-positive block in the background is preventing pages with Divi elements from loading properly.
Wordfence will show the blocks it made on the Live Traffic page. Check it immediately after running into the blank page issue. You may be able to manually allowlist it from there using the “ADD PARAM TO FIREWALL ALLOWLIST” button. Alternatively, enable Learning Mode temporarily and try loading the page(s) with problems again. You can read more by clicking that link, but make sure to return the firewall to “Enabled and Protecting” afterwards.
If that doesn’t work, please open a new topic referencing your post here as dealing with multiple issues in the same topic can be hard to follow for the original poster’s problem.
Many thanks,
Peter.