template-contactform-botcheck

4 replies · opened Aug 18, 2018

Jjuni4wanAug 18, 2018

Hello,

i got this error while testing contact form:

  1. PHP Notice: Undefined index: template-contactform-botcheck on sendemail.php on line 47
    ($botcheck = $_POST['template-contactform-botcheck'];)

  2. PHP Notice: Undefined index: HTTP_REFERER in sendemail.php on line 64
    ($referrer = $_SERVER['HTTP_REFERER'] ? '<br><br><br>This Form was submitted from: ' . $_SERVER['HTTP_REFERER'] : '';)

You can check on https://www.kejasa.id

Please help.

Thanks.

Jjuni4wanAug 20, 2018

Hello,

Can you please read my Ticket?

SSemicolon WebSTAFFAug 21, 2018

Hello,

Thanks for your Patience!

  1. The reason why there is an Error Message is because you have deleted this Default Field from the HTML File. It is highly recommended to add this piece of code inside the Form to make sure that you do not receive unnecessary spam. Adding back this code to your Form will automatically fix this issue.

  2. Please find the following code:

$referrer = $_SERVER['HTTP_REFERER'] ? '

This Form was submitted from: ' . $_SERVER['HTTP_REFERER'] : '';

and replace it with:

$referrer = isset( $_SERVER['HTTP_REFERER'] ) ? '

This Form was submitted from: ' . $_SERVER['HTTP_REFERER'] : '';

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Jjuni4wanAug 22, 2018

Hello again, thanks for your reply. It doesn't get error message again, but contact form still getting the loading gif still showing.
I already set the toemails and put the SMTP code like this:

$mail->IsSMTP();
$mail->Host = "smtp.zoho.com";
$mail->SMTPDebug = 2;
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->Username = "info@kejasa.id";
$mail->Password = "mypassword";

any further suggest for this?

SSemicolon WebSTAFFAug 28, 2018

Hello,

We have checked out your Contact Form and the issue appears to be with the SMTP Servers on your Hosting Environment. Please make sure that your SMTP Settings/Credentials are properly configured. Additionally, since this is not an Issue related with the Canvas Template, you will need to contact your Web Hosting Providers or SMTP Server Providers to get more assistance on this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard