Home › Forums › Plugin Support › Not receiving admin notifications
Tagged: admin email
- This topic has 15 replies, 4 voices, and was last updated 10 years, 3 months ago by veronicajk.
-
AuthorPosts
-
June 9, 2014 at 10:56 am #5445June 9, 2014 at 8:03 pm #5458KhaledMember
Hello, Please make sure, you didn’t checked “Disable this notification” checkbox. If you are using “user_meta_admin_email_receiver” filter hook, make sure that it returns some email address.
Thanks.
June 11, 2014 at 5:15 pm #5493enigmaMemberThe ‘disable this notification is not checked’
June 12, 2014 at 7:25 pm #5509KhaledMemberPlease try 1.1.6rc2 or dev version. Or you can set a temp admin(email: support@user-meta.com) on your site if you need us to check and solve the issue on your system.
Thanks.
June 30, 2014 at 8:25 am #5802ELMDesignMemberI’m having the same issue
I have the newest pro version release candidate
please advise.will send url and temp admin credentials ASAP
- This reply was modified 10 years, 4 months ago by ELMDesign.
July 12, 2014 at 6:49 pm #5924KhaledMemberThis issue suppose to solved with 1.1.6
July 14, 2014 at 11:33 am #5930enigmaMemberHi, I am getting an error message when I try to update. Can you help?
“The Document could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature”
July 16, 2014 at 3:02 pm #5946KhaledMemberHello, Please try manual installation http://user-meta.com/documentation/get-started/
Thanks.
August 15, 2014 at 8:07 pm #6183veronicajkMemberHello Khaled-
I just purchased User Meta Pro last night and installed it right away because I have a client that needs to receive an email anytime a user updates their profile. It’s an urgent need and they’re expecting me to have it working today.
I have filled in the information under “Admin Notification” in the “Profile Update Email” section of the “Email Notification” page, and made sure the “Disable this notification” checkbox is NOT checked.
However, when I make changes to a test user account, I never receive any email notification. I thought maybe there was a cron job that only ran every X hours or something, so I’ve waited 10 hours now and still nothing. I also changed several different fields and still no admin notification was ever received.
I read in this thread that the problem was supposed to be solved in version 1.1.6, but that’s the version I already have. What else can I do to get this fixed?
Thank you!
August 15, 2014 at 8:21 pm #6184veronicajkMemberHello! I just saw that I could create an admin user for you to log into our site and check it out, so I’ve done that. It will come from COR Northwest Family Development Center at nwfdc.org
Thank you!
August 17, 2014 at 12:20 pm #6185KhaledMemberHello,
By default, profile update email works only with profile created by UserMeta plugin. However, it is possible to integrate this feature to profile created by other plugin.
To do so, please add following code to functions.php:
add_action( 'profile_update', 'profileUpdateNotification' ); function profileUpdateNotification( $user_id ) { global $userMeta; $user = new WP_User( $user_id ); $userMeta->prepareEmail( 'profile_update', $user ); }
Hope it helps, Thanks.
August 19, 2014 at 6:48 am #6210veronicajkMemberHello Khaled-
Thank you for that. I am now receiving the admin email when users edit their profile, but I am unable to include the user’s profile fields in the email.
Our site is run by S2Member, which is where our members input all their user data.
It looks like the only fields that UMP can include in emails (using the %% placeholders) are WordPress default fields and fields that were created by UMP.
Since none of our fields were created by UMP — they were created by S2Member — we cannot include the user’s street address, city, state, zip, and phone, which are the fields that we need to keep updated in our master records for bookkeeping and mailing our quarterly journal.
Receiving an email telling us that the user’s profile was updated, but not giving us the user’s info, makes a lot of extra work for our administrator who then has to go log into the website and manually pull up the members’ profiles to check their info.
Is there any way to force UMP allow me to use placeholders for fields that were created in S2Member? The fields are named as follows:
%ws_plugin__s2member_profile_street_address%
%ws_plugin__s2member_profile_city%
%ws_plugin__s2member_profile_state%
%ws_plugin__s2member_profile_zip_code%
%ws_plugin__s2member_profile_phone_number%Thanks for your time.
-Veronica
nwfdc.orgAugust 19, 2014 at 1:43 pm #6218KhaledMemberWell, Replace existing codes with this one:
add_action( 'profile_update', 'profileUpdateNotification' ); function profileUpdateNotification( $user_id ) { global $userMeta; $user = new WP_User( $user_id ); $s2member = $user->wp_s2member_custom_fields; if ( is_array( $s2member ) ) { foreach( $s2member as $key => $val ){ $key = 's2member_' . $key; $user->$key = $val; } } $userMeta->prepareEmail( 'profile_update', $user ); }
And use following placeholder:
%s2member_street_address%
%s2member_city%
%s2member_state%
%s2member_zip_code%
%s2member_phone_number%Thanks.
August 20, 2014 at 1:51 am #6219veronicajkMemberHi Khaled-
Thank you. Exactly where do I need to put that code?
I put it in the
umEmailNotificationController.php
file with the
add_action( ‘profile_update’, ‘profileUpdateNotification’ );
line under the
function __construct() {
section, and then I put the rest of it in place of the
function profileUpdateEmail( $userdata ) {
section.I commented out the original
function profileUpdateEmail( $userdata ) {
section.And I updated my email templates to use the new placeholders.
But I’m still getting the exact same result — none of the S2Member data is being sent in the email.
Is the umEmailNotificationController.php file the wrong place to put it? I noticed the function isn’t named exactly the same as the original function, but I didn’t find any other function named profileUpdateNotification in any other file, either.
Any ideas? Thanks for your time.
August 20, 2014 at 12:28 pm #6224KhaledMemberHi Veronica,
You can simply add these code to your functions.php (under currently activated theme directory) and don’t forget to remove your earlier code from post #6185
In fact these code #6218 are updated version of code #6185 to support s2member fields.
Optionally, you can comments line
add_action( 'user_meta_after_user_update', array( $this, 'profileUpdateEmail' ) );
from umEmailNotificationController.php
Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.