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.
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
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:
I get the regular FormMail error page with the following error from FormMail:
- Formail has been tested and working.
- Created a template dir on server named error.
- I have modified the $TEMPLATEDIR to reflect new dir.
- Modified form with hidden field bad_template value=oops.htm
- Currently using sampleerrortemplate.htm as a test template renamed it oops.htm and uploaded to error dir.
- When testing form I do not enter required feilds to attempt to get custom html template.
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.
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/
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.
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/
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks