AutoFix warning on subsites
-
I receive this error on sites within a multi-site configuration:
BPS Setup Wizard AutoFix (AutoWhitelist|AutoSetup|AutoCleanup) Notice One or more of your plugins or your theme requires a BPS Custom Code whitelist rule to be automatically created by the Setup Wizard. Click this Setup Wizard link and click the Setup Wizard button to automatically create BPS Custom Code whitelist rules. This BPS AutoFix check can be turned Off on the Setup Wizard Options page if you do not want BPS to check for any plugin or theme whitelist rules.I went to the root site’s Setup Wizard Options and deselected “AutoFix (AutoWhitelist|AutoSetup|AutoCleanup)”
The error remains on the other sites’ edit pages.
Is there something else I need to do?
-
It would be better to run the Setup Wizard to allow the Setup Wizard to autofix your Custom Code. There is one known issue so far with the new Setup Wizard AutoFix feature and that is if have added this modified BPS Query String Exploits code below in this BPS Root Custom Code text box: 12. CUSTOM CODE BPSQSE BPS QUERY STRING EXPLOITS then the Setup Wizard AutoFix feature will continue to display the BPS Setup Wizard AutoFix notice. The solution is to delete the modified BPS Query String Exploits code in the 12. CUSTOM CODE BPSQSE BPS QUERY STRING EXPLOITS Custom Code text box, click the Save Root Custom Code button and run the Setup Wizard. The new Setup Wizard AutoFix feature will detect and create any new whitelist rules that are needed in the BPS Query String Exploits code in Custom Code and your Root htaccess file. The same issue would also occur for this wp-admin Custom Code text box: 4. CUSTOM CODE BPSQSE-check BPS QUERY STRING EXPLOITS AND FILTERS.
Modified BPS Query String Exploits code example:
# BEGIN BPSQSE BPS QUERY STRING EXPLOITS # The libwww-perl User Agent is forbidden - Many bad bots use libwww-perl modules, but some good bots use it too. # Good sites such as W3C use it for their W3C-LinkChecker. # Use BPS Custom Code to add or remove user agents temporarily or permanently from the # User Agent filters directly below or to modify/edit/change any of the other security code rules below. RewriteCond %{QUERY_STRING} (sp_executesql) [NC] RewriteRule ^(.*)$ - [F] # END BPSQSE BPS QUERY STRING EXPLOITSI removed 4 and 12 in Custom Root Code, turned on Auto Fix, and re-ran the Setup Wizard.
Still seeing this error on subsite dashboards:
BPS Setup Wizard AutoFix (AutoWhitelist|AutoSetup|AutoCleanup) Notice One or more of your plugins or your theme requires a BPS Custom Code whitelist rule to be automatically created by the Setup Wizard. Click this Setup Wizard link and click the Setup Wizard button to automatically create BPS Custom Code whitelist rules. This BPS AutoFix check can be turned Off on the Setup Wizard Options page if you do not want BPS to check for any plugin or theme whitelist rules.hmm I believe the BPS Setup Wizard AutoFix Notice should not be displayed on subsites at all. I will need to test this on a testing site. What type of site is this: WordPress subdirectory or subdomain Network/Mutisite site or WPMU multisite?
Also the WP Multi Network plugin has several known compatibility issues with BPS and is pending further investigation/testing at a later day.
Thanks for asking.
It is a multisite network with domain parking.
thecompass.com (ID=1)
wgbhalumni.org
fohi.orgSo that would be a WordPress subdomain Network/Multisite site type then correct?
Forgive me for not knowing the correct terms. That sounds right.
I’m not using a plugin named “WP Multi Network plugin”. We only used those features baked into standard WP install.
Also, we’re using “BPS MU Tools” and it is in the “Must Use” category. Let me know if we should remove that.
I have tested both a WordPress sudirectory and subdomain site type and the BPS Setup Wizard AutoFix Notice is only displayed on the Primary site and not subsites. I tested turning Setup Wizard AutoFix On and Off and it works correctly on both site types. A significant clue that something is wrong somewhere is that you cannot turn off the Setup Wizard AutoFix notice by selecting the AutoFix (AutoWhitelist|AutoSetup|AutoCleanup) > AutoFix Off option setting. The function that checks for AutoFixes has this condition in that function and will not continue processing or display the Notice if AutoFix is turned Off.
if ( $AutoFix_Options['bps_wizard_autofix'] == 'Off' ) { return; }What exactly is “parked domains”? Is it a plugin or something else? When you turn Off Setup Wizard AutoFix are you still seeing the Notice on the Primary site as well as the subsites or are you only seeing the Notice on the subsites?
In the “Network Admin” > “Sites” > “Edit Site” screen, the subdomain is configured, such as: http://site.com/domain-name/
Then, with our host, we park the domain on that subdirectory to yield the correct domain.
By the way, we’ve been configured in this way for at least 2-3 years, and this is the first time the error message is appearing.
Ok so what about these things > When you turn Off Setup Wizard AutoFix are you still seeing the Notice on the Primary site as well as the subsites or are you only seeing the Notice on the subsites?
Also are you only seeing the Notice on a particular WordPress page? I reread your original post and you stated this > “The error remains on the other sites’ edit pages.” Does that mean you are only seeing the Notice on WordPress Post and Page editor pages and are you seeing the Notice on all sites or just subsites?
-
This reply was modified 8 years, 9 months ago by
AITpro.
Appearing on the dashboards of each of the subsites.
Double check that you have turned Off Setup Wizard AutoFix > AutoFix (AutoWhitelist|AutoSetup|AutoCleanup) > select AutoFix Off > click the Save AutoFix Option button. What is odd to me is that you are not seeing the Notice on the Primary site Dashboard pages. That would indicate that AutoFix Off is working on the Primary site, but not on the subsites for some strange reason. The only logical explanation I can think of is that one of your other plugins is triggering the admin_notices Action for the Setup Wizard AutoFix function incorrectly, but that still would not explain why the
$AutoFix_Options['bps_wizard_autofix'] == 'Off'condition would not be working to stop the Notice from being displayed anywhere/everywhere. Very odd???I found another option on the Setup Wizard options page:
“Network|Multisite Sitewide Login Security Settings”
Button: SAVE NETWORK LSM OPTIONS SITEWIDEI clicked on the button, and received these confirmations:
Site: 1 LSM DB Options created or updated Successfully!
Site: 3 LSM DB Options created or updated Successfully!
Site: 4 LSM DB Options created or updated Successfully!
Site: 6 LSM DB Options created or updated Successfully!
Site: 9 LSM DB Options created or updated Successfully!
Site: 12 LSM DB Options created or updated Successfully!
Site: 16 LSM DB Options created or updated Successfully!
Site: 19 LSM DB Options created or updated Successfully!
Site: 23 LSM DB Options created or updated Successfully!
Site: 26 LSM DB Options created or updated Successfully!
Site: 29 LSM DB Options created or updated Successfully!
Site: 34 LSM DB Options created or updated Successfully!Now all set. That was the key, but it was below the viewport and I didn’t see it.
-
This reply was modified 8 years, 9 months ago by
The topic ‘AutoFix warning on subsites’ is closed to new replies.