+ Reply to Thread
Results 1 to 4 of 4

Thread: Problem loading HTML Error Template

  1. #1
    Join Date
    Feb 2005
    Posts
    2

    Question Problem loading HTML Error Template

    I can not figure out why I keep getting the following problem.

    I am trying to customize an error page. I have done the following:
    1. Formail has been tested and working.
    2. Created a template dir on server named error.
    3. I have modified the $TEMPLATEDIR to reflect new dir.
    4. Modified form with hidden field bad_template value=oops.htm
    5. Currently using sampleerrortemplate.htm as a test template renamed it oops.htm and uploaded to error dir.
    6. When testing form I do not enter required feilds to attempt to get custom html template.
    I get the regular FormMail error page with the following error from FormMail:

    The following error occurred in FormMail [M18]:

    Failed to open template "/error/oops.htm" ([M22]): failed to open stream: Operation not permitted


    I must be missing something, but not sure what. Can anyone shed some light on this, it would be greatly appreciated.

    Sincerely,
    Webz
    Last edited by Webz; 26-Feb-2005 at 06:16 AM.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Problem loading HTML Error Template

    Hi,

    The most likely reason is that the web server user doesn't have permission to open the file for reading.

    Make the mode: rw-r--r--

    and see if that fixes it.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Feb 2005
    Posts
    2

    Unhappy Re: Problem loading HTML Error Template

    Thanks Russel for your quick reply to my post.

    I have check the file permission on the template file and it is already set to rw-r--r--. In addition, I chmod the file to 777 and still nothing. I then restored file permission to chmod 644 (rw-r--r--) but still a no go.

  4. #4
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Problem loading HTML Error Template

    Hi,

    OK. What about the path to the file. Is the path really "/error"?

    That seems an very short path. I would expect "/usr/home/yourname/public_html/error" or something like that.

    Check that the directory is searchable: mode rwxr-xr-x would be fine.

    The error is pretty clear - the web server software does not have permission to open the file.

    You can also run "<? phpinfo(); ?>" to check your web server for silly PHP "security" configurations which may prevent opening files. But, that doesn't seem to be the case based on the error shown.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ 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. HTML Template for Email could not be opened
    By gaso in forum FormMail Subscription Support
    Replies: 5
    Last Post: 12-Jan-2005, 12:53 AM
  2. html output error and parse errors in php
    By dynamicmedia in forum FormMail Subscription Support
    Replies: 8
    Last Post: 01-Dec-2004, 09:49 PM
  3. Problem with HTML template
    By bmollon in forum FormMail Subscription Support
    Replies: 4
    Last Post: 25-Nov-2004, 11:46 PM
  4. External CSS Formatting of HTML Email Template
    By sebestyen in forum FormMail Subscription Support
    Replies: 2
    Last Post: 14-Oct-2004, 10:30 PM
  5. Error template - a sample for you to use
    By russellr in forum FormMail
    Replies: 0
    Last Post: 18-May-2004, 04:38 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