RE: Missing Template Handler

2013-02-20 Thread Russ Michaels

Yes we have it working here.
Are you sure there are no errors ipccurring n the template?
Iis7 will not show cf errors by default.

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Feb 20, 2013 5:21 PM, "Robert Harrison" 
wrote:

>
> Does anyone have the missing template handler working for IIS7 or above?
>  We have all missing pages except .cfm working.  Any thoughts.
>
>
>
> Robert Harrison
> Director of Interactive Services
>
> Austin & Williams
> Advertising I Branding I Digital I Direct
> 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
> T 631.231.6600 X 119   F 631.434.7022
> http://www.austin-williams.com
>
> Blog:  http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austin_
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354605
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Missing Template Handler : RESOLVED

2013-02-20 Thread Robert Harrison

Found a solution that overrides the problems with IIS not serving up the 
missing template handler from the CF administrator.  Put this in the 
application.cfc file:


 
   

Thanks Ray Camden... found that (or a variation thereof) in your blog. 


Robert Harrison 
Director of Interactive Services

Austin & Williams
Advertising I Branding I Digital I Direct  
125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
T 631.231.6600 X 119   F 631.434.7022   
http://www.austin-williams.com

Blog:  http://www.austin-williams.com/blog
Twitter:  http://www.twitter.com/austin_

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354604
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Missing Template Handler

2013-02-20 Thread Robert Harrison

Does anyone have the missing template handler working for IIS7 or above?  We 
have all missing pages except .cfm working.  Any thoughts. 



Robert Harrison 
Director of Interactive Services

Austin & Williams
Advertising I Branding I Digital I Direct  
125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
T 631.231.6600 X 119   F 631.434.7022   
http://www.austin-williams.com

Blog:  http://www.austin-williams.com/blog
Twitter:  http://www.twitter.com/austin_

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354598
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Missing Template Handler and Application.cfc

2009-03-26 Thread Ian Skinner

Charlie Griefer wrote:
> On Thu, Mar 26, 2009 at 10:31 AM, Ian Skinner  wrote:
>
>   
>> I take it that a CFML template defined to be used as a missing template
>> hander does not process Application.cfc as a normal template does.
>>
>> Does anybody no the scoop about this?
>>
>> 
>
> Well, according to the docs, you're supposed to either output the "Sorry,
> Page Not Found"-type message in the onMissingTemplate itself, or cfinclude
> it from another location.  If you're asking whether the cfincluded page will
> process Application.cfc again, I'd think not.

Yes, we use a main Application.CFC that does a lot of work that 
ultimately provide a good deal of the look and feel for your site.  I 
was a bit surprised when I ran a 404error.cfm as a missing template 
handler that it did not include any of this.  I had to manually add and 
call the ca_templates.CFC that is responsible for wrapping all our 
content in a template.  For normal file this CFC is put into the 
application scope and called in onRequest to wrap the content.





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321006
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing Template Handler and Application.cfc

2009-03-26 Thread Charlie Griefer

On Thu, Mar 26, 2009 at 10:31 AM, Ian Skinner  wrote:

>
> I take it that a CFML template defined to be used as a missing template
> hander does not process Application.cfc as a normal template does.
>
> Does anybody no the scoop about this?
>

Well, according to the docs, you're supposed to either output the "Sorry,
Page Not Found"-type message in the onMissingTemplate itself, or cfinclude
it from another location.  If you're asking whether the cfincluded page will
process Application.cfc again, I'd think not.
If you're doing a cflocation inside the onMissingTemplate, I'd say it will
process again.  The docs say not to use cflocation (or other such
mechanisms) presumably for fear of throwing yourself into recursive hell
(which means yes... the Application.cfc will process again).

-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321005
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Missing Template Handler is missing part Duex

2008-08-08 Thread Ian Skinner
Jim Davis wrote:
> We had a similar situation (dev, int, qa, dr and prod servers with slightly
> different settings).  We ended up adding environment variables to the boxes
> with the different information (paths, names, etc) and using the CFREGISTRY
> tag to fetch the values.

Interesting idea.

Does this work on Unix servers?  Or older servers are currently Unix.  
We seem are moving to Windows servers internally, but I'm not sure if 
the external servers will ever be Windows.  But as we move forward we 
are working hard to not run into this problem by making the servers as 
consistent as possible, so it maybe a moot point by then,.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310543
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Missing Template Handler is missing part Duex

2008-08-08 Thread Jim Davis
> -Original Message-
> From: Ian Skinner [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2008 11:26 AM
> To: CF-Talk
> Subject: Re: Missing Template Handler is missing part Duex
>
> I had originally used the expandPath() function to dynamically get the
> web root so it would not matter which server it was on.  I guess if it
> becomes important enough I will create a switch structure based of
> cgi.server or something like that.  But at least for now it is working
> as desired on the production server.

Not really a solution, but a possible workaround:

We had a similar situation (dev, int, qa, dr and prod servers with slightly
different settings).  We ended up adding environment variables to the boxes
with the different information (paths, names, etc) and using the CFREGISTRY
tag to fetch the values.

The environment variables could be easily changed without a code deploy and
the code didn't need needless complications to determine which environment
it was running in.

Maybe too complex for this problem, but it worked a treat for us.

Jim Davis


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310534
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing Template Handler is missing part Duex

2008-08-08 Thread Ian Skinner
Jim Davis wrote:
> I honestly can't remember or find if the missing template handler was
> restricted by the same rules... but I have a vague recollection that it was.
>
> Jim Davis

Nope all the other CFML works just fine in the Missing Template 
Handler.  I was concerned about the same thing and had done some simple 
tests to make sure.

It is just the expandPath() function that mis-behaves.  Once I removed 
it and just used a hard coded path all the rest of the CFML worked 
fine.  This just means that this missing template handler code will only 
function correctly on our production server because we have the 
problematic situation here where our production server, our staging 
server and our development server where all set up with *different* web 
root paths.  Yippee.

I had originally used the expandPath() function to dynamically get the 
web root so it would not matter which server it was on.  I guess if it 
becomes important enough I will create a switch structure based of 
cgi.server or something like that.  But at least for now it is working 
as desired on the production server.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310521
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Missing Template Handler is missing part Duex

2008-08-08 Thread Jim Davis
> -Original Message-
> From: Ian Skinner [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2008 10:20 AM
> To: CF-Talk
> Subject: Re: Missing Template Handler is missing part Duex
> 
> Ok so what is wrong with using expandPath() in a 4.5 ColdFusion
> template
> that is used as the Missing Template handler?
> 
> That is the source of my problem.  When the 404error.cfm file is called
> directly in a browser the expandPath() function works properly and
> resolves the absolute path I need to work with for the 
> calls
> to replace the  directives.

Just to poke in, maybe it's already been discussed: CF 4.5 didn't allow the
use of any CFML in error templates.

It's a bit buried, but the docs for CF 4.5 are here:

http://www.adobe.com/support/documentation/en/coldfusion/documentation452.ht
ml/

This is from the "Developing Web Application..." book:

"The error application page is a file that includes HTML and the parameters
associated with the error. The error application page cannot use any CFML
tags.  The parameters associated with an error depend on the type of error.
All the error parameters use the Error prefix (for example,
Error.Diagnostics)."

The original thinking was that if the server was hosed you'd still get your
error page.  But it wasn't very flexible.

I honestly can't remember or find if the missing template handler was
restricted by the same rules... but I have a vague recollection that it was.

Jim Davis


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310519
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing Template Handler is missing

2008-08-08 Thread Tom Chiverton
On Friday 08 Aug 2008, Ian Skinner wrote:
> /root/something/else/htdocs/errors/404error.cfm -- Completely ignored!
> CF serves up its default 404 error message.

Could there be an error in the 404 CFML page ? What if you replace it with 
just 'foo' or '#now()#' ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310509
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing Template Handler is missing part Duex

2008-08-08 Thread Ian Skinner
Ok so what is wrong with using expandPath() in a 4.5 ColdFusion template 
that is used as the Missing Template handler?

That is the source of my problem.  When the 404error.cfm file is called 
directly in a browser the expandPath() function works properly and 
resolves the absolute path I need to work with for the  calls 
to replace the  directives.

But when the 404error.cfm file is called as the Missing Template 
Handler, the expandPath() function only returns passed parameter.  And 
then for some reason I do not fathom, this causes the ColdFusion server 
to serve up it's default 404 error rather then some other error when the 
returned path does not work with the  tag.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310506
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing Template Handler is missing part Duex

2008-08-08 Thread Ian Skinner
Dawson, Michael wrote:
> Are you certain that CF can "see" that .cfm file?  Can you actually
> execute it?  Do you have the correct CF mapping that allows it to
> resolve?
>
> mike 

Yes I believe that CF can see the file, I can directly browse to it and 
it works that way.
http://www.cdpr.ca.gov/errors/404error.cfm

If I put the 404error.htm file that is in the same directory into the 
missing template handler, it is found, but the  directories do not work, I presume because ColdFusion 4.5 is 
processing the file and does not understand them.

And just to be weirder...
If it put an test.cfm file that is in the same directory that just has a 
simple string in it it is working.  I'm suspecting it must be something 
inside the 404error.cfm file is not working but what type of 
internal code would cause 404 errors?  I'm using  and a custom 
tag but I would presume these would throw more then just a basic 404 
error if they where not finding the files they reference, wouldn't they?



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310501
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Missing Template Handler is missing

2008-08-08 Thread Ian Skinner
Adam Churvis wrote:
> "Missing Template Handler is missing..."
>
> Doesn't that just have a sort of Zen ring to it?
>
> Respectfully,
>
> Adam Phillip Churvis 
> President
> Productivity Enhancement

Zen or not, it is also very frustrating that it does not work.

To be clear and up front, I am talking about an ancient CF4.5/Solaris 
Unix server.

/root/something/else/htdocs/errors/404error.htm -- Works, except that 
 are ignored.

/root/something/else/htdocs/errors/404error.cfm -- Completely ignored!  
CF serves up its default 404 error message.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310498
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Missing Template Handler is missing part Duex

2008-08-08 Thread Dawson, Michael
Are you certain that CF can "see" that .cfm file?  Can you actually
execute it?  Do you have the correct CF mapping that allows it to
resolve?

mike 

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2008 5:00 PM
To: CF-Talk
Subject: Missing Template Handler is missing part Duex

Ok, I though I found out how to input a missing template handler into
our aged 4.5 Unix ColdFusion server.  I was able to have it server up
the custom 404error.htm file developed by our web department.  And this
worked, sort of.

The problem was that this HTML file makes use of Apache 

Re: Missing Template Handler is missing part Duex

2008-08-08 Thread Ian Skinner
Tom Chiverton wrote:
> On Thursday 07 Aug 2008, Ian Skinner wrote:
>   
>> into the ColdFusion administrator and replaced the 
>> HTML file path '/rootDir/subDir/subDir/htdocs/errors/404error.htm' with
>> the corresponding CFML path
>> '/rootDir/subDir/subDir/htdocs/errors/404error.cfm' it stop working.
>> 
>
> Here, the path is relative to the wwwroot installed with CF, the one with 
> CFIDE as a child dir i.e. /var/spool/cf/wwwroot or whatever.
> CF8/Linux.

I would like to make sure everybody understands this is an ancient 
CF4.5/Solaris server.  And before the cries to just upgrade start, it 
will happen but not for some time yet.  Not until a larger system 
upgrade is finished in the next year or so.





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310496
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Missing Template Handler is missing part Duex

2008-08-08 Thread Tom Chiverton
On Thursday 07 Aug 2008, Ian Skinner wrote:
> into the ColdFusion administrator and replaced the 
> HTML file path '/rootDir/subDir/subDir/htdocs/errors/404error.htm' with
> the corresponding CFML path
> '/rootDir/subDir/subDir/htdocs/errors/404error.cfm' it stop working.

Here, the path is relative to the wwwroot installed with CF, the one with 
CFIDE as a child dir i.e. /var/spool/cf/wwwroot or whatever.
CF8/Linux.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310480
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Missing Template Handler is missing

2008-08-07 Thread Adam Churvis
"Missing Template Handler is missing..."

Doesn't that just have a sort of Zen ring to it?

Respectfully,

Adam Phillip Churvis 
President
Productivity Enhancement



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310469
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Missing Template Handler is missing

2008-08-07 Thread Kevin Stone
Yea, unless the unix version is different, i think CF 5.0 and earlier require 
an absolute path while MX and 8 use a relative path. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310439
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Missing Template Handler is missing

2008-08-07 Thread Ian Skinner
Kevin Stone wrote:
> I thought that there was a link at the bottom of the page that addresses 
> general things to try via Coldfusion Admin.  Sorry if I was incorrect.

Well that did finally get me to what I need to know.  It was looking for 
a file system path not an URI path.  Is this something that changed 
since 4.5?  Because I could have sworn that I used relative URI paths in 
my modern servers.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310435
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing Template Handler is missing

2008-08-07 Thread Kevin Stone
I thought that there was a link at the bottom of the page that addresses 
general things to try via Coldfusion Admin.  Sorry if I was incorrect 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310434
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Missing Template Handler is missing

2008-08-07 Thread Ian Skinner
Kevin Stone wrote:
> Have you tried everything mentioned at 
> http://kb.adobe.com/selfservice/viewContent.do?externalId=95ee04fb 

Well no, because when I looked at the article and saw that it has a 
Windows and IIS focus I did not think it applied to my Unix and Apache 
system.  Does it?



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310432
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing Template Handler is missing

2008-08-07 Thread Kevin Stone
Have you tried everything mentioned at 
http://kb.adobe.com/selfservice/viewContent.do?externalId=95ee04fb 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310429
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Missing Template Handler Strangeness....

2008-02-07 Thread Dave Watts
> I have a custom missing template set up, but something either 
> in the application or with CF7 keeps hitting it.
> 
> I know this because I have the missing template write to a CF 
> log file. Everytime I refresh the logs, this log file keeps growing.
> 
> Almost like something within the application keep repeatedly 
> hitting the page. I've cut the page right back to just the 
> logging in order to rule out any external coding issues.

You should be able to log the name of the file that CF is looking for. It's
a member of the exception structure (CFCATCH.MissingFileName). You should
also be able to log the name of the file that's looking for the file.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298444
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Missing template handler issues

2008-02-05 Thread Don
That's a good thought, but I did double check this by removing ( commenting ) 
all included files to see if that might be causing the problem, the same thing 
seems to happen.There at the end of our CUSTOM missing template page is the 
DEFAULT CF Missing Template page.

Yah the ( file not found ) warning is for the page I requested that doesn't 
exist.






> the standard cf missing template (file not found...) warning you see: 
> is 
> it for the requested page or for some template cfinluded in your 
> missing 
> template handler page?
> just a thought...
> 
> ---
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com
> 
> 
> 
> Don wrote:
> > I would like to add to this that we do NOT want to see the default ( 
> missing template information ). It seems to append this to the custom 
> 'missing template' page I've specified. 
> >
> > I'm not sure why since CF knows that we want a customized missing 
> template handler. 
> >
> > 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298217
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing template handler issues

2008-02-05 Thread Azadi Saryev
the standard cf missing template (file not found...) warning you see: is 
it for the requested page or for some template cfinluded in your missing 
template handler page?
just a thought...

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com



Don wrote:
> I would like to add to this that we do NOT want to see the default ( missing 
> template information ). It seems to append this to the custom 'missing 
> template' page I've specified. 
>
> I'm not sure why since CF knows that we want a customized missing template 
> handler. 
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298202
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Missing template handler issues

2008-02-05 Thread Don
I would like to add to this that we do NOT want to see the default ( missing 
template information ). It seems to append this to the custom 'missing 
template' page I've specified. 

I'm not sure why since CF knows that we want a customized missing template 
handler. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298197
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing Template Handler

2006-10-10 Thread Teddy Payne
I believe if the missing template handler throws an error then it hits the
sitewide error handler.  It may be good to make these homogenous in look and
feel.

Teddy

On 10/10/06, Ben Nadel <[EMAIL PROTECTED]> wrote:
>
> I believe that the missing template handler can handle a lot of
> ColdFusion tag code, but it cannot throw back to the original site...
> Meaning, you can run CF on the template (ie. CFMail) but you cannot have
> it in the given site template... Unless you do some snazzy include logic
> perhaps. But, I may be way off on that.
>
> ..
> Ben Nadel
> Certified Advanced ColdFusion Developer
> www.bennadel.com
>
>
> -Original Message-
> From: Ian Skinner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 10, 2006 12:11 PM
> To: CF-Talk
> Subject: Missing Template Handler
>
> I've tried to search the documentation, but I have not found what can
> one actually do in a template designated as a missing template handler
> in the CF administrator?  What information, if any, is passed to the
> template?
>
>
> --
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> -
> | 1 |   |
> -  Binary Soduko
> |   |   |
> -
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice:  This message including any attachments is for
> the sole use of the intended
> recipient(s) and may contain confidential and privileged information.
> Any unauthorized review, use, disclosure or distribution is prohibited.
> If you are not the intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
>
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256148
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Missing Template Handler

2006-10-10 Thread PETER SHEATS
I think you are referring to the page that you specify in the CF Admin
Settings page for Missing Template Handler.  

I can't remember if I found anyplace that specified exactly what was
allowed, but what I have in mine is the following code, which works
great.


HTTP_REFERER: #cgi.HTTP_REFERER#
HTTP_USER_AGENT: #cgi.HTTP_USER_AGENT#
SCRIPT_NAME: #cgi.SCRIPT_NAME#
REQUEST_METHOD: #cgi.REQUEST_METHOD#
REQUEST_BODY: #cgi.REQUEST_BODY#
REMOTE_IDENT: #cgi.REMOTE_IDENT#
REMOTE_HOST: #cgi.REMOTE_HOST#
QUERY_STRING: #cgi.QUERY_STRING#
HTTP_HOST: #cgi.HTTP_HOST#


That usually sends me everything I need to know to fix the problem. 

Peter


> -Original Message-
> From: Ian Skinner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 10, 2006 12:11 PM
> To: CF-Talk
> Subject: Missing Template Handler
> 
> I've tried to search the documentation, but I have not found what can
one actually do
> in a template designated as a missing template handler in the CF
administrator?
> What information, if any, is passed to the template?
> 
> 
> --
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
> 
> -
> | 1 |   |
> -  Binary Soduko
> |   |   |
> -
> 
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
> 
> Confidentiality Notice:  This message including any attachments is for
the sole use of
> the intended
> recipient(s) and may contain confidential and privileged information.
Any
> unauthorized review, use, disclosure or distribution is prohibited. If
you are not the
> intended recipient, please contact the sender and delete any copies of
this message.
> 
> 
> 
> ~~~
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256143
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Missing Template Handler

2006-10-10 Thread Teddy Payne
What type of missing template handler?  Are we talking about cfinclude?
404?

Teddy

On 10/10/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
>
> I've tried to search the documentation, but I have not found what can one
> actually do in a template designated as a missing template handler in the CF
> administrator?  What information, if any, is passed to the template?
>
>
> --
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> -
> | 1 |   |
> -  Binary Soduko
> |   |   |
> -
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice:  This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256138
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Missing Template Handler

2006-10-10 Thread Ben Nadel
I believe that the missing template handler can handle a lot of
ColdFusion tag code, but it cannot throw back to the original site...
Meaning, you can run CF on the template (ie. CFMail) but you cannot have
it in the given site template... Unless you do some snazzy include logic
perhaps. But, I may be way off on that.

..
Ben Nadel
Certified Advanced ColdFusion Developer
www.bennadel.com
 

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 10, 2006 12:11 PM
To: CF-Talk
Subject: Missing Template Handler

I've tried to search the documentation, but I have not found what can
one actually do in a template designated as a missing template handler
in the CF administrator?  What information, if any, is passed to the
template? 


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any attachments is for
the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender and
delete any copies of this message. 





~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256131
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: missing template handler

2005-09-18 Thread Dave Watts
> I created a mapping that points to the directory where my 
> page is and then set the page via /mapping/page.cfm and that 
> worked. Any idea why it needs a two step process in mx7 but 
> not in 5.0?

If I recall correctly, in CF 5 a filesystem path was used. In CFMX, the path
depends on a mapping, I think. You should only have to create your own
mapping if the root slash ("/") isn't mapped to your web server's document
root directory.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218590
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: missing template handler

2005-09-18 Thread dan martin
> I am trying to setup my 404 handler in CFMX 7 and cannot seem to get 
> it to take. The administrator keeps saying the file does not exist. It 
> says to specify the "relative path to the template". What does that 
> mean? I tried putting the file in the root and just specifying the 
> page, putting in the full path from the d:, putting in the http: path, 
> putting in the path relative to the CFIDE directory and relative to 
> the web root. All come back with the same error message. What am I 
> missing?
> 
> In 5.0, you specify using the full hard drive path and it works fine.
> 
> What do I need to do for MX7 to get this to 
stick?

I created a mapping that points to the directory where my page is and then set 
the page via /mapping/page.cfm and that worked. Any idea why it needs a two 
step process in mx7 but not in 5.0?

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218588
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Missing template handler (CFMX patch)

2003-09-24 Thread Chris Norloff
Have you tried entering different paths for the missing template handler in the 
CFadmin page?

I ask because the missing template handler path is based off the context root, but 
mappings are specified from the system root. I'm always forgetting which is which.

Doesn't make much sense, but that's the way our system works (CFMX 6.1 on WebSphere AS 
on Solaris)

Chris Norloff

-- Original Message --
From: Thomas Chiverton <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Wed, 24 Sep 2003 12:37:27 +0100

>Following the recent MX patch for the referer cross site scripting problem, I 
>thought it was about time I added a 'missing template handler' to one of our 
>MX 6.1 j2EE installs.
>
>But CF appears to be ignoring the setting and displaying the default error 
>page.
>
>Does anyone know what this might be releated to ? I have restarted the J2EE 
>instance, and removed the normal  tags from our Application.cfm to 
>no avail :-(
>
>-- 
>Tom Chiverton (sorry 'bout sig.)
>Advanced ColdFusion Programmer
>
>Tel: +44(0)1749 834997
>email: [EMAIL PROTECTED]
>BlueFinger Limited
>Underwood Business Park
>Wookey Hole Road, WELLS. BA5 1AF
>Tel: +44 (0)1749 834900
>Fax: +44 (0)1749 834901
>web: www.bluefinger.com
>Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
>Quay, BRISTOL. BS1 6EG.
>*** This E-mail contains confidential information for the addressee
>only. If you are not the intended recipient, please notify us
>immediately. You should not use, disclose, distribute or copy this
>communication if received in error. No binding contract will result from
>this e-mail until such time as a written document is signed on behalf of
>the company. BlueFinger Limited cannot accept responsibility for the
>completeness or accuracy of this message as it has been transmitted over
>public networks.***
>
>
~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138279
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm


RE: Missing Template Handler in CFMX not working

2003-04-03 Thread Chris Kief
Cameron,

Took a few tries for me to get this working as well...but here is what I
came up with:

- Place 404.cfm in the directory where / is mapped to. On my server / is
mapped to:
/opt/coldfusionmx/wwwroot.

- In the admin, use the following path for the template:
/404.cfm

That should do it for youchris



>-Original Message-
>From: Cameron Childress [mailto:[EMAIL PROTECTED]
>Sent: Thursday, April 03, 2003 5:20 AM
>To: CF-Talk
>Subject: Missing Template Handler in CFMX not working
>
>CFMX Linux UP2
>
>I defined a missing template handler in the cfadmin, using a cfmapping for
>the path - IE: /mysite/404.cfm.  I then deleted all the class files and
>restarted cfusion (just for good measure).  Problem is, the missing
>temaplte
>handler doesn't seem to be taking hold at all.  Has anyone else seen this
>behavior?  anyone have the missing template handler functioning on their
>CFMX server?
>
>Seems to be a pretty basic functionality, and have seen a high number of
>posts in the forums about it not working, but none seem to explain why
>people are having problems with it.
>
>-Cameron


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Missing Template Handler in CFMX not working

2003-04-03 Thread Cameron Childress
Yup, got the mapping, etc...

Still doesn't work.

-Cameron

-
Cameron Childress
Sumo Consulting Inc.
---
cell:  678-637-5072
aim:   cameroncf
email: [EMAIL PROTECTED]

-Original Message-
From: Chris Norloff [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 9:00 AM
To: CF-Talk
Subject: Re: Missing Template Handler in CFMX not working


My Missing Template Handler works okay (CFMX for J2EE (Update 3), JRun 4,
Solaris 8).

I notice that there MUST be a mapping for the Missing Template Handler entry
to take. The mapping points to an absolute address (complete path name). The
Missing Template Handler entry begins with the mapping and includes the
complete path name, including the filename.

HTH,
Chris Norloff

-- Original Message --
From: "Cameron Childress" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Thu, 3 Apr 2003 08:20:22 -0500

>CFMX Linux UP2
>
>I defined a missing template handler in the cfadmin, using a cfmapping for
>the path - IE: /mysite/404.cfm.  I then deleted all the class files and
>restarted cfusion (just for good measure).  Problem is, the missing
temaplte
>handler doesn't seem to be taking hold at all.  Has anyone else seen this
>behavior?  anyone have the missing template handler functioning on their
>CFMX server?
>
>Seems to be a pretty basic functionality, and have seen a high number of
>posts in the forums about it not working, but none seem to explain why
>people are having problems with it.
>
>-Cameron
>
>-
>Cameron Childress
>Sumo Consulting Inc.
>---
>cell:  678-637-5072
>aim:   cameroncf
>email: [EMAIL PROTECTED]
>
>
>

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Missing Template Handler in CFMX not working

2003-04-03 Thread Chris Norloff
My Missing Template Handler works okay (CFMX for J2EE (Update 3), JRun 4, Solaris 8).

I notice that there MUST be a mapping for the Missing Template Handler entry to take. 
The mapping points to an absolute address (complete path name). The Missing Template 
Handler entry begins with the mapping and includes the complete path name, including 
the filename.

HTH,
Chris Norloff

-- Original Message --
From: "Cameron Childress" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Thu, 3 Apr 2003 08:20:22 -0500

>CFMX Linux UP2
>
>I defined a missing template handler in the cfadmin, using a cfmapping for
>the path - IE: /mysite/404.cfm.  I then deleted all the class files and
>restarted cfusion (just for good measure).  Problem is, the missing temaplte
>handler doesn't seem to be taking hold at all.  Has anyone else seen this
>behavior?  anyone have the missing template handler functioning on their
>CFMX server?
>
>Seems to be a pretty basic functionality, and have seen a high number of
>posts in the forums about it not working, but none seem to explain why
>people are having problems with it.
>
>-Cameron
>
>-
>Cameron Childress
>Sumo Consulting Inc.
>---
>cell:  678-637-5072
>aim:   cameroncf
>email: [EMAIL PROTECTED]
>
>
>
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



404 Error Handling Code (Was: RE: Missing Template Handler)

2002-11-16 Thread Lee Fuller
Ok.. So now I've found that my previous code would not work for
sub-dir's.. So I rewrote it...

Use as follows:

- Place the code below into a 404.cfm file, located in the wwwroot of
the default site on the IIS5/CFMX server.
- Set the "Missing Template Handler" in CFMX to "/404.cfm"
- Your clients can then put a file called "404.cfm" into the root of
their websites, which will be displayed if the server cannot find the
CFM file the visitor entered into the browser... As opposed to the
unfriendly 404 error message sent out by CFMX.

**WARNING BEFORE YOU USE THIS CODE**

- This code will look in the ROOT of the clients web for the 404.cfm
file.
- It relies on the URL to translate into a path, exactly.  I.e.,
www.yourdomain.com/dummy/something/hello.cfm should translate to (as an
example) "D:\www\hosts\yourdomain\dummy\something\hello.cfm".  So.. If
you've created a virtual directory, and that doesn't coincide with the
above schema example (of course your root dir name and drive will be
different), than it will fail - AND MAY CAUSE BIZARRE RESULTS.  So BE
CAREFUL and TEST, TEST, TEST, before you use this!!
- Of course, this will only work for missing .CFM files.  Has nothing to
do with other extensions (.htm, .asp, etc.) which you'll need to adjust
within IIS.

Hope this is helpful to others.  Feel free to modify it and make it
better - so long as you share with me what you did to make it better!
:)











http://#cgi.SERVER_NAME#/404.cfm"/>
#cfhttp.FileContent#











~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Missing Template Handler...

2002-11-16 Thread Lee Fuller
And actually.. If you follow my previous advice.. Your CFMX server will
be brought to it's knees, if the 404.cfm file for the client's site
doesn't exist.

Instead, use this:

===






http://#cgi.SERVER_NAME#/404.cfm"/>
#cfhttp.FileContent#







===

Works fine and will check to make sure the file exists first.




| -Original Message-
| From: Brook Davies [mailto:[EMAIL PROTECTED]] 
| Sent: Saturday, November 16, 2002 12:07 AM
| To: CF-Talk
| Subject: RE: Missing Template Handler...
| 
| 
| Ohh, its the "default" IIS website! No wonder. I tried putting a file 
| relative to the wwwroot, the cfmx/wwwroot/ and everywhere 
| else under the 
| sun. I had to settle for a mapping. Nice idea for 404's Lee!
| 
| At 12:02 AM 16/11/02 -0800, you wrote:
| >Actually, I just found it.  Sheesh...
| >
| >In CFMX, there's a basic mapping to "/" which points to the 
| root of the 
| >IIS default web site.  If you put a 404.cfm file in there, 
| and then set 
| >this to "/404.cfm".. It works.
| >
| >And.. I solved the problem of dynamic 404 redirects using 
| this setting. 
| >I just created, within the "/404.cfm" file:
| >
| >http://#cgi.SERVER_NAME#/404.cfm"/>
| >#cfhttp.FileContent#
| >
| >That way.. If they have a 404.cfm file, it'll display it.  
| If not.. It 
| >does the standard 404 error.
| >
| >Of course, this only works for .CFM files.  The .HTM (and 
| other) files 
| >are handled by the "Custom Errors" setting in IIS.
| >
| >
| >
| >
| >
| >| -----Original Message-
| >| From: Brook Davies [mailto:[EMAIL PROTECTED]]
| >| Sent: Friday, November 15, 2002 11:53 PM
| >| To: CF-Talk
| >| Subject: Re: Missing Template Handler...
| >|
| >|
| >| Lee,
| >|
| >| This is really messed up. I had the same problem. Solved it by:
| >|
| >| 1. Adding a mapping in the cfadmin for a /errortemplates/ path and 
| >| then used that path when asked.
| >|
| >| 2. I still got the error that the template did not exist - 
| this is a 
| >| bug, try it - it should work
| >|
| >| Brook
| >|
| >| At 11:47 PM 15/11/02 -0800, you wrote:
| >| >Ok.. Now I KNOW I hate help files for certain!!  Sheesh
| >| >
| >| >The help for "Missing Template Handler" says:
| >| >
| >| >"This fields lets you specify a default template to 
| execute any time 
| >| >the ColdFusion Application Server cannot find a requested 
| template."
| >| >
| >| >REALLY??  NAW!  Say it isn't SO!  8/
| >| >
| >| >I KNEW that.  I'm looking for an example.  Something that
| >| may give me a
| >| >clue as to what this may be set to.  It certainly cannot be to a 
| >| >specific (and complete) file/dir path, cause that ain't
| >| working.  When
| >| >I enter that, it errors saying:
| >| >
| >| >"The file specified as the site wide missing template
| >| handler does not
| >| >exist. The default missing template handler will be used until a 
| >| >replacement is created."
| >| >
| >| >Ok.. well, then what do you set it to?  Relative to WHAT?
| >| >
| >| >The docs don't say, and there's nothing I can find in the
| >| support site.
| >| >
| >| >Anyone have a clue here?
| >| >
| >| >
| >|
| >
| 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Missing Template Handler...

2002-11-16 Thread Brook Davies
Ohh, its the "default" IIS website! No wonder. I tried putting a file 
relative to the wwwroot, the cfmx/wwwroot/ and everywhere else under the 
sun. I had to settle for a mapping. Nice idea for 404's Lee!

At 12:02 AM 16/11/02 -0800, you wrote:
>Actually, I just found it.  Sheesh...
>
>In CFMX, there's a basic mapping to "/" which points to the root of the
>IIS default web site.  If you put a 404.cfm file in there, and then set
>this to "/404.cfm".. It works.
>
>And.. I solved the problem of dynamic 404 redirects using this setting.
>I just created, within the "/404.cfm" file:
>
>http://#cgi.SERVER_NAME#/404.cfm"/>
>#cfhttp.FileContent#
>
>That way.. If they have a 404.cfm file, it'll display it.  If not.. It
>does the standard 404 error.
>
>Of course, this only works for .CFM files.  The .HTM (and other) files
>are handled by the "Custom Errors" setting in IIS.
>
>
>
>
>
>| -Original Message-
>| From: Brook Davies [mailto:[EMAIL PROTECTED]]
>| Sent: Friday, November 15, 2002 11:53 PM
>| To: CF-Talk
>| Subject: Re: Missing Template Handler...
>|
>|
>| Lee,
>|
>| This is really messed up. I had the same problem. Solved it by:
>|
>| 1. Adding a mapping in the cfadmin for a /errortemplates/
>| path and then
>| used that path when asked.
>|
>| 2. I still got the error that the template did not exist -
>| this is a bug,
>| try it - it should work
>|
>| Brook
>|
>| At 11:47 PM 15/11/02 -0800, you wrote:
>| >Ok.. Now I KNOW I hate help files for certain!!  Sheesh
>| >
>| >The help for "Missing Template Handler" says:
>| >
>| >"This fields lets you specify a default template to execute any time
>| >the ColdFusion Application Server cannot find a requested template."
>| >
>| >REALLY??  NAW!  Say it isn't SO!  8/
>| >
>| >I KNEW that.  I'm looking for an example.  Something that
>| may give me a
>| >clue as to what this may be set to.  It certainly cannot be to a
>| >specific (and complete) file/dir path, cause that ain't
>| working.  When
>| >I enter that, it errors saying:
>| >
>| >"The file specified as the site wide missing template
>| handler does not
>| >exist. The default missing template handler will be used until a
>| >replacement is created."
>| >
>| >Ok.. well, then what do you set it to?  Relative to WHAT?
>| >
>| >The docs don't say, and there's nothing I can find in the
>| support site.
>| >
>| >Anyone have a clue here?
>| >
>| >
>|
>
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Missing Template Handler...

2002-11-16 Thread Lee Fuller
Actually, I just found it.  Sheesh...

In CFMX, there's a basic mapping to "/" which points to the root of the
IIS default web site.  If you put a 404.cfm file in there, and then set
this to "/404.cfm".. It works.  

And.. I solved the problem of dynamic 404 redirects using this setting.
I just created, within the "/404.cfm" file:

http://#cgi.SERVER_NAME#/404.cfm"/>
#cfhttp.FileContent#

That way.. If they have a 404.cfm file, it'll display it.  If not.. It
does the standard 404 error.

Of course, this only works for .CFM files.  The .HTM (and other) files
are handled by the "Custom Errors" setting in IIS.





| -Original Message-
| From: Brook Davies [mailto:[EMAIL PROTECTED]] 
| Sent: Friday, November 15, 2002 11:53 PM
| To: CF-Talk
| Subject: Re: Missing Template Handler...
| 
| 
| Lee,
| 
| This is really messed up. I had the same problem. Solved it by:
| 
| 1. Adding a mapping in the cfadmin for a /errortemplates/ 
| path and then 
| used that path when asked.
| 
| 2. I still got the error that the template did not exist - 
| this is a bug, 
| try it - it should work
| 
| Brook
| 
| At 11:47 PM 15/11/02 -0800, you wrote:
| >Ok.. Now I KNOW I hate help files for certain!!  Sheesh
| >
| >The help for "Missing Template Handler" says:
| >
| >"This fields lets you specify a default template to execute any time 
| >the ColdFusion Application Server cannot find a requested template."
| >
| >REALLY??  NAW!  Say it isn't SO!  8/
| >
| >I KNEW that.  I'm looking for an example.  Something that 
| may give me a 
| >clue as to what this may be set to.  It certainly cannot be to a 
| >specific (and complete) file/dir path, cause that ain't 
| working.  When 
| >I enter that, it errors saying:
| >
| >"The file specified as the site wide missing template 
| handler does not 
| >exist. The default missing template handler will be used until a 
| >replacement is created."
| >
| >Ok.. well, then what do you set it to?  Relative to WHAT?
| >
| >The docs don't say, and there's nothing I can find in the 
| support site.
| >
| >Anyone have a clue here?
| >
| >
| 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: Missing Template Handler...

2002-11-15 Thread Brook Davies
Lee,

This is really messed up. I had the same problem. Solved it by:

1. Adding a mapping in the cfadmin for a /errortemplates/ path and then 
used that path when asked.

2. I still got the error that the template did not exist - this is a bug, 
try it - it should work

Brook

At 11:47 PM 15/11/02 -0800, you wrote:
>Ok.. Now I KNOW I hate help files for certain!!  Sheesh
>
>The help for "Missing Template Handler" says:
>
>"This fields lets you specify a default template to execute any time the
>ColdFusion Application Server cannot find a requested template."
>
>REALLY??  NAW!  Say it isn't SO!  8/
>
>I KNEW that.  I'm looking for an example.  Something that may give me a
>clue as to what this may be set to.  It certainly cannot be to a
>specific (and complete) file/dir path, cause that ain't working.  When I
>enter that, it errors saying:
>
>"The file specified as the site wide missing template handler does not
>exist. The default missing template handler will be used until a
>replacement is created."
>
>Ok.. well, then what do you set it to?  Relative to WHAT?
>
>The docs don't say, and there's nothing I can find in the support site.
>
>Anyone have a clue here?
>
>
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com