Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi,

    Which version of Login With Ajax and WordPress are you using?

    Thread Starter dragonweb

    (@dragonweb)

    3.1.5

    Thread Starter dragonweb

    (@dragonweb)

    Hi there, Are you able to help?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    hmm, this works for me; do you have sample link to your site for us to see?

    Thread Starter dragonweb

    (@dragonweb)

    https://www.arkadhyana.net/login/

    try username: srinivasarka

    Is there away to send a private message in case you need login details?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    hmm, this is the message I got using the link above

    The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function.

    Thread Starter dragonweb

    (@dragonweb)

    Thanks for this. However the other messages do get sent out – e.g. Woocommerce orders, contact form messages etc.

    Is there anything else you can do to help fix this?

    caimin_nwl

    (@caimin_nwl)

    They may be using a different mailing system. Can you check with your hosting company whether they’ve disabled the PHP mail function on your server?

    I’m having this same issue although it appears to be intermittent. For example a user complained the other day they were seeing this issue but when I used their email address and tried the reset it worked fine. Today I’m trying with another user and am seeing this error on Firefox (for Mac) but it works just fine with the same user on Safari. All my users use email as their login.

    Which mailing system does you site use? Have you confirmed with your hosting company that it’s working correctly?

    We use the Amazon Cloud service (SES) and have it properly configured with SPF & DKIM . However it seems to be a browser issue because the error reports via ajax instantaneously.

    Can you post a link?

    @caimin_nwl this is happening reliably when the page is loaded http, but admin is forced to https (SSL). In that case, AJAX calls must also be made via https or they will fail on a redirection.

    Two changes are required to fix this.

    In LoginWithAjax::init() the ajaxurl schema must take this into account:

    // must use https for AJAX if admin is forced to https
    $schema = (force_ssl_admin() || is_ssl()) ? 'https':'http';

    In LoginWithAjax::remember() the post values will be sent as a GET request, not a POST request, because when posting from http to https, CORS prevents JSONP posts so jQuery converts POST to GET:

    if ( empty( $_POST ) && ! empty( $_GET['user_login'] ) ) {
        $_POST['user_login'] = $_GET['user_login'];
    }

    If you have a git repo somewhere (GitHub, Bitbucket, etc.) I’d be happy to create a pull request with these fixes.

    cheers,
    Ross

    webaware = I am having the exact problem when someone is trying to reset or get their password on my wordpres website. I use a force SSL system, and have to use the login by ajaz plugin for my theme.

    How do I implement your code to try? where do I find the pages etc in the theme or plugin? Can you give me some simple direction and I willl try yoru solution…

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Lost password reset error: An error has occured. Please try again.’ is closed to new replies.