close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Undefined constant "PHPMailer\PHPMailer\FILTER_FLAG_HOST_REQUIRED"

Thread began 10/12/2023 3:15 am by Nathon Jones Web Design | Last modified 12/29/2023 10:05 am by Mags | 1149 views | 1 replies |

Nathon Jones Web Design

Undefined constant "PHPMailer\PHPMailer\FILTER_FLAG_HOST_REQUIRED"

Getting an unusual error when attempting to submit the contact form on the following page which uses WebAssist Send Email behaviour:
https://www.southwestpropertycentre.co.uk/property-sales-lets-enquiries.php?c=1

Fatal error: Uncaught Error: Undefined constant "PHPMailer\PHPMailer\FILTER_FLAG_HOST_REQUIRED" in /home/storage/824/4137824/user/htdocs/webassist/email/phpmailer/src/PHPMailer.php:3632 Stack trace: #0 /home/storage/824/4137824/user/htdocs/webassist/email/phpmailer/src/PHPMailer.php(3598): PHPMailer\PHPMailer\PHPMailer::isValidHost('www.southwestpr...') #1 /home/storage/824/4137824/user/htdocs/webassist/email/phpmailer/src/PHPMailer.php(2331): PHPMailer\PHPMailer\PHPMailer->serverHostname() #2 /home/storage/824/4137824/user/htdocs/webassist/email/phpmailer/src/PHPMailer.php(1427): PHPMailer\PHPMailer\PHPMailer->createHeader() #3 /home/storage/824/4137824/user/htdocs/webassist/email/phpmailer/src/PHPMailer.php(1320): PHPMailer\PHPMailer\PHPMailer->preSend() #4 /home/storage/824/4137824/user/htdocs/webassist/email/WA_Email.php(477): PHPMailer\PHPMailer\PHPMailer->send() #5 /home/storage/824/4137824/user/htdocs/thankyou.php(57): WA_Email->send(0) #6 {main} thrown in /home/storage/824/4137824/user/htdocs/webassist/email/phpmailer/src/PHPMailer.php on line 3632

This form was working, previously, and we haven't changed anything so is this a PHP change? The server is Linux and PHP version is 8.0.
Hope you can help. Thank you.
Regards
NJ

Sign in to reply to this post

Mags

I had to update the phpmailer folder and WA_Email.php file when upgrading my sites to PHP8, so you could try replacing the file and folder with the attached version which works for me (make a copy of yours before replacing though, just in case you need to roll back!)

Attached Files
email.zip
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...