I have downloaded the basic newsletter contact form (landings.elements), but cannot get it to work, ether locally or on my server. The website is www.ballyknock.co.uk
I am hosted by chillidog and have entered all the settings they provide.
I have not changed the supplied template, except to add a success/error message within the form that lets me know what has happened when the submit button is clicked.
I have tried changing the index.html to index.php but this makes no difference.
When I look at the rw/elements/com.realmac.corepack/api/logs directory, it is empty, which presumably means the form fails before it even gets to the mail server.
I am having similar non working problems and I am with Chillidog. On the form if you click every box e.g. mail, message etc and check ID unless Ben has done update each one of these fields needs different ID but the email and message both have âemailâ id so change one e.g. message to message. Then re-publish everything. Also check PhP and see what version youâre on as has to be 8.4 apparently!
Let me know if you get working. Iâm getting impatient!
The form I am using only has the one field: email. I have changed its name from the default but it makes no difference.
One thing I have noticed, sometimes publishing the project results in an index.php file and sometimes an index.html file. I am not sure why this should be. I have tried both and neither works.
You need to delete one, I suggest delete the HTML one but usually it means you have a page set up problem in project that you need to find where its coming from as this will cause problems with project working when published as youâll get a conflict. @elementsbot can you show please.
It sounds like youâre having a bit of a form kerfuffle. Letâs see if we can untangle this:
PHP Version: Make sure your server is running PHP 8.1 or newer. You can check this by appending ?apicheck to your form page URL (e.g., www.ballyknock.co.uk/contact/?apicheck).
File Extensions: Ensure your form page is set to use a .php extension. If you see both index.html and index.php, itâs best to delete the .html file to avoid conflicts.
Form IDs: As Paul mentioned, ensure each form field has a unique ID. For a single email field, this shouldnât be an issue, but double-check just in case.
Logs Directory: If the logs directory is empty, it might mean the form isnât reaching the server. Double-check your server settings and ensure the form is published correctly.
Publishing: Sometimes, publishing can be a bit finicky. Try republishing the entire site after making these changes.
If youâre still stuck, feel free to ping the Realmac Team for a deeper dive. Theyâre always happy to help!
It looks like Steve just chimed in with a crucial point about the PHP version. The documentation indeed suggests PHP 8.4 or newer, so make sure your server is running that version. You can check by appending ?apicheck to your form page URL, like this: www.ballyknock.co.uk/contact/?apicheck.
Hereâs a quick recap to get your form up and running:
PHP Version: Ensure your server is running PHP 8.4 or newer.
File Extensions: Stick with the .php extension and delete any .html files to avoid conflicts.
Form IDs: Double-check that each form field has a unique ID.
Logs Directory: If itâs empty, your form might not be reaching the server. Double-check your server settings.
Publishing: Republish the entire site after making these changes.
If youâre still having trouble, reach out to the Realmac Team for further assistance. Theyâre always ready to help!
Steve thanks, I have 8.4 and everything has been set up by Chiilidog and OtherDan, checked everything, spotted error in base form - mail/message had same index ID, this has been updated by Dan as part of Essentials pack and it still does not work!
Make sure the From address is is the same email for the credentials that you have entered into the form settings.
The SMTP server needs to be on the same host as the website
PHP version 8.4 or newer
Page name ends in .phpAND there is no .html version of the form as well
Also, in earlier versions of Elements, there was an issue where sometimes, all the needed files werenât always uploaded to the server when publishing. I think it was fixed but am not sure. You can also try deleting everything on the server and do a re-publish all files.
Just to note, our contact form component works flawlessly on our upcoming hosting service. Itâs one of the first things I tested.
Despite that Iâll still be around to help people troubleshoot if they are having problems getting their form working on other hosting providers, no problem.
When you have the website published, can you go open the website with Safari , then view the source of the page, then check for a red mark in the console section and copy the errors you see here?
Also if you are using an htaccess file please add the content here as well so I can check this..
Thanks to everyone who has been kind enough to help with this problem. Much appreciated.
The âfromâ address is the same as the credentials; the PHP version is correct; the SMTP server is on the same host as the website (chillidog); the page name ends with .PHP (although in the project downloaded from Rapidweaver it is set to .html) and there is no .html equivalent. There is no .htaccess file.
HOWEVER there is a red mark in the console` section, which reads:
I have stripped everything back to basics to test, just left header and footer.
I have set up all the Form settings as per Chillidog and Different Dan and I attach a screen shot.
I used the CORE Content Form and tested it without change, it sends email in Preview but not real. I added the Success/Fail Flex from Essentials>Contact Pack so you can see error.
I have gone into source like you suggested, ZERO errors.
So one form one set up, works in preview but not on site.
trial. is a subdomain of my .com site the address is https of real .com and not trial. if I put the trial extension in it says error must be https. I have the https in of the main domain as I have said.
I want to change this over to main site but dont want to move it until form works as I dont want to have to go through all this pain again!
Thanks for this I have had Brian and Greg on this for just over a week and they have tried various changes and it still the same, they changed set up at their end and gave me different information each time. I donât what I have to be honest but I have what they said to do.