How to I debug my cgiemail form? Print
Submit Cancel
Email this article

Close

You are here: Home > Website Support > CGI Scripts

Debugging - Common Errors with CGIEMAIL

Error:
[Page cannot be displayed: HTTP 500 - Internal server error]

Possible solution:

  • Reference to the template.txt file cannot be found by the cgiemail script.
  • Ensure that the template.txt file exists and is placed in the correct location
  • Ensure that the name of the template.txt file does correspond to the name specified in the HTML code (the names are case sensitive)

Error:
[403 No variable substitutions in template]

Possible solution:

  • Indicates that the variables reference from the web page does not correspond to the variables created in the template.txt file.
  • It can either be that a specified variable in the template.txt file does not exist in the HTML form code page or that it was misspelled. Please note that variable names are case sensitive.
  • All variables must be referenced within square brackets.

Error:
[HTTP 404 - File not found]

Possible solution:

  • The above 404 page not found error message is generally caused by the success redirect page not being located after submitting the form.
  • Ensure coding in your HTML form reference the correct URL for the confirm.html page
  • Ensure the confirmation page is uploaded correctly
  • Ensure the case of the success page is correct

Debugging - Using CGIECHO in action field

For testing purposes, you may substitute the reference to ‘cgiemail’ with ‘cgiecho’; this will display the feedback form results on your browser screen without actually sending them by email. If you see an error with a number near 500 instead, your ACTION field is probably incorrect.

Should you encounter empty fields in your input fields after submitting the form, ensure that the input fields have the exact same names in the HTML form code as in your template.txt file.

Was this information helpful?

Yes No

Thank you for your feedback
We are delighted to find that our article resolved your query.

Thank you for your feedback
We will resolve your query as soon as possible.

Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.


  Partially resolved    Unresolved
Enter your query here:
Your name:
Your email address:
Contact number:
Customer number or domain name:
 
Preferred contact method: Email     Call me
Please enter the text in the picture below into the text box:
CAPTCHA Image:
ID Number:
 
  • Hosting for Beginners

    Step-by-step guide to hosting with Hetzner.

    VIEW NOW
  • Application Tutorials

    Use our installation guides to get up and running.

    VIEW NOW
  • Login Now

    Our award winning proprietary control panel empowers customers to manage their hosting environment.

    Take the Tour
  • Contact Us

    support@hetzner.co.za

    Phone: 0861-0861-08
    Fax: 0861 0861-09
    Contact Us