[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ErrorTemplate.cfm in application.cfm

Posted on 2007-08-10
9
Medium Priority
?
242 Views
Last Modified: 2013-12-24
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???            
0
Comment
Question by:FIATECH
  • 5
  • 4
9 Comments
 
LVL 14

Expert Comment

by:Scott Bennett
ID: 19671238
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#">      
0
 

Author Comment

by:FIATECH
ID: 19671377
Nope didn't work....
0
 
LVL 14

Expert Comment

by:Scott Bennett
ID: 19671501
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/";

0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:FIATECH
ID: 19671619
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
0
 
LVL 14

Expert Comment

by:Scott Bennett
ID: 19671707
client.clientpathcust="/Cii/scriptcontent/";
0
 

Author Comment

by:FIATECH
ID: 19672258
I changed it to the above and it shut the whole site down! Opps. It said it couldn't find that path.
0
 

Author Comment

by:FIATECH
ID: 19672261
So I took the cii away and the error went away
0
 
LVL 14

Assisted Solution

by:Scott Bennett
Scott Bennett earned 2000 total points
ID: 19673134
try putting your ErrorTemplate.cfm in the websites root folder then take the variable out of the template attribute like:
<cferror type="EXCEPTION" template="ErrorTemplate.cfm" mailto="#application.webmaster_email#">      
0
 

Accepted Solution

by:
FIATECH earned 0 total points
ID: 21161722
Found solution on my own, please close this question
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question