Conflict with Yoast SEO Premium when using redirects (“SECURE_AUTH_COOKIE”)
-
I’m currently working on a site that is part of a WordPress (v6.4.3) multisite installation on a server running PHP v8.1.26 that has both Wordfence Security (v7.11.1) and Yoast SEO Premium (v22.0) plugins installed and activated.
When the “Redirects” feature of Yoast SEO is used on this site to enable 301 and 307 redirects, a 500 error occurs as the result of a PHP fatal error:
PHP Fatal error: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE"
I’ve seen this same or very similar problem reported here in these support threads, but I haven’t seen a solution in any of them unfortunately despite the fact that they’ve all be marked as resolved:
- Conflict with Yoast SEO Premium (warnings when performing a 301 redirect) (3 years, 2 months ago)
- PHP Fatal error: Uncaught Error: Undefined constant “SECURE_AUTH_COOKIE” (1 year, 7 months ago)
- Yoast SEO premium conflict with (1 year, 6 months ago)
- PHP Fatal error: Uncaught Error: Undefined constant “SECURE_AUTH_COOKIE” (1 year, 4 months ago)
- Conflict with Yoast SEO premium (1 year, 3 months ago)
I reached out to Yoast support, and this was their response, which is why I’m reaching out to Wordfence Security support now:
“We’d still expect Yoast to work with WordFence. However, as WordFence sometimes modifies parts of the server for security purposes, it takes some additional steps and configuration to make it work with Yoast.
“We already have a feature request to alert users of possible issues when using security plugins like WordFence, and users can fix it by adjusting their security configuration. As of now, that is still pending with our development team.
“In the meantime, we’d recommend you work directly with WordFence to resolve the issue, as there is the expectation that the WordFence plugin needs to be configured first to be able to work with Yoast.”
Any help you are able to provide in this matter is greatly appreciated. If there’s something in the Wordfence configuration that needs to be adjusted, please let me know what that is. Thank you.
- The topic ‘Conflict with Yoast SEO Premium when using redirects (“SECURE_AUTH_COOKIE”)’ is closed to new replies.