Page 1 of 3

PHP Version 7.2

Posted: Mon Mar 25, 2019 10:17 pm
by Starb7
Hi

I am told that older version of PHP will not be supported, ie 5.6 or less. That's not a problem as I can update my hosting to vsn 7.2 easily and cost free.

The problem is that web built-in form processor doesn't appear to work with 7.2 so is there a fix for this?

TIA

Re: PHP Version 7.2

Posted: Mon Mar 25, 2019 10:23 pm
by Pablo
There are no known issues with PHP 7.2
The form processor should work with this version of PHP.
In most cases, if the form no longer works then it is related to a misconfiguration of PHP on the server.
For example, PHP mail may not have been setup.

Re: PHP Version 7.2

Posted: Mon Mar 25, 2019 10:49 pm
by Starb7
Hi, If I set my PHP to 5.6 it works, on 7.2 is doesn't! I'll ask the provider of the are any issues and relay your comments. Thanks

Re: PHP Version 7.2

Posted: Fri May 17, 2019 2:11 pm
by Starb7
Hi

Sorry I haven't come back before now on this. I had taken the form off but now it's back on and using the built-in version. The hosting is running v7.2 of PHP and the main page is PHP and all works fine except that when you click the send button, an error is generated:

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

I have spoken with the hosting provider and they say all is working as it should be so I am back to you for help.

Any ideas - can you test the built-in form on 7.2 yourself? If you want see what happening, please click http://www.sutton-cum-duckmanton.org.uk/contactus.php and to see it working under PHP 5.6, click http://www.supake.co.uk/testing/contactus.php.

TIA

p.s. they asked me to ask you to check for any php code updates that have been discontinued that the form might use.
p.p.s. I have got them looking into other areas to make 100% sure all is ok with the hosting platform :)

Re: PHP Version 7.2

Posted: Fri May 17, 2019 2:27 pm
by Starb7
UPDATE:

Had a reply from the hosting chaps with an error message:

PHP Warning: mail(): SMTP server response: 501 5.1.7 Bad sender address syntax 221 2.7.0 Error: I can break rules, too. Goodbye. in \\HP3-WINC2-SMB2.HOSTINGP3.LOCAL\DOMAINSZ\952\1944952\user\htdocs\sendform.php on line 79

Seems like the issue is the with the sender syntax in v7.2 which works fine in 5.6 - does this help?

TIA

Re: PHP Version 7.2

Posted: Fri May 17, 2019 2:31 pm
by Pablo
The built-in form script has been tested with extensively PHP 7.2. There are no known issues otherwise they would have already been fixed.
I have spoken with the hosting provider and they say all is working as it should be
That is what they always say, at first! But if you browse through all the other related form issues on this forum then most of these cases are host related...
PHP Warning: mail(): SMTP server response: 501 5.1.7 Bad sender address syntax 221 2.7.0 Error: I can break rules, too. Goodbye. in \\HP3-WINC2-SMB2.HOSTINGP3.LOCAL\DOMAINSZ\952\1944952\user\htdocs\sendform.php on line 79
This indicates a configuration problem.

Note that I cannot see your settings.

Re: PHP Version 7.2

Posted: Fri May 17, 2019 2:42 pm
by Starb7
I tend to agree with you and so I have them on the case now but to save 'egg on face' can you absolutely state there's no issue with the built-in form processor? I can go back to them and do some proverbial ar3e kicking as I have wasted so much time on this now. Cheers

Re: PHP Version 7.2

Posted: Fri May 17, 2019 2:51 pm
by Pablo
If I was aware of any issues they would have already been fixed.

You will need to ask your host why this error occurs:
PHP Warning: mail(): SMTP server response: 501 5.1.7 Bad sender address syntax 221 2.7.0 Error: I can break rules, too. Goodbye. in \\HP3-WINC2-SMB2.HOSTINGP3.LOCAL\DOMAINSZ\952\1944952\user\htdocs\sendform.php on line 79
I assume you have configured a valid email address in the settings of the form processor?

Re: PHP Version 7.2

Posted: Fri May 17, 2019 3:51 pm
by Starb7
Yes, all valid. As I mentioned, the form works fine under 5.6 but not on 7.2 - same site, form, hosting, conditions, etc. They say there's nothing else for them to 'configure' and so must be an issue with the form submission system... hmm, not totally convinced!

Re: PHP Version 7.2

Posted: Fri May 17, 2019 4:58 pm
by Pablo
What does the PHP of the page look like?
Did you also try PHPMailer?

Re: PHP Version 7.2

Posted: Fri May 17, 2019 5:00 pm
by bkjohns
Did you do a complete upload of the site or just changed items? Perhaps some old code is floating around on your host? And are you using the latest version of WWB?

Re: PHP Version 7.2

Posted: Fri May 17, 2019 5:03 pm
by Starb7
Yes and Yes :)

I uploaded a completely new page to a new test folder. I event created a simple web form in a new folder and that failed too. Still working on it now but as you say, I think it could be host related... will let you know, thanks for your help so far.. Cheers

Re: PHP Version 7.2

Posted: Fri May 17, 2019 6:06 pm
by Starb7
Spent some time on this now and as far as I can tell, the $HTTP_POST_VARS are not getting posted through from the form when running PHP7.2. Now, is this something WWB is doing or is it a setting on the Hosting provide that needs tweaking? Any help, as always, is appreciated. Cheers

Re: PHP Version 7.2

Posted: Fri May 17, 2019 6:14 pm
by Pablo
I don't think this has anything to do with the error.
The error indicates that something is wrong with the email address.
So, either the configured email address is wrong or your host rejects the address for some reason.

What is the PHP code of the page?

Re: PHP Version 7.2

Posted: Fri May 17, 2019 7:27 pm
by Starb7
If you mean what vsn, then it's set for 7. Odd thing is, it works fine on 5.6 and just updating to v7.2 breaks it. Got them looking for any settings they could change\check, etc. Cheers