Multi-site – cannot set up firewall
-
I have installed Wordfence on our multi-site installation at archwebsite.com. Since we’ve been having a lot of brute force login attempts, I wanted to adjust the protection settings. When I go to the Optimize the Wordfence Firewall > Configure Firewall, and make any changes, the Save Changes button does not work (nothing happens when I click on it).
I wasn’t able to create the Prepend file (which I’ve done routinely for my single site installs) either.
Everything on this multi-site is up to date.
Are there any tricks to making Wordfence fully functional for a multi-site?
-
Hey @ericbobrow,
Can you please open your browser console to see if there are any errors when clicking the Save Changes Button?
Can you please do the same when trying to create the Prepend file?
https://www.wordfence.com/help/advanced/troubleshooting/#how-to-inspect-the-browser-console
Please let me know.
Thanks,
Gerroald
Hi WFGerroald –
Yes, there are errors that show up in the Console. When in the admin dashboard, there are no errors, however when I switch to Wordfence it gets a bunch, here is a screenshot:
https://www.screencast.com/t/hP9LiKJbmxY2VM1089 admin.php:855 Uncaught TypeError: $(…).wfCircularProgress is not a function
at VM1089 admin.php:855
at VM1089 admin.php:862
(anonymous) @ VM1089 admin.php:855
(anonymous) @ VM1089 admin.php:862
VM1090 admin.php:904 Uncaught TypeError: $(…).wfCircularProgress is not a function
at VM1090 admin.php:904
at VM1090 admin.php:911
(anonymous) @ VM1090 admin.php:904
(anonymous) @ VM1090 admin.php:911
admin.php?page=Wordfence:1413 Uncaught ReferenceError: WFAD is not defined
at HTMLDocument.<anonymous> (admin.php?page=Wordfence:1413)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)Here’s a screenshot when I open up the Firewall section of Wordfence:
https://www.screencast.com/t/JCbSmNuZaMfoHere’s a copy/paste of what it says:
VM1501 admin.php:870 Uncaught TypeError: $(…).wfCircularProgress is not a function
at VM1501 admin.php:870
at VM1501 admin.php:877
(anonymous) @ VM1501 admin.php:870
(anonymous) @ VM1501 admin.php:877
VM1502 admin.php:919 Uncaught TypeError: $(…).wfCircularProgress is not a function
at VM1502 admin.php:919
at VM1502 admin.php:926
(anonymous) @ VM1502 admin.php:919
(anonymous) @ VM1502 admin.php:926
VM1503 admin.php:960 Uncaught TypeError: $(…).wfCircularProgress is not a function
at VM1503 admin.php:960
at VM1503 admin.php:967
(anonymous) @ VM1503 admin.php:960
(anonymous) @ VM1503 admin.php:967
VM1504 admin.php:1001 Uncaught TypeError: $(…).wfCircularProgress is not a function
at VM1504 admin.php:1001
at VM1504 admin.php:1008
(anonymous) @ VM1504 admin.php:1001
(anonymous) @ VM1504 admin.php:1008
VM1517 admin.php:2153 Uncaught ReferenceError: WFAD is not defined
at VM1517 admin.php:2153
at VM1517 admin.php:2239
(anonymous) @ VM1517 admin.php:2153
(anonymous) @ VM1517 admin.php:2239
VM1520 admin.php:2972 Uncaught ReferenceError: WFAD is not defined
at VM1520 admin.php:2972
at VM1520 admin.php:3354
(anonymous) @ VM1520 admin.php:2972
(anonymous) @ VM1520 admin.php:3354
admin.php?page=WordfenceWAF:1981 Uncaught ReferenceError: WFAD is not defined
at HTMLDocument.<anonymous> (admin.php?page=WordfenceWAF:1981)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
(anonymous) @ admin.php?page=WordfenceWAF:1981
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
ready @ jquery.js?ver=1.12.4-wp:2
J @ jquery.js?ver=1.12.4-wp:2
wp-auth-check.js?ver=5.3.2:142 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined
at HTMLDocument.<anonymous> (wp-auth-check.js?ver=5.3.2:142)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4-wp:3)
at HTMLDocument.r.handle (jquery.js?ver=1.12.4-wp:3)
at Object.trigger (jquery.js?ver=1.12.4-wp:3)
at Object.jQuery.event.trigger (jquery-migrate.js?ver=1.4.1:633)
at HTMLDocument.<anonymous> (jquery.js?ver=1.12.4-wp:3)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at jQuery.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at jQuery.fn.init.trigger (jquery.js?ver=1.12.4-wp:3)
at Object.<anonymous> (heartbeat.js?ver=5.3.2:464)
(anonymous) @ wp-auth-check.js?ver=5.3.2:142
dispatch @ jquery.js?ver=1.12.4-wp:3
r.handle @ jquery.js?ver=1.12.4-wp:3
trigger @ jquery.js?ver=1.12.4-wp:3
jQuery.event.trigger @ jquery-migrate.js?ver=1.4.1:633
(anonymous) @ jquery.js?ver=1.12.4-wp:3
each @ jquery.js?ver=1.12.4-wp:2
each @ jquery.js?ver=1.12.4-wp:2
trigger @ jquery.js?ver=1.12.4-wp:3
(anonymous) @ heartbeat.js?ver=5.3.2:464
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
x @ jquery.js?ver=1.12.4-wp:4
c @ jquery.js?ver=1.12.4-wp:4
XMLHttpRequest.send (async)
(anonymous) @ VM1439:1
send @ jquery.js?ver=1.12.4-wp:4
ajax @ jquery.js?ver=1.12.4-wp:4
connect @ heartbeat.js?ver=5.3.2:421
scheduleNextTick @ heartbeat.js?ver=5.3.2:522
focused @ heartbeat.js?ver=5.3.2:556
userIsActive @ heartbeat.js?ver=5.3.2:579
(anonymous) @ heartbeat.js?ver=5.3.2:611
dispatch @ jquery.js?ver=1.12.4-wp:3
r.handle @ jquery.js?ver=1.12.4-wp:3
wp-auth-check.js?ver=5.3.2:142 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined
at HTMLDocument.<anonymous> (wp-auth-check.js?ver=5.3.2:142)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4-wp:3)
at HTMLDocument.r.handle (jquery.js?ver=1.12.4-wp:3)
at Object.trigger (jquery.js?ver=1.12.4-wp:3)
at Object.jQuery.event.trigger (jquery-migrate.js?ver=1.4.1:633)
at HTMLDocument.<anonymous> (jquery.js?ver=1.12.4-wp:3)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at jQuery.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at jQuery.fn.init.trigger (jquery.js?ver=1.12.4-wp:3)
at Object.<anonymous> (heartbeat.js?ver=5.3.2:464)After making a couple of small changes (reducing failed login threshold from 20 to 10, etc.) I tried clicking the Save Changes button, but nothing happens. The console does not show that any action happens when I click – the button is disabled.
Let me know what would be the next steps for troubleshooting, thanks for your help!!
Hey @ericbobrow,
Thanks for the information.
It sounds like there might be a conflict either with the theme or one of the plugins you’re using, could you try temporarily switching to a default theme if you’re not already using one and disabling all other network plugins then reactivating them one by one to see if the issue persists?
To do so I recommend the Health Check & Troubleshooting plugin which allows you to disable all plugins and switch to a default theme, but only for your user.
Please let me know what you find.
Thanks,
Gerroald
Gerroald –
I have installed the Health Check & Troubleshooting plugin and network activated it.
However I don’t see a way to access the controls for this plugin, since there is no Tools section (only Settings) in the network admin, and that is where it is managed. Perhaps that plugin is not really usable in this context.It appears that Wordfence is only controllable from the network admin area, and Health Check & Troubleshooting is not controllable from the network admin, so I’m stuck.
We have dozens of active sites on this multi-site, so I’m reluctant to do any testing in terms of random or systematic network deactivation of plugins that would affect all of the active sites.
Any ideas for how to proceed?
Eric
Hey @ericbobrow,
I completely understand.
This error likely indicates that jQuery is getting loaded after the wfCircle-Libray, which your screenshot indicates as well.
Uncaught TypeError: $(…).wfCircularProgress is not a function
This is likely due to a plugin or theme conflict, possibly because of custom code. Are you able to set up a simple test site with the network plugins you have installed to test on?
If not, would it be possible to quickly deactivate the plugins one at a time? I understand if not.
Also, can you please share a list or your network active plugins, and any custom code?
Please let me know.
Thanks,
Gerroald
If not, I understand deactiv
Gerroald –
This multi-site has a large number of plugins installed; 44 are Network Activated:
ActiveCampaign
All-in-One WP Migration
All-in-One WP Migration Multisite Extension
Appointments+
Beehive Pro
Better Search Replace
Branda Pro
Breadcrumb NavXT
Classic Editor
ClickFunnels
Cloner
Contact Form 7
Custom Fonts
Disable New User Notifications
Disable XML-RPC
Domain Mapping
Duplicate Page
Easy Blogging
Extended Super Admins
Google Tag Manager for WordPress
Grid Kit
Health Check & Troubleshooting
iframe
Master Slider
Multisite Content Copier
Really Simple CAPTCHA
Server IP & Memory Usage Display
ShortPixel Image Optimizer
Simple 301 Redirects
Slider Revolution
Thrive Architect
Thrive Leads
Thrive Product Manager
Tracking Code Manager
UpdraftPlus – Backup/Restore
Wordfence Security
WordPress Importer
WP Migrate DB Pro CLI
WP Migrate DB Pro Media Files
WP Migrate DP Pro Multisite Tools
WP Migrate DB Pro Theme & Plugin FIles
WP Offload Media
WPMDB – List all subsites
WPMU DEV DashboardIn addition, under Must-Use (in the Plugins header):
[Files in the /wp-content/mu-plugins directory are executed automatically.]
Whitelist Private IPsAlso, in Drop-in (in the Plugins header):
[Drop-ins are single files, found in the wp-content directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.]
sunrise.php [Executed before Multisite is loaded]Looking at this long list…any ideas which ones could be the culprit; I can test those first.
Eric
One more bit of info: we’ve been having a lot of hacking issues with our dedicated server, which is why I’ve installed Wordfence. One of the modifications our server team did was to disable wp-cron inside wp-config.php.
define(‘DISABLE_WP_CRON’, true);
They’ve set up an alternate way to run the cron jobs that is supposed to minimize the demand on the server that comes from high levels of access (brute force attacks or otherwise).
I don’t know that this has anything to do with the issue, but it’s the only bit of custom code that I know of for this multi-site.
Hey @ericbobrow,
I don’t believe using an alternate cron has anything to do with this.
This is quite a few plugins, and unfortunately, we don’t have much to go on. Perhaps check the PHP error logs once you’ve tried to save. There may be a clue there.
Please try clicking the Save Changes button, then looking at the PHP error logs. If you can share them here I’ll take a look as well.
Please let me know.
Thanks,
Gerroald
- The topic ‘Multi-site – cannot set up firewall’ is closed to new replies.