Contact form not working

5 replies · opened Feb 14, 2023

RroburdickFeb 14, 2023

Hello
I have a contact form on the footer that has stopped working. https://birdclick.co.uk/endonet/ please can you see if there is an error somewhere?

Also can you help target css for the text inside the email subscription field which I would like to make white?

RroburdickFeb 15, 2023

I have tried the same footer on another site with the exact same include 'form.php' file and it works fine there. Hosted on the same ftp account
https://birdclick.co.uk/logo-change/footer.php
Hoping that somebody can point out an error somewhere!

SSemicolon WebSTAFFFeb 15, 2023

Hello,

Since your Form File: include/form.php (https://birdclick.co.uk/endonet/include/form.php) is returning a 500 Internal Server Error, it is an indication that this is a Server Configuration issue.

Please consider adding the .customjs Class to the .form-widget DIV and then the following code at the very top of your include/form.php File just after the opening php tags:
[ch_pre type="php"]error_reporting(E_ALL);[/ch_pre]

which should display all the possible errors. Please notify us about the Error Message you see, after going through the process above, so that we can provide you with further 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.

RroburdickFeb 16, 2023

Hi, I added a div round the widget with that class and the line of code to form.php just after the opening '<?php'. What should I do next?

<div class="customjs">
<div class="form-widget">
<div class="form-result"></div>
<form class="mb-0" id="template-contactform" name="template-contactform" action="include/form.php" method="post">
<div class="form-process">
<div class="css3-spinner">
<div class="css3-spinner-scaler"></div>
</div>
</div>
<div class="row">
<div class="col-md-4 form-group">
<label for="template-contactform-name">Name <small></small></label>
<input type="text" id="template-contactform-name" name="template-contactform-name" value="" class="sm-form-control required" />
</div>
<div class="col-md-4 form-group">
<label for="template-contactform-email">Email <small>
</small></label>
<input type="email" id="template-contactform-email" name="template-contactform-email" value="" class="required email sm-form-control" />
</div>
<div class="col-md-4 form-group">
<label for="template-contactform-phone">Phone</label>
<input type="text" id="template-contactform-phone" name="template-contactform-phone" value="" class="sm-form-control" />
</div>
<div class="w-100"></div>
<div class="col-md-8 form-group">
<label for="template-contactform-subject">Subject <small></small></label>
<input type="text" id="template-contactform-subject" name="subject" value="Enquiry from EndoNET contact form" class="required sm-form-control" />
</div>
<div class="col-md-4 form-group">
<label for="template-contactform-service">Eligibility</label>
<select id="template-contactform-service" name="template-contactform-service" class="sm-form-control">
<option value="">-- Select One --</option>
<option value="Wordpress">doctor confirmed</option>
<option value="PHP / MySQL">Awaiting doctor appointment</option>
</select>
</div>
<div class="w-100"></div>
<div class="col-12 form-group">
<label for="template-contactform-message">Message <small>
</small></label>
<textarea class="required sm-form-control" id="template-contactform-message" name="template-contactform-message" rows="6" cols="30"></textarea>
</div>
<div class="col-12 form-group d-none">
<input type="text" id="template-contactform-botcheck" name="template-contactform-botcheck" value="" class="sm-form-control" />
</div>
<div class="col-12 form-group">
<button name="submit" type="submit" id="submit-button" tabindex="5" value="Submit" class="button button-3d m-0">Submit</button>
</div>
</div>
<input type="hidden" name="prefix" value="template-contactform-">
</form>
</div>
</div

RroburdickFeb 16, 2023

Hello, I accidentally fixed my issue! No idea what the error was. I simply took the include folder from a site I know works and copied over the include folder on the site that was broken. Must have been a broken 'form.php' i guess! Anyway close ticket please!

SSemicolon WebSTAFFFeb 16, 2023

Hello,

Glad the issue was resolved.

  1. The .customjs Class should be added to the .form-widget DIV. Example: ``.

  2. The error would definitely have been with the PHP Codes as the form.php File was breaking. Currently, your server configuration is set to not display errors which is why it returns a 500 Internal Server Error.

Hope this Helps!

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

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