PIE Lost Password not sending email

Home Forums Pie-Register 2.0 Support PIE Lost Password not sending email

Tagged: 

This topic contains 14 replies, has 4 voices, and was last updated by  Hasnain Abbas 2 years ago.

Viewing 10 posts - 1 through 10 (of 15 total)
  • Author
    Posts
  • #4531

    Randy Federighi
    Participant

    The feature for the lost password is not working. We are running WP 4.5.2 and PR 2.0.21. The error says: “The e-mail could not be sent. Possible reason: Your host may have disabled the mail() function”. However, all other notifications are sent without issue so this is certainly not a hosting issue. I have seen others having this same issue so I am hoping there is a fix.

    I enabled WP debugging mode as well and got this error after submitting on the lost PW page:
    Notice: Undefined offset: 0 in C:\xampp\htdocs\epic_tours\wp-content\plugins\pie-register\classes\base.php on line 706

    #4535

    Randy Federighi
    Participant

    I have found that in “forgot_password.php” if I replace line 128 with “$message = ‘Hello’;” it does send the mail. So that is where the error lies.

    I certainly understand this is a free plugin but it would be great to get this fixed since it is such a common user task.

    #4536

    PIE REGISTER
    Keymaster

    Hello,

    Thanks for posting the issue.. we will definitely look into this and apply necessary fixes on our next release.

    Thanks

    #4584

    Kevin Williams
    Participant

    Hi Mohsin,
    Were you guys able to look into this issue? If so, is it remedied and when is your next release? It’s almost been a month and our Client’s users are still not able to use the Forgot Password feature. We’re in danger of losing this client if we can’t get it fixed. Please advise ASAP. Thank you.

    #4587

    PIE REGISTER
    Keymaster

    Hello,

    As mention on the previous comment, some users got it fixed by editing the forgot password file while many other got it fixed by having wp smtp plugin installed.

    Thanks

    #4588

    Randy Federighi
    Participant

    Not sure what you mean by editing the lost password file? Also, all the other mail functions work for this plugin as well as others so why would we have to install WP SMTP just for the PIE lost password feature?

    #4589

    PIE REGISTER
    Keymaster

    @randyfeds I think, as you said you’ve already got it working, so you still looking for some more help on this, let me know?
    @deepseafunk let me know if my previous comment works for you?

    #4591

    Randy Federighi
    Participant

    I am sorry I did not make that clear. I was only pointing out that if I replaced the reset message with hard-coded sample text it sends the mail. However, this does not “fix” the issue since we need the dynamic reset link, user name, etc. of course.

    I was only pointing out that it has nothing to do with requiring SMTP and that the issue might be located in the “classes/base.php” file, specifically within the function “filterEmail()”. Thanks!

    #4593

    PIE REGISTER
    Keymaster

    Hello,

    Ok I got your point, but since we are not able to produce this error on our SERVERS, it would be really difficult to investigate the problem.. There could be different factors involved in producing this error including server configuration. However we would be more happy to help you fix the issue. Do you have a DEV environment on your server where we can reproduce the problem?

    Please let us know, you can reach to us with credentials via contact form.

    Best,
    Mohsin

    #4612

    Kevin Williams
    Participant

    Hi Mohsin,Randy works with us as our WP developer. We had some back and forth with him and wanted to include our e-mails here, as per his testing it shouldn’t have anything to do with our servers or our server configs. Also, all other e-mail is working except for Forgot Password, so shouldn’t have anything to do with the SMTP settings or anything like that. Hopefully this thread between us might provide more details into the issue we’re having across all of the Tours we’ve set up for clients:From Me: So it looks like it is an issue across all tours (attached). So where is the error message, “”Possible reason: your host may have disabled the mail () function””, being generated from, do you know? Is that something I can have HM look into?From Randy: See, that is really not the issue and the misleading thing about that message. I know exactly where that message is generated in the code since I tracked all this already. It is just a very basic “”it didn’t work”” type of message. The main issue is when you try to reset the password, it tries to generate a temporary reset link and then drop that into the email that gets sent to the user for resetting their password. You have seen these before I am sure. They are a very long series of numbers and letters as a temporary (24 hour usually) code that allows you to follow that link to unlock your profile. Something along the way of dynamically assembling this email is getting messed up and the message comes back empty. NO MAIL function would ever work if there as no message data. (That is not just in PIE Register, this is for any type of email message used in the mail function.) Again, if there were an issue with your hosting then none of the email notifications would work across the board. We already know this is not the case. Additionally, when I replace the message (as in “”hard code a random message”” for testing) there is no error. However, this only proves the issue is not the server. I still need all kinds of dynamic information to attach to that email. Mainly the reset URL!From Randy: I just tested the lost password feature on the main parent site and it worked. That is, of course, using WordPress default methods, not the PIE plugin. Does any of this information help you get to the bottom of it by chance? Thanks Mohsin.

Viewing 10 posts - 1 through 10 (of 15 total)

You must be logged in to reply to this topic.