+ Reply to Thread
Results 1 to 7 of 7

Thread: Mysterious Function Fopen Error

  1. #1
    Join Date
    Feb 2009
    Posts
    34

    Default Mysterious Function Fopen Error

    Hello All: I have been running version 8.11 of FM and version 1.17 of FM Bad Handler virtually problem free now on several forms for nearly 18 months. Suddenly when forms are submitted I am getting a consistent error starting with:

    "Cannot open template..." and it gives the url of the error template, followed by lots of indecipherable data. The conclusion of the extensive error message is "[function fopen] failed to open stream: no suitable wrapper could be found."

    This occurs even if the form is submitted properly! No changes were made to the forms or the scripts, yet this error has recently started to occur with each form. I checked the host server, not sure if they recently updated but they are running Apache 2.2.11 (unix).

    I am linking to a form example here. I removed all of the "Required" entries except First Name for easy submission. No forms are functioning. Any help would be appreciated. Thanks.




  2. #2
    Join Date
    May 2008
    Posts
    1,274

    Default Re: Mysterious Function Fopen Error

    Are you using $TEMPLATEDIR or $TEMPLATEURL in formmail.php, and if so what is the setting?

  3. #3
    Join Date
    Feb 2009
    Posts
    34

    Default Re: Mysterious Function Fopen Error

    Hello Ginger. I am not using $TEMPLATEDIR, however my setting for $templateurl is

    $TEMPLATEURL = "http://www.hillmanb2.com/fmtemps";

    That is where each of my templates are located. I hope this helps. Thanks.

  4. #4
    Join Date
    May 2008
    Posts
    1,274

    Default Re: Mysterious Function Fopen Error

    Try changing from $TEMPLATEURL to $TEMPLATEDIR. (You'll need to remove the contents of $TEMPLATEURL.)

    Also, note that $TEMPLATEDIR is a server path, not a url, so you'll need to find the server path to your template directory by running testalert and getting the path to your document root, then adding the rest of the path to your template directory.

  5. #5
    Join Date
    Feb 2009
    Posts
    34

    Default Re: Mysterious Function Fopen Error

    Got it Ginger23. I certainly will and I'll let you know the results. Thanks.

  6. #6
    Join Date
    Feb 2009
    Posts
    34

    Default Re: Mysterious Function Fopen Error

    Problem Resolved! Ginger23, the problem was in FM Badhandler. For some strange reason I had to go in and redirect the settings to the templates folder. I have not published FM Badhandler for several months and everything worked fine until yesterday. I have no idea what occurred on the serve side, but you certainly helped by pointing me to the Templatdir setting. Thanks again for your help! Enjoy your day.

  7. #7
    Join Date
    May 2008
    Posts
    1,274

    Default Re: Mysterious Function Fopen Error

    Glad you got it sorted out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Trouble with the formmail ini function
    By Carina in forum Community Support
    Replies: 3
    Last Post: 17-Sep-2006, 03:48 PM
  2. Allow Url Fopen
    By Sector3 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 07-Feb-2006, 12:43 AM
  3. How do i disable the autoresponder function?
    By mikie in forum FormMail Subscription Support
    Replies: 3
    Last Post: 28-Jan-2006, 10:14 PM
  4. Refer a friend function
    By merlenn in forum FormMail Subscription Support
    Replies: 1
    Last Post: 03-Dec-2005, 11:55 PM
  5. Fatal error: Call to undefined function: () ... line 182
    By andreashoi in forum FormMail Subscription Support
    Replies: 2
    Last Post: 12-Nov-2004, 08:46 AM

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