Skip Navigation

[Resolved] Email notification not being sent from From created via Toolset

This support ticket is created 5 years, 1 month 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.

Our next available supporter will start replying to tickets in about 1.52 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 49 replies, has 2 voices.

Last updated by simonM-5 4 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1355633

I am trying to:
Set up a "Contact Us" Post form from a static webpage. It is simply a "get in touch with us" Post Form which with the fields
- Mr/Ms
- First Name
- Last Name
- Email
- Phone
- Message

We are following the guide:
- Automated Email Notifications With Forms

https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/?utm_source=formsplugin&utm_campaign=forms&utm_medium=forms-gui&utm_term=email-notifications

Link to a page where the issue can be seen:
- hidden link

I expected to see:
- The form should create a new Custom Post "Contact". This part is working correctly, the Custom Post Type "Contacts" is creating a new record on submission of the form.

- The "Send a Test Email" button is also generating an email correctly and sending it to the correct address.

Instead, I got:
- The email notification does not appear to be being sent from the front end.

1) Do we need to change some settings on our mail server?
2) Do we need to enter our Mailserver credentials anywhere in WordPress?

#1355693

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Simon

Form notifications are sent using the standard WP mailer, there should be no special configurations required.

The first thing to check is whether the emails are "sent but not received" or "not sent at all".

Try installing the plugin https://wordpress.org/plugins/wp-mail-logging/ which logs outgoing messages.

Submit the form and then check those logs.

Does the message appear or not?

#1355705

HI Nigel

1) OK, thanks for the clarification on the settings.
2) I have installed the suggested plugin, (caveat: not tested on WP 5.2.3), and tried to submit the form from the front end one more time. No new records appear in the WP Mail Log.

Best regards
Simon

#1355709

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Simon

I checked your form and the set-up looks okay, I made a couple of minor edits for testing but they didn't resolve anything.

(I assume the form is to be submitted by guest visitors to the site, in which case there is no point in sending the notification to the post author.)

The next step would be to try to identify anything conflicting with the emails.

Can you disable *all* plugins except for Types and Forms and the mail logging plugin, and switch theme to twentynineteen, then try again.

If the emails start appearing in the mail logger, then it should be able to identify what's conflicting by a process of elimination.

Let me know what you find.

#1355771

Hi Nigel

1) We deactivated all plugins as requested. Retried. Mail being sent.
2) Reactivated Avada plugins (Fusion Builder) - OK. Retried. Mail being sent.
3) Successively reactivated all the plugins we were using and have identified the conflicting plugin to be Toolset Views

Our site was also temporarily unavailable, and we got the following nasty error message which prevented us from accessing WP Admin for approximately 1 minute, then we were able to access it again without changing anything further. This happened after activating 3 WPML plugins simultaneously. When we got back in those 3 WPML plugins appeared as Activated successfully.

So in conclusion it only doesn't work when Toolset Views is active.

Below is the error message I was able to capture, it may be of relevance:

=============
error
Notice: Undefined index: action in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 591

Notice: Undefined index: action in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 596

Notice: Undefined index: name in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 607

Notice: Undefined index: doctype in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 610

Notice: Undefined index: name in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 611

Notice: Undefined index: action in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 613

Notice: Undefined index: method in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 614

Notice: Undefined index: name in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/models/form/base.php on line 728
error
Notice: Undefined index: action in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 591

Notice: Undefined index: action in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 596

Notice: Undefined index: name in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 607

Notice: Undefined index: doctype in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 610

Notice: Undefined index: name in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 611

Notice: Undefined index: action in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 613

Notice: Undefined index: method in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 614

Notice: Undefined index: name in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/models/form/base.php on line 728
error
Notice: Undefined index: action in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 591

Notice: Undefined index: action in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 596

Notice: Undefined index: name in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 607

Notice: Undefined index: doctype in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 610

Notice: Undefined index: name in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 611

Notice: Undefined index: action in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 613

Notice: Undefined index: method in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 614

Notice: Undefined index: name in /var/www/kle1116-204/apps/dev/wp-content/plugins/cred-frontend-editor/application/models/form/base.php on line 728

Warning: Use of undefined constant WPTOOLSET_FORMS_ABSPATH - assumed 'WPTOOLSET_FORMS_ABSPATH' (this will throw an Error in a future version of PHP) in /var/www/kle1116-204/apps/dev/wp-content/plugins/types/vendor/toolset/types/embedded/includes/conditional-display.php on line 35

Warning: require_once(WPTOOLSET_FORMS_ABSPATH/classes/class.conditional.php): failed to open stream: No such file or directory in /var/www/kle1116-204/apps/dev/wp-content/plugins/types/vendor/toolset/types/embedded/includes/conditional-display.php on line 35

Fatal error: require_once(): Failed opening required 'WPTOOLSET_FORMS_ABSPATH/classes/class.conditional.php' (include_path='.:/opt/remi/php73/root/usr/share/pear:/opt/remi/php73/root/usr/share/php:/usr/share/pear:/usr/share/php') in /var/www/kle1116-204/apps/dev/wp-content/plugins/types/vendor/toolset/types/embedded/includes/conditional-display.php on line 35

#1355797

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

That's unexpected, we don't have other reports of the same, and I use Form notifications with Views active on my own test sites without problems.

Let me check in with my colleagues, and I'll get back to you soon.

#1355895

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-10-04 at 15.36.14.png

Hi Simon

I took a copy of your site and installed it locally, and the notifications are working fine on the local install.

You can see the log in the screenshot (I'm guessing the earlier successful notifications from you were while you were disabling plugins etc.).

That points to something in your server configuration (that may only be tangentially related to the notifications).

Could you review the Toolset requirements and double-check they are all met (e.g. the eval and mbstring modules): https://toolset.com/toolset-requirements/

#1355957

Hi Nigel

As far as I can see we have the following versions/settings:
WP: 5.2.3
PHP: 7.3.10, however we could move up to 7.4 here
MySQL: 5.6.45
memory_limit: 128M
mbstring and eval(): I am not too sure how to check these, however I did create a myphpinfo.php file. You can review the settings here, but all things related to mastering seem to be enabled. I wasn't able to find any instances of eval() on that page. Check out the link yourself and satisfy yourself that we have all the correct settings:

hidden link

Kind regards
Simon

#1356713

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Simon

Everything looks in order, so I can't account for why the errors are occurring on your server.

I've asked my colleagues for input, and I'll get back to you.

#1356749

Hi Nigel

Thanks for that. For your info: we tried to upgrade to PHP 7.4 this morning to see if that would help, but that shut us out of WordPress altogether, so we had to downgrade again to 7.3.10 to be able to log in.

Best regards
Simon

#1356757

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Simon

I would be more inclined to test downgrading to 7.2 than upgrading to 7.4 if that were possible.

#1356761

Hi Nigel

Sure, I can test that straight away for you... I'll get back to you in a few minutes...

#1356767

Hi Nigel

I have just tested on PHP version 7.2.23. The email notification is still not being sent. Which version of PHP do you recommend us to stay on? As you can see, our site will be mostly a combo of Toolset and WPML. Should be upgrade again to 7.3.10 as this hasn't solved our issue?

Best regards
Simon

#1356773

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Simon

In the context of the WordPress ecosystem you want a modern version of PHP but not too cutting edge.

Given that the issue doesn't seem to be caused by the particular PHP version, I would revert back to PHP 7.3.

It's a good thing to keep in mind in future that if some problems arise, try with an older version of PHP to rule out that you are ahead of the curve with your current version.

When I have some input from my colleagues I'll let you know.

#1357623

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Simon

Is it possible to get FTP access?

From the site URL this appears to be a dev server, is that right? It's okay for us to do some testing?

Please make sure you have a current backup, and I'll set a private reply to get FTP details.