• Resolved lailamai

    (@lailamai)


    Hi,
    I have the exact same issue as https://www.ads-software.com/support/topic/yoast-seo-premium-conflict-with/ and it’s clearly a conflict between Yoast and Wordfence, I tried the solution mentioned here https://www.ads-software.com/support/topic/php-fatal-error-uncaught-error-undefined-constant-secure_auth_cookie/ but it didn’t work, I also contacted Yoast support and here’s what they said:
    “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’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.”
    Yoast works fine on staging (where Wordfence is not installed) but on production where we have Worfence, it just returns this error and redirections returns 500:
    PHP Fatal error: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE"

    Please look into and let me know if there is an extra configuration to do.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @lailamai, thanks for getting in touch.

    Those threads do highlight the core issue that a plugin is loading assets out of order, which in turn causes the SECURE_AUTH_COOKIE issue where Wordfence is loading earlier than it should. I expect that to still be the case here, but finding out which combination would certainly be helpful for you, us and future requests of this kind.

    I think the best option for a long-term solution would be to grab some diagnostics so we can take a look at the other plugins you’re using and the platform you’re running on.

    In the mean time, if you’re able to run your site with no plugins except for Wordfence enabled, it’d be good to know if the problem goes away. If it doesn’t, try also switching your theme to a default such as Twenty Twenty-Two. If you don’t experience the issue in either of these scenarios, then enable Yoast. If the problem immediately returns, then we know for sure where we need to look, but if it doesn’t, re-enable your other plugins one-by-one until it does. This should help us narrow down the exact causes at least.

    Can you send a diagnostic report to wftest @ wordfence . com? You can find the link to do so at the top of the Wordfence > Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    NOTE: It should look as follows – Screenshot of Tools > Diagnostic > Send by Email

    Thanks,

    Peter.

    Thread Starter lailamai

    (@lailamai)

    Hi @wfpeter, thanks for responding.
    I have just sent you the diagnostics Report, please let me know if you find any solution.

    Thread Starter lailamai

    (@lailamai)

    Hi @wfpeter , did you receive the report I sent you?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict with Yoast SEO premium’ is closed to new replies.