Skip Navigation

[Resuelto] CRED Notification Not Sending from Edit User Form

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

There are some PHP warning when send submit the Toolset form for editing user with email notification settings:

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

Solution:

It is fixed in the latest version of CRED beta plugin 2.0 RC, 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

Relevant Documentation:

This support ticket is created hace 6 años, 7 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 10 respuestas, tiene 2 mensajes.

Última actualización por aaronM-9 hace 6 años, 6 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#738497

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>enlace oculto</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

#739209

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

#753292

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

#753444

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

#764426

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

#782776

Thanks for the details, I am downloading the file, will feedback if there is anything found

#783373

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.

#837961

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

#861224

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

Los hilos nuevos creados por Luo Yang y vinculados a este se encuentran a continuación:

https://toolset.com/es/forums/topic/split-cred-notification-not-sending-from-edit-user-form/

#864360

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/

#878902

Closing this ticket since the remaining open items have been moved to a new thread.