• Resolved leanda

    (@leanda)


    Hi,

    I’m having an issue with the New User Registration – For User email not being sent when the plugin is activated. If I deactivate the plugin the user receives the email fine and I can see it in the email log. With the plugin activated no email is sent and theres no sign of it in the logs. The notification is enabled and the test email also sends. Other notifications from the plugin are also being sent ok.

    Any ideas?

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @leanda,
    Thanks for your message.

    Are you using any membership plugins on your site at all?

    Thread Starter leanda

    (@leanda)

    Hi,

    Thanks for the quick reply.

    I’m using Members By Justin Tadlock, could that be the problem?

    Thanks

    Plugin Author bnfw

    (@voltronik)

    Hi @leanda,
    Unfortunately, yes. I’ve documented this a bit here: https://betternotificationsforwp.com/known-compatibility-issues/

    If you’re just using it for managing roles, once they’re created, you should be able to disable the plugin again and the roles still remain.

    If you’re using it to hide/show content based on role, you may wish to investigate another plugin for this that does this via shortcodes or something instead.

    Does this help?

    There’s nothing in Members that should prevent the new user email from being sent. That core WP’s default notification is sent verifies that.

    BNFW directly overrides the wp_new_user_notification() function. It stands to reason that there’s an issue somewhere stemming from this override.

    Members, whilst an incredibly popular plugin, and one I’d love to support, lacks hooks for a lot of things. As such, it’s very difficult to support it.

    What hooks do you need? Members utilizes the core WP hooks itself. But, I’m happy to add any that are necessary.

    I have an open issue tracker where anyone can request such enhancements: https://github.com/justintadlock/members/issues

    If you need to add User Roles / Capabilities, I recommend setting them up in Members, and then de-activating (but not removing) the plugin. Any roles / capabilities you have created should remain and BNFW should function as normal.

    Why would you recommend such an action? The page you linked to doesn’t really describe why there’s an issue.

    Your advice on deactivating Members may not be good for many users, particularly those who use multiple roles per user.

    ——

    Also, in the course of looking over your code a bit, I noticed that the plugin has a double ; character in its wp_new_user_notification() function in includes/overrides.php:

    
    global $wp_version, $wp_hasher;;
    
    Plugin Author bnfw

    (@voltronik)

    Hi @greenshady,
    Thanks for chiming in! I’d love to discuss this with you more and resolve any issues between BNFW and Members. I’ve tried supporting it lots in the past but have never been able to do so successfully. I’ll check out your GitHub and see if I can outline any issues that i’m having in more detail.

    Thanks also for pointing out the double ;; – i’ll fix that for the next update.

    Thread Starter leanda

    (@leanda)

    Hi,

    I rely on the Members plugin for some other bits, so disabling isn’t really an option for me. However, I did test disabling it and it actually made no difference anyway.

    Plugin Author bnfw

    (@voltronik)

    Hi @leanda,
    Hmm. It still sounds like a plugin conflict to me as I tested it recently and it’s working for me.

    Do you know when it last worked correctly? Anything you can check, like WordPress updates or plugin updates that might have caused an issue?

    Thread Starter leanda

    (@leanda)

    Actually, I think I’ve just sussed it after hours of looking at this. I’m using a custom plugin tutorial from tuts that uses a deprecated argument in the wp_new_user_notification. I was thrown off the scent because it worked when disabling bnfw. Anyway thanks for your help, much appreciated.

    Plugin Author bnfw

    (@voltronik)

    Hi @leanda,
    Ah, great, glad you found the cause.

    Did you manage to update the code to get it working with BNFW?

    Thread Starter leanda

    (@leanda)

    Hi @voltronik

    I did! So far so good, everything seems to be working.

    Plugin Author bnfw

    (@voltronik)

    @leanda Great! Pleased to hear it ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘New User Registration – For User not sending’ is closed to new replies.