PHP 8.1 and Contact US form broken?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
mike_kallet
 
 
Posts: 33
Joined: Tue Jan 18, 2011 2:34 pm
Location: Denver, Colorado, USA
Contact:

PHP 8.1 and Contact US form broken?

Post by mike_kallet »

Hi. I just upgraded php to 8.1 on my hosted server (bluehost). The contact us form with submit, sends a copy of what the user selected to my email (hosted by google). This worked great with php 5.7. But now I get the following message (seems the From field is a problem). Is there anything I need to do on WYSIWYG side? thanks

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
mike.kallet@headscratchers.com
host aspmx.l.google.com [142.251.2.26]
SMTP error from remote mail server after end of data:
550-5.7.1 [162.240.50.156] Messages with multiple addresses in From:
header are
550-5.7.1 not accepted. Please visit
550-5.7.1 https://support.google.com/mail/?p=RfcM ... nCompliant and review
550 5.7.1 RFC 5322 specifications for more information. u66-20020a627945000000b006be053633ecsi2164542pfc.388 - gsmtp
mike_kallet
 
 
Posts: 33
Joined: Tue Jan 18, 2011 2:34 pm
Location: Denver, Colorado, USA
Contact:

Re: PHP 8.1 and Contact US form broken?

Post by mike_kallet »

When i fall back to php 5.4 on the server, all works. Is there some setting on PHP 8.1 that needs to be set for WYSIWYG forms (built in php processor) to work?
User avatar
jerryco
 
 
Posts: 896
Joined: Fri Mar 27, 2009 2:42 pm
Location: Purmerend, Holland

Re: PHP 8.1 and Contact US form broken?

Post by jerryco »

What version of WWB are you using?
// Love is the acceptance of nothing / Account age is no guarantee of efficiency ;-) ->

Above, Beyond, and @wwonderfull! <- Genuinely helps you with a powered up site that counts! Four Times Excellence!
mike_kallet
 
 
Posts: 33
Joined: Tue Jan 18, 2011 2:34 pm
Location: Denver, Colorado, USA
Contact:

Re: PHP 8.1 and Contact US form broken?

Post by mike_kallet »

I'm using 18.4.0 of WYSIWYG
User avatar
BaconFries
 
 
Posts: 5867
Joined: Thu Aug 16, 2007 7:32 pm

Re: PHP 8.1 and Contact US form broken?

Post by BaconFries »

You should note that all built-in scripts in WWB18 are compatible with PHP 5.6 and newer ( including PHP 8 ).
See the following,:
viewtopic.php?t=87048
Have you tried updating the php version in WWB to say 8.1? so to match what you updated to on your server. If not I would try so making sure that you republish to ensure all files are updated on the server.

Did you read from the following what the error(s) relate to? I doubt it is related to WWB but a configuration of the server or with Google.
https://support.google.com/a/answer/811 ... age-format
550, "5.7.1": Messages are rejected because the sending server’s IP address is on an IP suspended list. You might get this error if you’re sending mail using a shared IP with a poor reputation.
mike_kallet
 
 
Posts: 33
Joined: Tue Jan 18, 2011 2:34 pm
Location: Denver, Colorado, USA
Contact:

Re: PHP 8.1 and Contact US form broken?

Post by mike_kallet »

More symptoms.
The contact Us form sends a message to the user (thanking them for filling in their information) and also sends the information to me. All via the WWB built in PHP processor. When I use PHP 5.4 all is well. When I use PHP 8.1, the user (I used a test email) gets the thank you, but the email is marked as SPAM. When I use php 5.4 this doesn't happen. The email to me with the user info works fine with 5.4, but I get the message as first indicated from the google mail servers. From the message, google thinks I have multiple from email addresses. There is probably some setting on the server side php 8.1 that needs to be set, but I have no idea what that could be. I've compared settings between 5.4 and 8.1 and they look the same, but maybe 8.1 has something else I don't know about. Anyone else having a problem with 8.1 PHP?
thanks
mike_kallet
 
 
Posts: 33
Joined: Tue Jan 18, 2011 2:34 pm
Location: Denver, Colorado, USA
Contact:

Re: PHP 8.1 and Contact US form broken?

Post by mike_kallet »

Yes, I read the 550, "5.7.1": Messages are rejected because the sending server’s IP address is on an IP suspended list. You might get this error if you’re sending mail using a shared IP with a poor reputation."
But it works with PHP 5.4.
The google message indicates multiple "from" email addresses. Not sure where this is coming from?
mike_kallet
 
 
Posts: 33
Joined: Tue Jan 18, 2011 2:34 pm
Location: Denver, Colorado, USA
Contact:

Re: PHP 8.1 and Contact US form broken?

Post by mike_kallet »

I've done a little testing and more research and this is what I found:
I upgraded php from 5.4 to 7.4 and my contact us form works as it should (the emails go through fine).
When I upgrade to php 8.1 the emails break with header issues. See original post for message.
Searching on google with "email issues with php 7.4 to php 8) there are a load of issues regarding the header. I don't have the knowledge to interpret all of what is said, but could not find any simple fixes.
So I'm stuck. Can't upgrade Moodle unless I have php 8 or higher, but when I upgrade to 8.1 the emails related to the forms in WWB break.

Suggestions are extremely welcome here.
Thank you.
User avatar
Pablo
 
Posts: 23229
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: PHP 8.1 and Contact US form broken?

Post by Pablo »

Did you read the form FAQ?
https://wysiwygwebbuilder.com/forum/vie ... hp?t=32967

I think you will need to change the 'from address'.
User avatar
gofrank
 
 
Posts: 196
Joined: Sun Dec 30, 2007 2:43 am
Location: Florida, USA

Re: PHP 8.1 and Contact US form broken?

Post by gofrank »

I encountered this issue previously and I believe Pablo has addressed it in the current build of WB.

Open the form properties and click on the "Advanced" button. Select the "Miscellaneous" tab and change the "End Of Line" drop down to "CRLF", then click "OK". That should resolve the "multiple addresses in From" error.
Billing clients for your freelance work? Try Minute-2-Minute, the project management, timing, and billing system. Perfect for web developers who charge by the hour. FREE 45-day trial.
mike_kallet
 
 
Posts: 33
Joined: Tue Jan 18, 2011 2:34 pm
Location: Denver, Colorado, USA
Contact:

Re: PHP 8.1 and Contact US form broken?

Post by mike_kallet »

Thanks Gofrank and Paublo. I've downgraded the PHP version so all is back working, but will definitely try this in a few days time. Will update the post.
Post Reply