Skip Navigation

[Resolved] User form notifications not working

This thread is resolved. Here is a description of the problem and solution.

Problem: User form notifications don't seem to be working as expected. When I check with WP Mail Logging, I see error messages "Could not instantiate mail function" for all the emails sent by Toolset Forms. Other emails are sent without problems.

Solution: It appears that the server's mail function has some spam checks built-in, and short messages (like the test message here) are triggering the spam filter. Create a longer message and test again.

This support ticket is created 6 years ago. 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 13 replies, has 3 voices.

Last updated by rafaelcmgt 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1163719
toolset notifications.png

Hello,

I have a user form. I configured a notification to be send when a new user is created by this form. However, I don't recieve this notification.

I did some test. I sended a test email using this plugin: hidden link. This test worked properly. I sended a test email using the test tool that toolset have in the notifications options. I didn' receive this email. I logged both emails using this plugin: hidden link. You can see the result in the image attached. The test email sended with toolset have an error: "Could not instantiate mail function".

What's the problem?

#1163832

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rafael,

Thank you for contacting our support.

Could you let me know when did this issue started to occur?

Was it after performing any updates?

Looking forward to hearing from you soon.

Thanks,
Shane

#1163916

Hi Shane,

The site is under development and no updates were made. The toolset versions are the same since I started.

#1164047

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rafael,

WOuld you mind providing me with access so that I can investigate this one for you ?

Thanks,
Shane

#1164620

I forgot to say that you'll see the form here: hidden link

#1164838

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rafael,

Thank you for the credentials and the link.

I ran some tests and was able to verify the issue. Could you send me the php log for this site ? This could provide me with more information as to why the mail function isn't being instantiated by our plugin.

Looking forward to hearing from you soon.

Thanks,
Shane

#1164905

Hi,

This is the error_log file of the staging site:

[03-Dec-2018 18:02:45 UTC] PHP Parse error:  syntax error, unexpected 'echo' (T_ECHO) in /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php on line 46
[03-Dec-2018 18:22:46 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'All provided arguments for a related element must be either an ID or a WP_Post object.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php:223
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php(158): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->set_query_by_elements(NULL, 'child')
#1 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php(153): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->__construct(NULL, 'categoria-profe...', Array)
#2 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(45): toolset_get_related_post(NULL, 'categoria-profe...')
#3 [internal function]: rmw_shortcode_cat_prof_trabajador('', '', 'cat-profesional...')
#4 /home/caf3lor3nanet/public_html/wp-includ in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php on line 223
[03-Dec-2018 18:22:50 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'All provided arguments for a related element must be either an ID or a WP_Post object.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php:223
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php(158): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->set_query_by_elements(NULL, 'child')
#1 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php(153): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->__construct(NULL, 'categoria-profe...', Array)
#2 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(45): toolset_get_related_post(NULL, 'categoria-profe...')
#3 [internal function]: rmw_shortcode_cat_prof_trabajador('', '', 'cat-profesional...')
#4 /home/caf3lor3nanet/public_html/wp-includ in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php on line 223
[03-Dec-2018 18:23:09 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'All provided arguments for a related element must be either an ID or a WP_Post object.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php:223
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php(158): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->set_query_by_elements(NULL, 'child')
#1 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php(153): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->__construct(NULL, 'categoria-profe...', Array)
#2 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(45): toolset_get_related_post(NULL, 'categoria-profe...')
#3 [internal function]: rmw_shortcode_cat_prof_trabajador('', '', 'cat-profesional...')
#4 /home/caf3lor3nanet/public_html/wp-includ in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php on line 223
[04-Dec-2018 18:14:22 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:14:26 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:14:48 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:14:58 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:15:11 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:20:15 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:21:00 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:28:08 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:29:01 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:34:51 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:34:54 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[09-Dec-2018 05:55:46 UTC] PHP Warning:  Error while sending QUERY packet. PID=2976439 in /home/caf3lor3nanet/public_html/wp-includes/wp-db.php on line 1924
[11-Dec-2018 11:04:24 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(111): toolset_connect_posts('categoria-profe...', NULL, 236)
#1 [internal function]: rmw_creación_iusuario(13, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_creaci\xC3\xB3n_i...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/user.php(41): do_action('cred_submit_com...', 13, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.ph in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[11-Dec-2018 11:07:17 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(111): toolset_connect_posts('categoria-profe...', NULL, 237)
#1 [internal function]: rmw_creación_iusuario(14, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_creaci\xC3\xB3n_i...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/user.php(41): do_action('cred_submit_com...', 14, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.ph in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[11-Dec-2018 11:31:38 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(115): toolset_connect_posts('categoria-profe...', NULL, 239)
#1 [internal function]: rmw_creación_iusuario(16, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_creaci\xC3\xB3n_i...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/user.php(41): do_action('cred_submit_com...', 16, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.ph in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
#1166488

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rafael,

Could you try updating your server to php version 7.0 ?

It could be an issue with your php version.

Thanks,
Shane

#1167514

Hi Shane,

I updated php to version 7.0 and the problem is still there.

#1167934

Hi, Shane is on holiday this week so I'm checking on his tickets. Let's look at the error log you provided:

[11-Dec-2018 11:04:24 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /wp-content/plugins/funciones/funciones.php(111): toolset_connect_posts('categoria-profe...', NULL, 236)
#1 [internal function]: rmw_creación_iusuario(13, Array)

You can see that the problem is in functiones.php, in the method rmw_creación_iusuario. The toolset_connect_posts API is being called, but one of the posts is not a valid post. The toolset_connect_posts API is throwing an error to tell you something is wrong with this code. You should investigate here:

$cprofesional= $_POST["c-profesionales-user-form"];

It's possible this field is empty in the Form, or there is a typo in the slug, or some other problem that is causing the NULL value. If the field can be empty, you must add some logic that bypasses the toolset_connect_posts API call when the field is empty. Otherwise it will always throw an error.

#1168582

Hi Christian,

Thanks for your reply. Unfortunately, this was an old log and I solved this problem that 11-dec, maybe 12-dec. Some logic was enough to bypass this error.

An updated log here:

[03-Dec-2018 18:02:45 UTC] PHP Parse error:  syntax error, unexpected 'echo' (T_ECHO) in /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php on line 46
[03-Dec-2018 18:22:46 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'All provided arguments for a related element must be either an ID or a WP_Post object.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php:223
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php(158): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->set_query_by_elements(NULL, 'child')
#1 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php(153): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->__construct(NULL, 'categoria-profe...', Array)
#2 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(45): toolset_get_related_post(NULL, 'categoria-profe...')
#3 [internal function]: rmw_shortcode_cat_prof_trabajador('', '', 'cat-profesional...')
#4 /home/caf3lor3nanet/public_html/wp-includ in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php on line 223
[03-Dec-2018 18:22:50 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'All provided arguments for a related element must be either an ID or a WP_Post object.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php:223
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php(158): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->set_query_by_elements(NULL, 'child')
#1 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php(153): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->__construct(NULL, 'categoria-profe...', Array)
#2 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(45): toolset_get_related_post(NULL, 'categoria-profe...')
#3 [internal function]: rmw_shortcode_cat_prof_trabajador('', '', 'cat-profesional...')
#4 /home/caf3lor3nanet/public_html/wp-includ in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php on line 223
[03-Dec-2018 18:23:09 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'All provided arguments for a related element must be either an ID or a WP_Post object.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php:223
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php(158): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->set_query_by_elements(NULL, 'child')
#1 /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php(153): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->__construct(NULL, 'categoria-profe...', Array)
#2 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(45): toolset_get_related_post(NULL, 'categoria-profe...')
#3 [internal function]: rmw_shortcode_cat_prof_trabajador('', '', 'cat-profesional...')
#4 /home/caf3lor3nanet/public_html/wp-includ in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php on line 223
[04-Dec-2018 18:14:22 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:14:26 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:14:48 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:14:58 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:15:11 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:20:15 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:21:00 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:28:08 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:29:01 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:34:51 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[04-Dec-2018 18:34:54 UTC] PHP Catchable fatal error:  Object of class WP_Post could not be converted to string in /home/caf3lor3nanet/public_html/wp-includes/shortcodes.php on line 319
[09-Dec-2018 05:55:46 UTC] PHP Warning:  Error while sending QUERY packet. PID=2976439 in /home/caf3lor3nanet/public_html/wp-includes/wp-db.php on line 1924
[11-Dec-2018 11:04:24 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(111): toolset_connect_posts('categoria-profe...', NULL, 236)
#1 [internal function]: rmw_creación_iusuario(13, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_creaci\xC3\xB3n_i...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/user.php(41): do_action('cred_submit_com...', 13, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.ph in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[11-Dec-2018 11:07:17 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(111): toolset_connect_posts('categoria-profe...', NULL, 237)
#1 [internal function]: rmw_creación_iusuario(14, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_creaci\xC3\xB3n_i...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/user.php(41): do_action('cred_submit_com...', 14, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.ph in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[11-Dec-2018 11:31:38 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(115): toolset_connect_posts('categoria-profe...', NULL, 239)
#1 [internal function]: rmw_creación_iusuario(16, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_creaci\xC3\xB3n_i...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/user.php(41): do_action('cred_submit_com...', 16, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.ph in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[12-Dec-2018 12:30:29 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(157): toolset_connect_posts('categoria-profe...', NULL, 42)
#1 [internal function]: rmw_editar_documento(42, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_editar_docu...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/post.php(64): do_action('cred_submit_com...', 42, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(425): C in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[12-Dec-2018 12:31:31 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(157): toolset_connect_posts('categoria-profe...', NULL, 42)
#1 [internal function]: rmw_editar_documento(42, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_editar_docu...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/post.php(64): do_action('cred_submit_com...', 42, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(425): C in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[12-Dec-2018 12:32:54 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(157): toolset_connect_posts('categoria-profe...', NULL, 42)
#1 [internal function]: rmw_editar_documento(42, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_editar_docu...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/post.php(64): do_action('cred_submit_com...', 42, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(425): C in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[12-Dec-2018 12:34:37 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(157): toolset_connect_posts('categoria-profe...', NULL, 42)
#1 [internal function]: rmw_editar_documento(42, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_editar_docu...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/post.php(64): do_action('cred_submit_com...', 42, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(425): C in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[12-Dec-2018 12:34:57 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(157): toolset_connect_posts('categoria-profe...', NULL, 42)
#1 [internal function]: rmw_editar_documento(42, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_editar_docu...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/post.php(64): do_action('cred_submit_com...', 42, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(425): C in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[12-Dec-2018 12:38:42 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(158): toolset_connect_posts('categoria-profe...', NULL, 42)
#1 [internal function]: rmw_editar_documento(42, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_editar_docu...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/post.php(64): do_action('cred_submit_com...', 42, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(425): C in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[12-Dec-2018 12:39:33 UTC] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The parent must be a post ID or a WP_Post instance.' in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php:531
Stack trace:
#0 /home/caf3lor3nanet/public_html/wp-content/plugins/funciones/funciones.php(158): toolset_connect_posts('categoria-profe...', NULL, 42)
#1 [internal function]: rmw_editar_documento(42, Array)
#2 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array('rmw_editar_docu...', Array)
#3 /home/caf3lor3nanet/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/caf3lor3nanet/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/post.php(64): do_action('cred_submit_com...', 42, Array)
#6 /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(425): C in /home/caf3lor3nanet/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php on line 531
[14-Dec-2018 17:57:54 UTC] PHP Fatal error:  Call to a member function get_definition_array() on null in /home/caf3lor3nanet/public_html/wp-content/plugins/cred-frontend-editor/application/models/shortcode/form_element/association/field.php on line 53

As you see, no more error were caught related with "rmw_creación_iusuario".

The problem is still here. And have in mind that I don't need to use the form. My notifications are not sended even using the test tool inside the notifications options.

The staging site is still up so you can test it.

#1168919

I installed the Duplicator plugin temporarily to create a clone of your staging site. When I installed it on my local environment, I ran several tests and I'm not seeing the same error message. So I would like to run a couple more tests on your staging site. Can you deactivate the must-use staging plugin in wp-content/mu-plugins/ ? Can you create a php info page on the server so I can see the PHP configurations? I'll be glad to do these myself if you will share FTP credentials.

#1169907

Okay I think I see the issue. I modified the message in your email notification to be something longer than "Hola", and the error does not appear. The email is sent successfully. So it seems that the PHP mail function on your server has a spam check or some other filter applied that prevents certain spam-like messages. Your original message was simply "Hola", which somehow triggered that spam filter. I tested a few times with longer messages, and the results were all successful.

#1169928

Hello Christian,

You are right. I modified the message and now it is working properly. Thank you.