Hi @laserstore
I hope you’re well today!
Yes, it would definitely be a conflict/incompatibility with other plugin. One that we are already aware of is “WooCommerce Payments”.
A fix for it should be included in one of upcoming updates (though I don’t yet have an ETA).
If you are using this plugin on your site, there’s a “patch” that should help. To apply it you would need to add this code to your site:
<?php
function wpmudev_set_cookie_on_current_request( $cookie ) {
if ( ! is_user_logged_in() && isset( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
unset( $_COOKIE[ LOGGED_IN_COOKIE ] );
}
}
add_action( 'set_logged_in_cookie', 'wpmudev_set_cookie_on_current_request', 999);
Best way would be to add it as “MU plugin”:
– create an empty file with a .php extension (e.g. defender-auth-patch.php)
– copy and paste code into it
– upload it to the /wp-content/mu-plugins folder of your site’s WordPress installation
That said, if you are not using aforementioned plugin you can also try this code but if it doesn’t help, a full conflict test would be necessary to identify the plugin conflicting on your site and then, knowing about it, our developers could work out a fix for it too.
Best regards,
Adam
Hey @wpmudev-support8 thank you very much!
I followed your instructions and apparently the problem was solved really, even though I didn’t use the plugin you mentioned at the beginning. In this case, when there is an update of your plugin, can I delete this file?
Hi @laserstore
I’m happy I helped!
As for removing the file, I’m afraid I’m not yet sure in which upcoming update there’ll be a permanent fix included – whether it will be the nearest one or later.
It should be mentioned in plugin’s change log upon update but the safest solution would be to just update plugin, remove that file and test – if the issue still happens, put the patch file back and try again after next update.
Best regards,
Adam
Hello @laserstore !
Hope you’re having a good day!
Looks like the issue is resolved now so I’ll go ahead and mark the ticket as such. Of course if you need any additional help – please let us know.
Kind regards,
Pawel