Hello
We are having problems to send forms in SiteJet via cPanel and get the errors as linked :
SiteID: 656064
PHP8.2
allow_url_fopen
is enablednot sure what version is used
Please can you help ?
Hello
We are having problems to send forms in SiteJet via cPanel and get the errors as linked :
allow_url_fopen
is enabledPlease can you help ?
Hi @Jacques_W
Welcome to Sitejet community!
According to that error, there is code in line 109 that doesn’t belong there.
I’m not sure if the api.php
file is exactly the same for all contact forms in Sitejet, but mine is empty at line 109.
Would it help to delete that preset (form) and place it again?
Or, inspect your api.php
in cPanel file explorer, and see if there is any code missing/changed?
Maybe there are other php files in that root folder interfering with this one?
I find it useful to simply create a subdomain in cPanel for testing - if your host will allow that.
Do let us know how it goes.
Richard
Hi @Jacques_W could you please try to update your PHP server version? Maybe this will fix the error.
Hi,
Did someone managed to resove this issue?
I have the same issue as @Jacques_W on php 8.2 and php 8.3.
On line 109 it is the return
return mail($destinationEmail, $subject, $mailBody, $headers, $senderEmail ? “-f $senderEmail” : ‘’);
from sendFormSummaryByEmail function.
I have noticed that at the begging on api.php file it says // Compatible with PHP 7.1.
So I’ve tried to downgrade to php 7.1. If I’m doing this I get the error:
[09-Oct-2024 17:50:08 ] PHP Warning: mail() has been disabled for security reasons in /home/example/public_html/api.php on line 109
Does anyone has an api.php file which works with php 8.3 or has managed to resolve this issue?
Thanks and please any ideas are welcome as I’m trying to resolve this issue for some hours.
Hey Mary,
there was no response to our questions. I would like you to please open a new thread and also please check these solution proposals first: cPanel | Most common contact form issues - #2