Login

    Register

PROJECT CATEGORIES

 

CFFormProtect
Project Home Blog Forums Known Issues Screenshots Contact Project

CFFormProtect Issue: Error message temple file not found

Name: Error message temple file not found
ID: 10
Project: CFFormProtect
Type: Bug
Area: Code
Severity: High
Status: Closed
Related URL: http://speeding.net/contact.cfm
Creator: Jeniann Nielsen
Created: 07/03/09 6:15 PM
Updated: 12/09/09 4:39 PM
Description: I am trying to add the CFFormProtect to my form and I get the following error:

Error Diagnostic Information
Template file not found.
HTTP/1.0 404 Object Not Found
Note: If you wish to use an absolute template path (e.g. TEMPLATE="/mypath/index.cfm") with CFINCLUDE then you must create a mapping for the path using the ColdFusion Administrator.
Using relative paths (e.g. TEMPLATE="index.cfm" or TEMPLATE="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
The error occurred while processing an element with a general identifier of (CFINCLUDE), occupying document position (138:1) to (138:46).

The object is definitely there, and I am using a relative path.

When I try load the file cffp.cfm I get essentially the same message:

Error Diagnostic Information
Template file not found.
HTTP/1.0 404 Object Not Found
Note: If you wish to use an absolute template path (e.g. TEMPLATE="/mypath/index.cfm") with CFINCLUDE then you must create a mapping for the path using the ColdFusion Administrator.
Using relative paths (e.g. TEMPLATE="index.cfm" or TEMPLATE="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
The error occurred while processing an element with a general identifier of (CFINCLUDE), occupying document position (6:1) to (6:48).

Again, the template path appears to be relative and I haven't changed anything in that file anyway, so it should work.

Could this be something that's happening because the server is Windows based?

Any help would be awesome.

Thanks!



History: Created by jeniannj (Jeniann Nielsen) : 07/03/09 6:15 PM

Comment by yacoubean (Jake Munson) : 07/03/09 9:00 PM
Hi Jeniann,

Can you give me the details of your problem? Like the path on your server to the file that is displaying the error, and the path to the file that that is not being found? The fact that you are on a Windows server should not be a problem.

Other people have troubles with the paths in CFFP, but they eventually get it to work. So I don't think this is a bug. I really tried hard to make the paths not be a problem, but unfortunately I have no control over how people will setup their server, so paths are always going to be a problem.

Comment by jeniannj (Jeniann Nielsen) : 07/04/09 3:28 PM
Within the file where the form is (http://www.speeding.net/contact.cfm) I added this line within the cfform tags:
<cfinclude template="/cfformprotect/cffp.cfm">

The cfformprotect folder with all of its corresponding files is in the root directory for the site. I didn't make any changes to the files that I downloaded, just copied them to my site.

Any other information you need?

Comment by jeniannj (Jeniann Nielsen) : 07/06/09 2:20 PM
Sorry I'm still not understanding quite what information you need from me. My absolute path should be: d:/hshome/jayniels/speeding.net/cfformprotect
Does that help?

Comment by yacoubean (Jake Munson) : 07/07/09 11:58 PM
Sorry, Jeniann...I was away from the computer for a couple of days (family reunion). I wasn't ignoring you, just unable to see your messages and respond.

I am guessing, because I don't know how your web root is setup, but try using this:
<cfinclude template="/speeding.net/cfformprotect/cffp.cfm">

Comment by jeniannj (Jeniann Nielsen) : 07/08/09 6:01 PM
Well, that didn't work either. Any other suggestions?
I tried calling my ISP and they looked at it and said they didn't see why it's not working either . . .

Comment by yacoubean (Jake Munson) : 12/09/09 4:38 PM
If you are still watching this Jeniann, I am going to close this issue. Most other users are able to get the paths to work. Also, I am releasing a new version soon. If you still having problems, maybe this new version will help.

Updated by yacoubean (Jake Munson) : 12/09/09 4:39 PM

To add a comment to this bug, please login using the link above.