• Resolved semmin

    (@semmin)


    Hi,

    I’m currently using the free version of Wordfence on my WooCommerce website. Recently, I’ve encountered an issue where an error message appears at the top of the checkout page whenever a user places an order. The message states: “ERROR: A username and password must be provided. Lost your password?” Despite the error, the order is received successfully.

    After some troubleshooting, I identified that this issue is linked to Wordfence. When I disable the plugin, the error message no longer appears. I would like to know whether this is a configuration issue on my end or a potential bug within the plugin.

    As I’m considering upgrading to the paid version soon, I’d appreciate any guidance or solutions you can provide to resolve this issue.

    Thank you for your assistance.

    Sem

    • This topic was modified 3 months, 1 week ago by semmin.

    The page I need help with: [log in to see the link]

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

    (@wfpeter)

    Hi @semmin, thanks for your question.

    That looks like reCAPTCHA or 2FA may be enabled through Wordfence > Login Security > Settings, but can you confirm whether that’s the case and if WooCommerce integration is checked on that page too? I think the inline “returning customer” login form is the most likely reason for the message.

    Thanks,
    Peter.

    mjsekyra

    (@mjsekyra)

    Hi @wfpeter ,

    I have another issue with this error message. “ERROR: A username and password must be provided. Lost your password?”

    I use SSO Plugin from MiniOranage. We use domain mapping. The password field is suppressed. Then a user fills in the email address -> if not IDP -> password field appears, empty of course -> and the error message appears, too. Wrongly in this case.

    I would like to suppress this particular message completely. How to do that?

    2fa and recaptcha are enabled.

    CHAT GPT suggestion is not working:

    function.php

    add_filter(‘wf_login_error’, ‘custom_wordfence_login_error_message’);

    function custom_wordfence_login_error_message($error)

    {

    if (strpos($error, ‘A username and password must be provided’) !== false)

    {

    return ”; // Suppress the specific Wordfence error message

    }

    return $error; // Return other error messages unchanged

    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.