This is message from the website after submitting data in the PHP Feedback Form, any ideas??
Fatal error : Uncaught Error: Call to undefined function split() in /homepages/9/d495878162/htdocs/shirefolkcontact-go1.php:16 Stack trace: #0 /homepages/9/d495878162/htdocs/shirefolkcontact-go1.php(155): domain_exists(‘REMOVED_EMAIL’) #1 {main} thrown in /homepages/9/d495878162/htdocs/shirefolkcontact-go1.php on line 16
Your version of PHP is probably too new for this script to work. The split function was deprecated and then removed from the language. There are replacement methods available, but the Action doesn’t know about them.
As a short term fix, try using the built-in Action for sending form data. Check the manual for details.
Actually, I just dug into an ancient copy of the Action that Tim Plumb sent me years ago, and the only split() references are in the JavaScript parts of the Action, not the PHP that it generates. If you want to send me a copy of the contact-go1.php file from your site folder, I can look in that at the generated PHP, to see if the JavaScript ended up in your PHP by any chance. But that doesn’t look possible if I’m reading the code correctly.
You should still definitely look into upgrading to a more modern form handler Action. The Send Form Action (built into Freeway 7) is written in a much more modern version of PHP, and is less likely to throw these kinds of errors. It is also much more likely to work at all on a modern-ish (> PHP 4.2) server. The PHP Feedback Form Action was written back when it was still fairly common to see some version of PHP 3 running on a server. The current version is 8.2.
One last thing to check. Use a plain-text editor (not Microsoft Word or another word processor) to create a file with this content:
<?php phpinfo(); ?>
Name that file something cryptic that ends in .php, like asdfsdaf.php, and use an SFTP application to upload it into the same server as your form. When you visit that “page” in a browser by typing in your.domain/asdfsdaf.php or whatever, you should see a very tall page with way more information about your server than you could ever want to know. The major thing you want to get out of that is the exact version of the language that you’re currently using on your server. Knowing that, the rest of this will get a lot easier to diagnose.
Delete that file from your server the moment you are done debugging. That information (however unlikely someone is to find it by name) is gold to a hacker.
Thanks Walter, the manual suggests following a video tutorial on the Softpress website Tutorials “Send Form Action (Freeway 6)”, but I don’t get anything when pressing the image. The top 6 are all like this but the "Older"ones at the bottom have the right pointing arrow to play the videos.
The manual
I’m now returning to this nitty little problem.
I thought, as this is just a simple 3-4 page holding site while decisions are made about it’s future, that I’d use Xway to start to get to grips with it …
Well I’m glad I checked the progress and found Form are not yet implemented, so I’m back here.
I looked at the help pages for Freeway and it seems to have a number of conflicting pieces of advice on how too set it up.
I went to the Video tutorials and found this one " Using the Send Form Action (Freeway 6)" but there is not video connected to the image!
I’ve now got a copy of the Reference Manual and will follow the instructions in there on pages 198–209.
So I have now setup to use the Freeway inbuilt “Send Form” Action.
But it now appear to take the form but ends in a blank screen it does not give an error or continue to the Success or Error pages and nothing is sent to me.
In the settings for the Send Form Action, one of the fields is for the from address, you can set that to the email address you want the emails to come from.
Do note however that what will work here depends a lot on the configuration for your web hosting, the DNS configuration for the domain you want to use and the configuration of the email provider you are sending the form to.
For example, you won’t be able to send from an @gmail.com address because Google DNS won’t allow sending emails from your server and your email provider will almost certainly reject the emails for that reason.
If you want to send from the domain of your website, you may need to add SPF records to your DNS which your hosting provider or DNS provider may be able to help you with. There is some information on that here: Using IONOS SPF to Improve Email Delivery - IONOS Help
Probably the value you will want is “v=spf1 a mx ~all” but your host may give you the correct value to use.