error when registering

This topic contains 9 replies, has 4 voices, and was last updated by  Gianluca Mirizio 1 month, 1 week ago.

  • Author
    Posts
  • #3743

    Gianluca Mirizio
    Free User
    Post count: 61

    Hi there!,
    Using userwp plugin as request for your plugin.
    When I try to register I get this error (see attached), everything works, the user registers and the account works but there is the error.
    I can i do to fix?
    Thanks.
    Gianluca

    Attachments:
    You must be logged in to view attached files.
    #3747

    Paolo
    Site Admin
    Post count: 30560

    A developer has been alerted, please provide credentials and we’ll check your site directly.

    Thanks

    #3751

    Gianluca Mirizio
    Free User
    Post count: 61
    This reply has been marked as private.
    #3752

    Gianluca Mirizio
    Free User
    Post count: 61
    This reply has been marked as private.
    #3754

    patrik
    Moderator
    Post count: 1007

    Hi,

    This error generally displayed when wp_mail() function returns nothing or false. The user will be created successfully but the mail may or may not be sent. Can you check if you get the email successfully or not? We are going to remove this check in the next release of the plugin.

    Regards,
    Patrik

    #3755

    Gianluca Mirizio
    Free User
    Post count: 61

    Yes i get the email cerrectly.
    But how can i fix the problem by now?
    G

    #3756

    patrik
    Moderator
    Post count: 1007

    Hi,

    To fix this, you need to make a change in core files which will be overridden in the next update. Go to line no. 172 of file class-emails.php located in userswp->includes folder and change

    return false;

    to

    return true;

    https://github.com/UsersWP/userswp/blob/f65f6a7eb979cb125387d24bdfb6442617ae3544/includes/class-emails.php#L172

    Regards,
    Patrik

    #3859

    news
    Free User
    Post count: 1

    hm

    #3860

    patrik
    Moderator
    Post count: 1007
    This reply has been marked as private.
    #3861

    Gianluca Mirizio
    Free User
    Post count: 61

    Yes fixed now. Many thanks.
    G

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

You must be logged in to reply to this topic.