Contact Form and PHP errors

Getting these errors in apache when trying to use the contact form:

[Sat Oct 27 16:59:43.967587 2018] [php7:notice] [pid 3668] [client 192.168.1.105:53631] PHP Notice:  Undefined variable: errNameClass in /var/www/cwdesigns.page/html/index.php on line 774, referer: https://www.cwdesigns.page/

[Sat Oct 27 16:59:43.967687 2018] [php7:notice] [pid 3668] [client 192.168.1.105:53631] PHP Notice: Undefined variable: errEmailClass in /var/www/cwdesigns.page/html/index.php on line 781, referer: https://www.cwdesigns.page/
[Sat Oct 27 16:59:43.967712 2018] [php7:notice] [pid 3668] [client 192.168.1.105:53631] PHP Notice: Undefined variable: errSubjectClass in /var/www/cwdesigns.page/html/index.php on line 788, referer: https://www.cwdesigns.page/
[Sat Oct 27 16:59:43.967732 2018] [php7:notice] [pid 3668] [client 192.168.1.105:53631] PHP Notice: Undefined variable: errMessageClass in /var/www/cwdesigns.page/html/index.php on line 795, referer: https://www.cwdesigns.page/
[Sat Oct 27 16:59:43.967752 2018] [php7:notice] [pid 3668] [client 192.168.1.105:53631] PHP Notice: Undefined variable: errHumanClass in /var/www/cwdesigns.page/html/index.php on line 802, referer: https://www.cwdesigns.page/

I am not a PHP wizard! This is on Debian 10 with PHP .72.9 - Foundry contact form. Thoughts?

Hmm. That is an odd one @cwall64. Does it throw this error in the browser or just in your PHP log? Does the email go through?

If you change the PHP version to a lower version (say v7.0 or v5.6) do you get the same error?

I’m out of town at the moment, but if you send me a ZIP containing your project file I will be glad to have a look at it as soon as I possibly can.

Form says success, mail doesn’t get sent, error is just in the logs. Not a big deal, I can take the form off (not really needed…), but I’ll send you the project file. If I get industrious, I’ll swap out the PHP versions and see if that works. Thanks.

Let me know what your results are if you change PHP versions.

Also, are you using an email address that has the same domain as the site that you’re using with your form? If so have you used the “Send Using Your Email Address” feature of the Form Pro stack? I would recommend giving this a try too until I can get a look at your project file.

So for example, if your site is myspecialwebsite.com then use your email address for that domain (i.e.: myname@myspecialwebsite.com) for the email field in your form where the contact form will be sent to as well as enable the “Send Using Your Email Address.” Then republish all files and try the form.

I’ll try to get to your project file in the next 24 hours or so.

Yes, I did try email address both ways as I saw that from earlier post. Enjoy your vacation, don’t look at my file during it!!! Seriously I am good testing what you suggested and changing a few other things in the meantime…

Hey there @cwall64 – just got back a few hours ago. Didn’t have WIFI over the past couple days, unfortunately. I’ll sit down and have a look at this tomorrow though. Any luck with changing the PHP version? Any chance you’ve tried publishing a test to a different server? Same results?

Will check the file you sent tomorrow though. Just wanted to pop in and let you know I didn’t disappear, just got stuck with a plane without WIFI. :roll_eyes:

Unfortunately I have been tied up at a customer site this week, I should have time Friday or Saturday to change out. It is a personal Debian server running in a vSphere home lab, so need to get a backup before reconfiguring…

I just published a test to my server and sent an email via the form that arrived without a hitch. I’ve reconfigured the test to use your email address and will send you a Direct Message with the URL so you can try it out and see if the email arrives for you.

I’m guessing it is a server or email issue in this case, whether that means the version of PHP you’re using or something else, or just that your email address is not receiving the email.

Going to go send you that test URL now. Try sending an email with it when you get an opportunity and let me know if the email arrives or not. Also be sure to check your spam folder as well, just for good measure.

Thanks for testing, must be on the server! I tested with your URL and works fine. I appreciate you taking the time and looking at it.

Not a problem. Try a few things, like switching PHP versions and see if that helps. I don’t think it will as otherwise I’d have heard about it already from someone. I am using PHPMailer and PHP’s mail() function as the way to send the email, so perhaps Debian doesn’t allow PHPMailer and the use of mail(), or maybe it needs to be enabled on your server.