Results 1 to 3 of 3

Thread: Failure to process shtml file : Socket Error 111

  1. #1
    Join Date
    Jan 2011
    Posts
    3

    Default Failure to process shtml file : Socket Error 111

    I'm a complete novice to php. This first php file I ever saw was FormMail!!

    I have managed to get the form to with the static thanks page. However I want to upload a dynamic web page. I created a success template called www.sen-training.co.uk/form_success.shtml. This page will load correctly when accessed directly.

    I changed my form header to :
    <form method="post" action="http://www.sen-training.co.uk/formmail_test.php" name="booking">

    <input type="hidden" name="recipients" value="myaddress" />

    <input type="hidden" name="good_template" value="www.sen-training.co.uk/form_success.shtml" />

    And in the formMail.php changed the templateURL to:
    $TEMPLATEURL = "http://www.sen-training.co.uk/form_success.shtml";

    I uploaded all these files:
    www.sen-training.co.uk/booking_forms_test.shtml
    www.sen-training.co.uk/form_success.shtml
    www.sen-training.co.uk/formmail_test.php

    When I submit the form the contents are emailed to me but the template page won't open. The Error report says a Socket Error 111: Connection refused:

    I have no idea what this is.

    Thank you for any help you can give me.
    Last edited by MarionGE; 07-Jan-2011 at 05:34 AM.

  2. #2
    Join Date
    Jan 2011
    Posts
    3

    Default Re: Failure to process shtml file : Socket Error 111

    I figured it out!! I went to read the Advanced Error Handling and it specifies that you MUST create a new directory for the templates. I had loaded mine straight to the main directory.

    Now it works. Yeah!!!

    However now the SSI includes don't work. How do I reference them? Current involve is "/static_content/right_menu.html". Where the static_content folder is the same level as fmtemplates folder.
    "/public_html/static_content/header.html" doesn't work.

    Help!
    Last edited by MarionGE; 07-Jan-2011 at 06:17 AM.

  3. #3
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Failure to process shtml file : Socket Error 111

    instead of:
    $TEMPLATEURL = "http://www.sen-training.co.uk/form_success.shtml";

    it should just be:
    $TEMPLATEURL = "http://www.sen-training.co.uk/";

    and, instead of:
    <input type="hidden" name="good_template" value="www.sen-training.co.uk/form_success.shtml" />

    it should be:
    <input type="hidden" name="good_template" value="form_success.shtml" />

    if that doesn't fix it, are u sure ur SSI includes begin with '/' ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 19-Apr-2006, 02:46 AM
  2. Replies: 0
    Last Post: 15-Feb-2006, 04:43 PM
  3. Unable to create check file ~ error message
    By Fatcat in forum FormMail Subscription Support
    Replies: 2
    Last Post: 11-Oct-2005, 05:03 AM
  4. Unable to create check file ERROR
    By mdegan in forum FormMail Subscription Support
    Replies: 1
    Last Post: 12-May-2005, 10:57 PM
  5. Create check file error & Real Document Root
    By Chrisanna in forum FormMail Subscription Support
    Replies: 1
    Last Post: 01-May-2005, 11:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •