I'm having difficulty getting a CRED Edit User form notification to work.
Here is the code for the CRED form:
[creduserform class='cred-user-form cred-keep-original']
[cred_field field='form_messages' value='' class='alert alert-warning']
<div class="form-group">
<label>Partner's E-Mail Address</label>
[cred_field field='user-partneremail' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>
[cred_field field='form_submit' value='Submit' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']
[/creduserform]
And here is what I've placed in the body of the e-mail notification (to be sent to the value of user-partneremail):
You are receiving this request because [wpv-user field="user_firstname"] [wpv-user field="user_lastname"] using the e-mail address [wpv-user field="user_email"] has indicated they are your partner and wish to be added to your profile. Please click here to approve or reject them as your partner.
Alternatively, you may copy and paste the following URL into your browser's address bar: <em><u>hidden link</u></em> field="ID"]
IMPORTANT: Please make sure that [wpv-user field="user_email"] is really your partner's e-mail address and not somebody else's!
The form submits just fine and the field user-partneremail updates in the database. However, no e-mail gets sent. When I test while editing the actual CRED form, I get an e-mail but it doesn't use the first and last name of the administrator account. For example, it says "You are receiving this request because Administrator Administrator using the e-mail address..."
Am I doing something wrong here? Thanks for the help.
- Aaron
Dear Aaron,
The problem you mentioned above is abnormal, please check these:
1) You are following our document to setup the email notifications:
https://toolset.com/documentation/user-guides/cred-user-forms-email-notifications/
2) in case it is a compatibility problem, please deactivate other plugins and switch to wordpress default theme, and test again
3) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL and CRED form URL, I need to test and debug it in my localhost, thanks
Hi Luo,
I tried to attach the backup copy of my database but I can't attach it because it's a .gz file and this is the only format cPanel will produce.
Since our last communication, I tried removing all shortcodes from the body of the e-mail and tried the form again. Still nothing, but I can give you the debug information if that's helpful:
PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /home/aaronmckeon/public_html/wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/models/CRED_Fields_Types_Utils.php on line 30
Any idea what would be triggering this? The only field I'm really passing from the form is user-partneremail, which is a string.
- Aaron
Hi Luo,
Sorry, turns out I was able to get the ZIP file by having the support group zip it up for me. It's not something I could do myself through their GUI. If you re-send the private info request then I can upload it.
- Aaron
OK, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL and CRED form URL, thanks
Thanks for the details, I am downloading the file, will feedback if there is anything found
I can duplicate the same problem, and the problem occurs when it is a subscribe user, I have escalated this thread to our 2nd tier supporters, will update this this thread if there is anything news.
Here is the feedback from our developers:
It is fixed in the latest version of CRED beta plugin, please update all Toolset plugins to the latest beta version and test again, you can download them here:
https://toolset.com/account/downloads/
Choose channel: Beta
Hi Luo,
Thanks. I have upgraded to the most recent beta version and the content of the e-mail seems to be working properly now, but I can only get it to send if I manually set the form to send to my own e-mail address. If I setup the form to send to field "user-partneremail" and type my e-mail address into the front-end form, the e-mail never comes. Nothing is going to SPAM.
- Aaron
PS - CRED RC2, Layouts RC2, Views RC3, and Types RC2
For the new question:
If I setup the form to send to field "user-partneremail" and type my e-mail address into the front-end form, the e-mail never comes. Nothing is going to SPAM.
Please move to the new thread here:
https://toolset.com/forums/topic/split-cred-notification-not-sending-from-edit-user-form/
Closing this ticket since the remaining open items have been moved to a new thread.