- Wordpress version 4.3.1, running in network mode.
- Logged in as super admin.
- In the main site's dashboard.
When I try to deactivate all active plugins at once, I am taken to a white screen with the message
"Are you sure you want to do this?"
I have tried adding the following code to /wp-config.php
mentioned in this quite old answer, but the issue remains.
function check_admin_referer($action = -1, $query_arg = '_wpnonce') {
if ( -1 == $action )
_doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2' );
$adminurl = strtolower(admin_url());
$referer = strtolower(wp_get_referer());
$result = isset($_REQUEST[$query_arg]) ? wp_verify_nonce($_REQUEST[$query_arg], $action) : false;
if ( !$result && !(-1 == $action /* skip this: && strpos($referer, $adminurl) === 0 */) ) {
wp_nonce_ays($action);
die();
}
do_action('check_admin_referer', $action, $result);
return $result;
}
It's a pain deactivating / reactivating plugins in small groups during troubleshooting.
Any thoughts? Thanks.
debug.log
, and it has 1010 lines of errors generated bymainwp
&bloom
, all generated today. I have too many plugins I care to admit to, but the culprit is in the comment above yours.Enhanced Ecommerce Google Analytics Plugin for WooCommerce
issue is here.