Results 1 to 3 of 3

Thread: Socket error 111 Failed opening 'formmail-postconfig.inc.php'

  1. #1
    Join Date
    Feb 2011
    Location
    The Netherlands
    Posts
    14

    Default Socket error 111 Failed opening 'formmail-postconfig.inc.php'

    Formmail with fmbadhandler the form on www.vuyk.eu/contact/ allways used to work fine until I changed providers.
    Now, onsubmit, in the browser it says:
    Cannot open template 'http://www.vuyk.eu/onvolledige_contactaanvr?USER_AGENT=Mozilla%2F5.0+%28Windows+NT+6.1%3B+WOW64%3B+rv%3A24.0%29+Gecko%2F20100101+Firefox%2F24.0&sessid=67a04d3750d883ba4dccb7852b85b75f&':
    Formmail sends 2 mails:
    The following error occurred in FormMail : mail_failed ********** Error=Failed to send email
    and:
    The following error occurred in FormMail : Socket error 111: Connection refused: include() [<a href='function.include'>function.include</a>]: Failed opening 'formmail-postconfig.inc.php' for inclusion (include_path='.:/usr/share/pear')
    I posted a post of this problem earlier, but that didn't get any response.
    Perhaps I wasn't clear or this is some kind of esoteric problem no one has encountered yet?
    Now I tried to be as distinct as possible.
    Thanks for any reply!

  2. #2
    Join Date
    Jun 2005
    Posts
    15

    Default Re: Socket error 111 Failed opening 'formmail-postconfig.inc.php'

    I'm having a similar error....

    The following error occurred in FormMail :
    Socket error 0: : include() [<a href='function.include'>function.include</a>]: Failed opening 'formmail-postconfig.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')

    What confuses me is that these lines below are in in the FormMail script (ver 8.36) but I haven't created either of these files because I do not need them..... unless this error means I DO need them.

    Documentation is really sketchy on this...

    @include("formmail-preconfig.inc.php");


    @include("formmail-postconfig.inc.php");

    Can someone shed some light on the error and also let me know is these two files must be created? If not, then should those 2 lines be commented out in the FormMail script?

  3. #3
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Socket error 111 Failed opening 'formmail-postconfig.inc.php'

    Hi,

    That seems very strange.

    No, you don't need these files. They exist for hooking in additional PHP code into FormMail's processing.

    If they don't exist, the situation is simply ignored.

    But, apparently, on your server it's not ignored.

    However, the most likely situation is that the "Socket error 111" is related to something else, such as TEMPLATEURL or MULTIFORMURL.

    If you have either of these settings in use, then it seems that either your server cannot contact the URL (that's what 111 means - connection refused).

    Sometimes PHP's errors get conflated together. Focus on the "Socket error 111" as being the issue.

    BTW, you can use our Hosted Forms service and avoid all issues with PHP on your server.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Failed opening required 'recaptchalib.php'
    By SRD in forum Community Support
    Replies: 0
    Last Post: 26-May-2013, 01:57 AM
  2. formmail-postconfig setup
    By jimsefton in forum Features Questions
    Replies: 6
    Last Post: 18-Apr-2012, 08:42 PM
  3. formmail-postconfig setup
    By jimsefton in forum Community Support
    Replies: 0
    Last Post: 18-Apr-2012, 09:55 AM
  4. Failure to process shtml file : Socket Error 111
    By MarionGE in forum Community Support
    Replies: 2
    Last Post: 09-Jan-2011, 11:40 AM
  5. Socket error 0: Cannot resolve host name
    By Maverick in forum Community Support
    Replies: 2
    Last Post: 24-Aug-2010, 10:18 AM

Tags for this Thread

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
  •