Link to home
Start Free TrialLog in
Avatar of FIATECH
FIATECH

asked on

ErrorTemplate.cfm in application.cfm

I have a root with severval folders and sub directories. The error templates works well in one folder BUT the new folders that I created with 25+ pages doesn't pull the errortemplate files when a error is generated/ Any suggestions?

Here's what I have in the app file:

client.clientpathcust="../scriptcontent/";

<cferror type="EXCEPTION" template="#client.clientpathcust#ErrorTemplate.cfm" mailto="#application.webmaster_email#">      

I'm very new to this? can I take this clientpathcust stuff out???            
Avatar of Scott Bennett
Scott Bennett
Flag of United States of America image

Make it so that the clientpathcust is an absolute path instead of a relative path. like:

client.clientpathcust="/scriptcontent/";

<cferror type="EXCEPTION" template="#client.clientpathcust#ErrorTemplate.cfm" mailto="#application.webmaster_email#">      
Avatar of FIATECH
FIATECH

ASKER

Nope didn't work....
Do you have any folders between the webroot and the script content folder? in an absolute path the first / symbolizes the webroot so you would need to add any other folders between the root and the scriptcontent folder to the path like:

client.clientpathcust="/folder1/folder2/scriptcontent/";

Avatar of FIATECH

ASKER

yes, the root folder. I have a feeling something is wrong with the paths

This is in my execute time

F:\notweb\wwwroot\Cii\ScriptContent\Application.cfm
client.clientpathcust="/Cii/scriptcontent/";
Avatar of FIATECH

ASKER

I changed it to the above and it shut the whole site down! Opps. It said it couldn't find that path.
Avatar of FIATECH

ASKER

So I took the cii away and the error went away
SOLUTION
Avatar of Scott Bennett
Scott Bennett
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial