Site admin email being ignored with s2Member installed

I finally got my site live (chinook.org) and had a different site admin email setup for testing (General>Settings>Email Address). I updated this to a different email and my new registration notifications still went to the old email. I searched forums and couldn’t find anyone having this problem. I ended up turning off two plugins (Buddypress and s2Member) and when s2Member was off, the site admin email I updated to was now getting the new registration notification emails. So I knew s2Member was the problem.

Ended up going into the database and found this email is set by s2Member in the wp_options table. The option name=ws_plugin__s2member_options. In option_value, there is an entry there for new_user_admin_email_recipients that had the old email address. I changed this to the new one and sadly, all was not good. All of my s2Member settings were gone. Apparently s2Member does not like it when I touch this value.

So I am back to square one…how do I change the site admin email if s2Member somehow hard-coded it?

s2Member can’t “hard-code” it. That would mean s2Member would need to know your email address before it was installed.

You need to modify what you currently have in General Settings -> Email Configuration

What you say makes perfect sense, but unfortunately doesn’t work for some reason. It doesn’t make any sense to me either. However I have one email set in General Settings -> Email Configuration, but in ws_plugin__s2member_options, it shows another. The email that is used when a new user registers is the one in ws_plugin__s2member_options.

Changing the site admin email in General Settings doesn’t affect the setting in ws_plugin__s2member_options…

Then it sounds like you have a conflict with another plugin or theme. You will need to change theme, deactivate all other plugins, then attempt to change the email address in s2Member. (You’ll probably have to set it to something else first, then save it, then change it to what you really want and save again.)

So here is what I’ve done so far with no success. The ‘Checked db’ lines refer to checking that value in ws_plugin__s2member_options. Any suggestions or something I’m missing?

All plugins deactivated except s2Member
Checked db
Theme changed to Twenty Sixteen
Checked db
Changed site admin email
Checked db
Found user with previous site admin email and changed their email
Checked db
Changed site admin email
Checked db
Deactivated s2Member
Activated s2Member
Changed site admin email
Checked db
Deactivated s2Member
Changed site admin email
Checked db
Activated s2Member
In s2Member General Options>Email Configuration, changed Email From Address
Checked db
Changed site admin email
Checked db

What I’d suggest now is that you export your s2Member settings to CSV, and have a look at what is set there for the email. If it’s set incorrectly there, you can try changing it in the CSV file and then reimport that back into s2Member.

Thanks so much Tim, I forgot about this function and exporting, modifying, then importing the options file worked like a charm. This is the same information in the ws_plugin__s2member_options entry in the database.

For anyone else reading this, the option is s2Member (Pro) > Import/Export > s2Member Options Export. Export the options file (which comes out with a .s2e extension). Open this is in Notepad++, make the edit, and then import it back in. Note: I tried opening and saving the file with both NetBeans and regular Notepad and on import there were errors…so use Notepad++ (it’s free!).

Still don’t know why this won’t update with the Wordpress site admin, but I don’t intend to change it anytime soon so don’t care all that much.

1 Like

Just had the exact same problem, our old developer was still getting new user registrations, scoured all the s2member options and his email address is nowhere to be found but upon checking the database it is there:

%%wp_login_url%%";s:31:"new_user_admin_email_recipients";s:22:"oldemail@website.com";s:28:"new_user_admin_email_subject";s:39:"New User Registration";s:28:"new_user_admin_email_message";s:144:"New User Registration...

If I edit the database it wipes all the other settings, luckily had a backup to export the options from so looks like I’ll have to edit the csv