Missing Template Handler

2013-02-20 Thread Robert Harrison

CF Missing Template Handler

We have a new site running on IIS7.5.  We have the 404 working for all pages 
except .cfm pages. We have the admin set to use the missing template handler, 
but it's not working. We're getting a blank page.

Any thoughts... works fine on our IIS6 sites.

Thanks,
Robert

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:354595
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 : 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:

cffunction name=onMissingTemplate returnType=boolean 
output=false
 cfinclude template=404.cfm
/cffunction   

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 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 rob...@austin-williams.com
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: Strange errors in Missing Template Handler

2011-10-26 Thread Dave Watts

 However - if I go and break the cfml in notfound.cfm:

 You've reached notfound.cfm/cfoutput

 And call the same file (www.site.com/nothere.cfm) I get an unhandled 
 404-error from the CF server - and not a 500-error like I would expect.

 Have you ever been a victim of this? And if so - how did you solve the 
 problem?

This is the expected behavior for CF's error handlers - if they
themselves have an error, they fail silently and your error is
processed as if you didn't have the handler in the first place.

To solve the problem, don't leave errors in your error handlers, and
make them as simple as possible.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
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:348352
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Strange errors in Missing Template Handler

2011-10-25 Thread Michael Christensen

Here's a bit of a conundrum we've been wrestling with a the office.

We have the Missing Template Handler set on our CF server - let's say it points 
to /notfound.cfm

In notfound.cfm we have the following code:

cfoutputYou've reached notfound.cfm/cfoutput

If I call a site on the server with a cfm-file I know is not present 
(www.site.com/nothere.cfm) I get the expected result with the page displaying 
You've reached notfound.cfm.

However - if I go and break the cfml in notfound.cfm:

You've reached notfound.cfm/cfoutput

And call the same file (www.site.com/nothere.cfm) I get an unhandled 404-error 
from the CF server - and not a 500-error like I would expect.

Have you ever been a victim of this? And if so - how did you solve the problem?

~|
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:348351
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Missing Template Handler and Application.cfc

2009-03-26 Thread Ian Skinner

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?

~|
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:321003
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 and Application.cfc

2009-03-26 Thread Charlie Griefer

On Thu, Mar 26, 2009 at 10:31 AM, Ian Skinner h...@ilsweb.com 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 and Application.cfc

2009-03-26 Thread Ian Skinner

Charlie Griefer wrote:
 On Thu, Mar 26, 2009 at 10:31 AM, Ian Skinner h...@ilsweb.com 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 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 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 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 !--- include
virtual... directives which, of course, ColdFusion does not understand.

So, I say no problem, I've dealt with this already before and expanded
on some existing code that reads the html file and replaces all these
virtual includes with the contents of the included file using cfile...
tags and reFind() functions.  This version even uses a Custom Tag and
recursion to handle virtual includes inside of virtually included files.

And this works great! http://www.cdpr.ca.gov/errors/404error.cfm.

But when I then went 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.  
ColdFusion starts display the default ColdFusion 404 not found error
rather then my specified Missing Template Handler.

What's wrong here?  Why can't I server up a CFM file from the exact same
place I can serve up an, albeit incomplete, HTML file?


~|
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:310497
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 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 
!-- include virtural... -- 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 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 !-- include virtural... 
-- 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 cfile... 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 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 cffile... calls 
to replace the !--include virtural... -- 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 cffile... 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

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 'cfoutput#now()#/cfoutput' ?

-- 
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 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 cffile...
 calls
 to replace the !--include virtural... -- 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 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 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:
 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


Missing Template Handler is missing

2008-08-07 Thread Ian Skinner
I'm trying to configure the Missing Template Handler on an old CF4.5 
Unix based server.

Our web shop has created a custom 404 incorporating the look and feel of 
our site.  It's path is simply /errors/404error.htm.  The apache web 
server has been properly configured to use this for static content 404 
errors.  They would also like this to be used for missing CF template 
errors.
 
I put in '/errors/404error.htm' into the Missing Template Handler 
field in the administrator and nothing happened.  I also tried it 
without the initial slash and still no good.  What do I need to do so 
that ColdFusion will server up the 
http://www.cdpr.ca.gov/errors/404error.htm file?

~|
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:310427
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
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 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
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:
 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
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


Missing Template Handler is missing part Duex

2008-08-07 Thread Ian Skinner
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 !--- include 
virtual... directives which, of course, ColdFusion does not understand.

So, I say no problem, I've dealt with this already before and expanded 
on some existing code that reads the html file and replaces all these 
virtual includes with the contents of the included file using cfile... 
tags and reFind() functions.  This version even uses a Custom Tag and 
recursion to handle virtual includes inside of virtually included files.

And this works great! http://www.cdpr.ca.gov/errors/404error.cfm.

But when I then went 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.  
ColdFusion starts display the default ColdFusion 404 not found error 
rather then my specified Missing Template Handler.

What's wrong here?  Why can't I server up a CFM file from the exact same 
place I can serve up an, albeit incomplete, HTML file?



~|
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:310451
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


Missing Template Handler Strangeness....

2008-02-07 Thread Don
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.

Any ideas? 

~|
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:298432
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


Missing Template Handler problems.

2008-02-05 Thread Dan
Added the template to Settings 'Missing template handler' -- It does call up my 
template but also still includes the default Coldfusion.

Error Occurred While Processing Request  
File not found:

Message.

Also made the following changes to IIS as described here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=95ee04fbsliceId=1 
 


~|
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:298176
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Missing template handler issues

2008-02-05 Thread Don
Added the template to Settings 'Missing template handler' -- It does call up my 
template but also still includes the default Coldfusion Missing template 
visuals.

Error Occurred While Processing Request  
File not found:

Message.

Also made the following changes to IIS as described here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=95ee04fbsliceId=1 

~|
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:298178
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 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: How do I bypass the missing template handler?

2007-11-05 Thread Phill B
Looks great. This could solve a lot of issues we are wanting to address.

On 11/1/07, Paul Sizemore [EMAIL PROTECTED] wrote:
 Can you use ISAPI Rewrite at http://www.helicontech.com/ ? We've got it 
 running on IIS.

 Paul

 -Original Message-


 I have a site that needs to bypass the missing template handler that
 is set up in CF8. What is them best way to go about this?

 Thanks

 --
 Phil


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


RE: How do I bypass the missing template handler?

2007-11-01 Thread Paul Sizemore
Can you use ISAPI Rewrite at http://www.helicontech.com/ ? We've got it running 
on IIS.

Paul

-Original Message-
From: Phill B [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 30, 2007 11:05 AM
To: CF-Talk
Subject: How do I bypass the missing template handler?

I have a site that needs to bypass the missing template handler that
is set up in CF8. What is them best way to go about this?

Thanks

--
Phil



~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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


How do I bypass the missing template handler?

2007-10-30 Thread Phill B
I have a site that needs to bypass the missing template handler that
is set up in CF8. What is them best way to go about this?

Thanks

-- 
Phil

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

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


RE: How do I bypass the missing template handler?

2007-10-30 Thread Russ
Use apache's mod_rewrite and redirect all the missing templates elsewhere. 

Russ



 -Original Message-
 From: Phill B [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 30, 2007 11:05 AM
 To: CF-Talk
 Subject: How do I bypass the missing template handler?
 
 I have a site that needs to bypass the missing template handler that
 is set up in CF8. What is them best way to go about this?
 
 Thanks
 
 --
 Phil
 
 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


Re: How do I bypass the missing template handler?

2007-10-30 Thread Phill B
D'Oh!

I should have said this is on a Win2k3 IIS6 server. Sorry


On 10/30/07, Russ [EMAIL PROTECTED] wrote:
 Use apache's mod_rewrite and redirect all the missing templates elsewhere.

 Russ



  -Original Message-
  From: Phill B [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 30, 2007 11:05 AM
  To: CF-Talk
  Subject: How do I bypass the missing template handler?
 
  I have a site that needs to bypass the missing template handler that
  is set up in CF8. What is them best way to go about this?
 
  Thanks
 
  --
  Phil
 
 

 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

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


RE: How do I bypass the missing template handler?

2007-10-30 Thread Bobby Hartsfield
1) what do you mean by set up in CF8. Do you mean that it's the server wide
handler in the administrator?
2) What do you mean BYPASS?. Do you mean you want to see the error on the
screen or do you mean you want to use a separate handler for a particular
site. If so, just use cferror in your application.cfm.


..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Phill B [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 30, 2007 11:05 AM
To: CF-Talk
Subject: How do I bypass the missing template handler?

I have a site that needs to bypass the missing template handler that
is set up in CF8. What is them best way to go about this?

Thanks

-- 
Phil



~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

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


RE: How do I bypass the missing template handler?

2007-10-30 Thread Ben Nadel
Can you delete the OnMissingTemplate() event handler in the
Application.cfc pseudo constructor?

cfset StructDelete( THIS, OnMissingTemplate ) /

Not sure if this work as expected??

..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-Original Message-
From: Phill B [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 30, 2007 12:01 PM
To: CF-Talk
Subject: Re: How do I bypass the missing template handler?

D'Oh!

I should have said this is on a Win2k3 IIS6 server. Sorry


On 10/30/07, Russ [EMAIL PROTECTED] wrote:
 Use apache's mod_rewrite and redirect all the missing templates
elsewhere.

 Russ



  -Original Message-
  From: Phill B [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 30, 2007 11:05 AM
  To: CF-Talk
  Subject: How do I bypass the missing template handler?
 
  I have a site that needs to bypass the missing template handler that

  is set up in CF8. What is them best way to go about this?
 
  Thanks
 
  --
  Phil
 
 

 



~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: Can the server-wide missing template handler be overridden?

2007-08-31 Thread James Holmes
http://www.cfquickdocs.com/cf8/#onMissingTemplate

On 8/31/07, Jim McAtee [EMAIL PROTECTED] wrote:
 I'm moving a couple dozen web sites from a CF5 server to a new CF8
 Standard server.

 In setting up the server-wide missing error handler, CF8 wants a
 relative path.  Relative to -what- it doesn't say, and since it checks
 for the existance of the file in the CF Adminsitrator and throws an error
 if it can't find it, the only way I can figure out how to make this work
 is by creating a CF mapping to the directory containing the cf file I want
 to execute.

 Unlike CF5, you don't specify the file's path directly, so it appeared to
 me that I might be able to override the missing error handler on
 individual web sites.  On one site I tried creating a physical directory
 with the same name as the CF mapped directory, but it's not recognized.  I
 must missing something here - why not just specify the actual path to the
 file as in CF5?


 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Can the server-wide missing template handler be overridden?

2007-08-30 Thread Jim McAtee
I'm moving a couple dozen web sites from a CF5 server to a new CF8 
Standard server.

In setting up the server-wide missing error handler, CF8 wants a 
relative path.  Relative to -what- it doesn't say, and since it checks 
for the existance of the file in the CF Adminsitrator and throws an error 
if it can't find it, the only way I can figure out how to make this work 
is by creating a CF mapping to the directory containing the cf file I want 
to execute.

Unlike CF5, you don't specify the file's path directly, so it appeared to 
me that I might be able to override the missing error handler on 
individual web sites.  On one site I tried creating a physical directory 
with the same name as the CF mapped directory, but it's not recognized.  I 
must missing something here - why not just specify the actual path to the 
file as in CF5? 


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


Missing template handler not firing with a query string

2007-01-18 Thread John Blayter
I have found a weird issue with my production environment. The missing
template hander is not firing when there is a query string in the URL.
It works when I hit http://mysite.com/oldfolder/nothingHere.cfm but
throws a CF File not found error when I hit the
http://mysite.com/oldfolder/nothingHere.cfm?foo=bar

Has anyone come across this before? Know of any fixes or workarounds?

Environment:
2 Load Balanced  Clustered Windows 2003 servers
JRUN 4
CF Enterprise: 7,0,2,142559
JVM: 1.4.2_13


Thanks

John

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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


Missing Template Handler

2006-10-10 Thread Ian Skinner
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:256129
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 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

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 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.

cfmail to= from= subject=Template Error type=html
strongHTTP_REFERER: /strong#cgi.HTTP_REFERER#br /
strongHTTP_USER_AGENT: /strong#cgi.HTTP_USER_AGENT#br /
strongSCRIPT_NAME: /strong#cgi.SCRIPT_NAME#br /
strongREQUEST_METHOD: /strong#cgi.REQUEST_METHOD#br /
strongREQUEST_BODY: /strong#cgi.REQUEST_BODY#br /
strongREMOTE_IDENT: /strong#cgi.REMOTE_IDENT#br /
strongREMOTE_HOST: /strong#cgi.REMOTE_HOST#br /
strongQUERY_STRING: /strong#cgi.QUERY_STRING#br /
strongHTTP_HOST: /strong#cgi.HTTP_HOST#br /
/cfmail

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
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

2005-09-19 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


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?

~|
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:218587
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: CFMX 6.1 - Missing Template Handler

2005-01-20 Thread Thomas Chiverton
On Thursday 20 Jan 2005 01:43 am, Andrew Tyrone wrote:

 handler IS NOT relative to the web root as the docs say.  ...
 You cannot use relative paths as 
 in ../folder/file.cfm.

It is relative to the web root.
You can't go 'up' past the root of the web root, which is why your example 
fails.

-- 
Tom Chiverton 
Advanced ColdFusion Programmer
Tel: +44 (0)1749 834900
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834XXX
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.***

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191183
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: CFMX 6.1 - Missing Template Handler

2005-01-20 Thread Andrew Tyrone
Tom,

Okay, I'll concede that the first example is bad. But, relative to the
webroot means if I have my 404 page at http://www.mysite.com/404.cfm, using
/404.cfm in the missing template handler field should work (as in my second
example I gave in the original post), but it doesn't.  If you can prove to
me it does work, then that is a good thing as you could have a separate
error page in the root of each site (or within any sub-directory you choose
under the root), so you wouldn't have to figure out which site the user got
the error on by checking CGI variables.  Sadly, no one has proven otherwise
in this case, so until someone does, the technote and docs are just plain
wrong.

Andy

 -Original Message-
 From: Thomas Chiverton [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 20, 2005 9:17 AM
 To: CF-Talk
 Subject: Re: CFMX 6.1 - Missing Template Handler
 
 On Thursday 20 Jan 2005 01:43 am, Andrew Tyrone wrote:
 
  handler IS NOT relative to the web root as the docs say.  ...
  You cannot use relative paths as
  in ../folder/file.cfm.
 
 It is relative to the web root.
 You can't go 'up' past the root of the web root, which is why 
 your example fails.
 



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191193
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: CFMX 6.1 - Missing Template Handler

2005-01-20 Thread Andrew Tyrone
 -Original Message-
 From: Thomas Chiverton [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 20, 2005 9:17 AM
 To: CF-Talk
 Subject: Re: CFMX 6.1 - Missing Template Handler
 
 On Thursday 20 Jan 2005 01:43 am, Andrew Tyrone wrote:
 
  handler IS NOT relative to the web root as the docs say.  ...
  You cannot use relative paths as
  in ../folder/file.cfm.
 
 It is relative to the web root.
 You can't go 'up' past the root of the web root, which is why 
 your example fails.

Technically, ../page.cfm is always relative to the web root if you're
already AT the web root.  If I have www.mysite.com/file1.cfm and in there a
link page to www.mysite.com/index.cfm, it doesn't matter if I link back to
the home page as href=index.cfm, href=../index.cfm, or even
href=../../../../index.cfm.  Of course it's ridiculous to even do any of
that, but it illustrates the point that once the web root is hit, all the
other ups don't have any effect, at least in IIS.  This might not be the
case with the missing template handler, but it still doesn't work without
using a mapping.

Andy



~|
Logware: 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:191195
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: CFMX 6.1 - Missing Template Handler

2005-01-19 Thread John Beynon
did you see 
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=95ee04fbpss=rss_coldfusion_95ee04fb

jb.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191051
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: CFMX 6.1 - Missing Template Handler

2005-01-19 Thread Andrew Tyrone
John,

Yes, thanks.  As far as I've tested on IIS 5, checking the check that file
exists checkbox doesn't do ANYTHING.  IIS still passes missing .cfm files
to CFMX regardless of that setting.  Sometimes I wonder if even Macromedia
knows how the missing template handler works.

Andy

 -Original Message-
 From: John Beynon [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 19, 2005 7:18 AM
 To: CF-Talk
 Subject: Re: CFMX 6.1 - Missing Template Handler
 
 did you see 
 http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=9
5ee04fbpss=rss_coldfusion_95ee04fb
 
 jb.




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191128
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: CFMX 6.1 - Missing Template Handler

2005-01-19 Thread Dave Watts
 Yes, thanks.  As far as I've tested on IIS 5, checking the 
 check that file exists checkbox doesn't do ANYTHING.  IIS 
 still passes missing .cfm files to CFMX regardless of that 
 setting.  Sometimes I wonder if even Macromedia knows how the 
 missing template handler works.

By default, that's how things are supposed to work. When you install CFMX on
IIS, the web server connector sets up two things: an ISAPI extension and an
ISAPI filter. The ISAPI filter intercepts any matching URL patterns before
IIS itself can handle the request (or check to see if the file exists). The
ISAPI filter is necessary for running servlets and for using Flash Remoting,
I think.

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: 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:191142
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: CFMX 6.1 - Missing Template Handler

2005-01-19 Thread Andrew Tyrone
Dave,

I forgot about the isapi filter in the master www property page.  Does this
mean I can't catch missing .jsp pages?  I am not sure if you saw my initial
post in this thread, but it's all explained in there.  CFMX catches missing
.cfm and .cfml pages and displays the page defined in the missing template
handler, but not .cfc or .jsp pages.  IIS handles any other extensions with
the custom error page I created (except for the above four I mentioned).

Also, on a related note to this specific problem, the missing template
handler IS NOT relative to the web root as the docs say.  The only way I've
gotten it to work is to use a mapping.  You cannot use relative paths as
in ../folder/file.cfm.  You have to use /folder/file.cfm.

From the technote:

Configuring a missing template handler requires setting a path to the
Missing Template Handler on the Settings page of the ColdFusion
Administrator. It must be in a relative path of the web site.

From the CFMX docs:

Specify a template to execute when ColdFusion MX cannot find the requested
template. This specification is relative to the web root. If the user is
running Internet Explorer with Show Friendly HTTP error messages enabled
in advanced settings (the default), Internet Explorer will only display this
page if it contains more than 512 bytes.

If my web root is http://www.mysite.com and my error page is at
http://www.mysite.com/404.cfm, using /404.cfm in the missing template
handler field does not work, which leads me to believe the technote should
explicitly state that you have to use a mapping to specify where the page
is.  I haven't submitted this as a bug to MM yet because I wanted to get
feedback on it to make sure I wasn't missing something obvious.

Andy

 -Original Message-
 From: Dave Watts [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 19, 2005 5:35 PM
 To: CF-Talk
 Subject: RE: CFMX 6.1 - Missing Template Handler
 
  Yes, thanks.  As far as I've tested on IIS 5, checking the 
 check that 
  file exists checkbox doesn't do ANYTHING.  IIS still 
 passes missing 
  .cfm files to CFMX regardless of that setting.  Sometimes I 
 wonder if 
  even Macromedia knows how the missing template handler works.
 
 By default, that's how things are supposed to work. When you 
 install CFMX on IIS, the web server connector sets up two 
 things: an ISAPI extension and an ISAPI filter. The ISAPI 
 filter intercepts any matching URL patterns before IIS itself 
 can handle the request (or check to see if the file exists). 
 The ISAPI filter is necessary for running servlets and for 
 using Flash Remoting, I think.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191144
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


CFMX 6.1 - Missing Template Handler

2005-01-18 Thread Andrew Tyrone
Hi everyone,

OS is Windows 2000 Advanced Server w/ IIS 5.

Has anyone noticed that CFMX only catches pages with .cfm and .cfml
extensions as missing when the pages don't exist?  .cfc and .jsp are also
mapped to the same jrun.dll file, but CFMX doesn't catch missing pages with
those extensions.

Also, strangely, removing .jsp for the virtual directory I am running my
test site on does not allow IIS to handle missing .jsp pages; I still get
the stock CFMX page not found error.  Either I am a raving lunatic or IIS is
ascending the tree and checking the web site itself for a mapping to .jsp,
and if it doesn't find it there it's going to the default properties of IIS.
Restarting IIS isn't making a difference.  It just doesn't seem possible
that CFMX can still catch a missing .jsp page if IIS is not handing that
extension off to the jrun.dll file.

I just removed the .jsp mapping from the master property configuration page
in IIS, restarted IIS, restarted CFMX, and I am getting the same stock CFMX
page not found error for any random .jsp pages I type in.  CFMX is handling
.cfm and .cfml and IIS is handling every other page extension correctly.  I
could type in http://server/virtualdir/sadfhjasdfj.xxx and IIS is kicking in
with the correct page not found.

Any ideas?

Thanks,
Andy



~|
Logware: 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:191022
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


Missing template handler (CFMX patch)

2003-09-24 Thread Thomas Chiverton
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 cferror 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:138263
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

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 (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 cferror 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


Missing Template Handler in CFMX not working

2003-04-03 Thread Cameron Childress
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=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
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

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=subscribeforumid=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



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=subscribeforumid=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 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=subscribeforumid=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



cf 5 missing template handler

2002-12-20 Thread Regina Rempel
Hi I don't know why I am having such a hard time with this please help
I have set a missing template in cfadmin but when I test i'm still getting
the default coldfusion page. Using iis and cf 5
thanx
Regina

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=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
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:

cfhttp url=http://#cgi.SERVER_NAME#/404.cfm/
cfoutput#cfhttp.FileContent#/cfoutput

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=subscribeforumid=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 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:

cfhttp url=http://#cgi.SERVER_NAME#/404.cfm/
cfoutput#cfhttp.FileContent#/cfoutput

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=subscribeforumid=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
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:

===

cfset position = listlen('#cgi.path_translated#', '\')
cfset urltrans = #listdeleteat('#cgi.path_translated#', '#position#',
'\')#

cfif FileExists(#urltrans#\404.cfm)

cfhttp url=http://#cgi.SERVER_NAME#/404.cfm/
cfoutput#cfhttp.FileContent#/cfoutput

cfelse

Whatever you want here .. Could be html code or whatever

/cfif

===

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:
| 
| cfhttp url=http://#cgi.SERVER_NAME#/404.cfm/
| cfoutput#cfhttp.FileContent#/cfoutput
| 
| 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=subscribeforumid=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



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!
:)




!--- Strip the extraneous path crud from the path and return it in a
var ---
cfset urltrans = #replace(cgi.path_translated, replace(cgi.PATH_INFO,
'/', '\', 'ALL'), '')#

!--- See if the file 404.cfm exists in the root of the website being
called ---
cfif FileExists(#urltrans#\404.cfm)

!--- If so.. Go get the 404.cfm file for the browser and
deliver it up! ---
cfhttp url=http://#cgi.SERVER_NAME#/404.cfm/
cfoutput#cfhttp.FileContent#/cfoutput

cfelse

!--- Otherwise.. Deliver up something generic ---
whatever you want to show here if they don't have a 404.cfm
file -- can be html.. etc.

/cfif




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=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



Missing Template Handler...

2002-11-15 Thread Lee Fuller
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=subscribeforumid=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-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=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: site wide missing template handler not working in MX

2002-07-29 Thread Mike Byers

I took another look at the server this morning.  I believe I owe you an
apology.  I realize now that I made more changes after the ones I told you
to make, but had forgotten about those.  Here is the way that I have it as I
look at it now.  This is working for me.  I hope it will for you as well.

I have a physical dummy directory\file:
C:\Inetpub\wwwroot\error\error_404.cfm with the following code in it:

cfsetting enablecfoutputonly=yes
!--- include the actual error_404.cfm file ---
cfinclude template=/error/error_404.cfm
cfsetting enablecfoutputonly=no

Do not share this forlder.  Ok that takes care of the Missing Template
Handler file requirements.
In CF Settings I have:  /error/error_404.cfm

This should work for the Site-wide Error Handler as well.

Now, because my templates use files in a virtual directory that looks just
like the physical one, I had to create a virtual directory in the website
mapped to the actual error directory for the website.

I have in IIS error mapped to D:\web\error\  (I can see all the files in the
physical directory below)
I have in CF Mappings /error mapped to D:\web\error\
I have an physical directory D:\web\error\

I hope this helps.

Mike

At 03:00 PM 26/07/02 -0500, you wrote:
I had a problem with ours that I resolved.  I will tell you how it is
arranged and what I did. You can decide it is similar to your problem.

We had an absolute path in cf5 that went to another drive letter and path
for our file.  In MX it uses relative paths only.  It also has to be inside
of the webroot directory.  Ours was not.

To solve this I created an physical directory in the webroot with the same
name as the folder where my file existed.  I then created a dummy file
with the same name as the one I wanted to use and inside this dummy file
I
placed a CFINCLUDE of the actual file.  Because it was relative, inside
the webroot and could run cf code, it worked just fine.  I had tried using
virtual directories and spent several days trying to get it to work being
as
creative as I could.  This was the only way I could actually get it to run.
I could have just placed the actual files there, I know, but I keep my
files
elsewhere and wanted to keep it that way.  This approach allows me to do
that.

Good Luck.

Mike

-Original Message-
From: Brook Davies [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 1:16 PM
To: CF-Talk
Subject: Re: site wide missing template handler not working in MX


Yeah, I tried that. Has anyone got this working? Can someone running CFMX
confirm that this is a bug please? Or just me..

At 02:44 PM 26/07/02 -0300, you wrote:
 AFAIK, this path in MX is now relative to the web root directory. Did you
 try this?
 
 Regards,
 Marcello Frutig.
 -- Astrolábio
 
  Has ANYBODY been able to get the site wide error handler templates to
work
  in CFMX? Everytime I try to add one in the admin it tells me the path
is
  wrong. I've tried every combination of path variations under the sun.
I've
  also seen a thread in the mm forums where other people are having the
same
  problem with no answer yet.
  
  
  
  At 11:29 AM 26/07/02 -0300, you wrote:
  Jesse and folks, we don't experience the same when dealing with
  ASP/PHP/Perl and even JSP (afaik). Ok, this natural on any programming
  language such as pure Java, C++ and so on, but I don't agree that such
  behaviour is natural and expected in server-side scripts/languages
such
  as CF and ASP. Maybe MM could go forward on this and provide something
  to perform the compilation faster or/and do it on the time we save a
  cfm template.
  
  I have a friend that says the following about CFMX: it seens that CFMX
  takes a long turn (gets more time and server resources) to get back to
  the same place we can start (or just walk a little bit) with JPS. I
  think this is a crap (CFML is easy, rapid and lovely) but the point
is:
  are the price for the Java World too high for merely mortals that
just
  want to do little things with CF (which is the perfect server-side
  architeture for that)?
  
  Abraços!
  Alex.
  
  
  -Original Message-
  From: Jesse Noller [mailto:[EMAIL PROTECTED]]
  Sent: 26/07/2002 9:44 AM
  To: CF-Talk
  Subject: RE: It's official: CFMX is 10% faster than CF5
  
  
  /takes off tinfoil hat
  
  Uh, just to throw this in, compilation of code is something you deal
  with almost any programming language. C, C++, Java, etc. It's a bit of
a
  movement of a literal line by line read, but overall, it does increase
  the speed of the end result.
  
  Saying that's Java is incorrect. That's Programming would be more
  apt.
  
  Jesse Noller
  [EMAIL PROTECTED]
  Macromedia Server Development
  Unix/Linux special guy
  
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:39 AM
To: CF-Talk
Subject: Re: It's official: CFMX is 10% faster than CF5
   
Yea it is a pain in the ass to have it compile the first time but
thats java

site wide missing template handler not working in MX

2002-07-26 Thread Brook Davies

Has ANYBODY been able to get the site wide error handler templates to work 
in CFMX? Everytime I try to add one in the admin it tells me the path is 
wrong. I've tried every combination of path variations under the sun. I've 
also seen a thread in the mm forums where other people are having the same 
problem with no answer yet.



At 11:29 AM 26/07/02 -0300, you wrote:
Jesse and folks, we don't experience the same when dealing with
ASP/PHP/Perl and even JSP (afaik). Ok, this natural on any programming
language such as pure Java, C++ and so on, but I don't agree that such
behaviour is natural and expected in server-side scripts/languages such
as CF and ASP. Maybe MM could go forward on this and provide something
to perform the compilation faster or/and do it on the time we save a
cfm template.

I have a friend that says the following about CFMX: it seens that CFMX
takes a long turn (gets more time and server resources) to get back to
the same place we can start (or just walk a little bit) with JPS. I
think this is a crap (CFML is easy, rapid and lovely) but the point is:
are the price for the Java World too high for merely mortals that just
want to do little things with CF (which is the perfect server-side
architeture for that)?

Abraços!
Alex.


-Original Message-
From: Jesse Noller [mailto:[EMAIL PROTECTED]]
Sent: 26/07/2002 9:44 AM
To: CF-Talk
Subject: RE: It's official: CFMX is 10% faster than CF5


/takes off tinfoil hat

Uh, just to throw this in, compilation of code is something you deal
with almost any programming language. C, C++, Java, etc. It's a bit of a
movement of a literal line by line read, but overall, it does increase
the speed of the end result.

Saying that's Java is incorrect. That's Programming would be more
apt.

Jesse Noller
[EMAIL PROTECTED]
Macromedia Server Development
Unix/Linux special guy

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 26, 2002 8:39 AM
  To: CF-Talk
  Subject: Re: It's official: CFMX is 10% faster than CF5
 
  Yea it is a pain in the ass to have it compile the first time but
  thats java for you what do you expect ;)
 
  See java has its bad points. :P
 
  Bill Wheatley
  Senior Database Developer
  Macromedia Certified Advanced Coldfusion Developer
  EDIETS.COM
  954.360.9022 X159
  ICQ 417645
  - Original Message -
  From: Alex Hubner [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Thursday, July 25, 2002 4:31 PM
  Subject: It's official: CFMX is 10% faster than CF5
 
 
   CFMX Performance Brief: CFMX is only 10% faster than CF5 under
   Win2k
   boxes:
  
http://www.macromedia.com/software/coldfusion/whitepapers/pdf/cfmx_perfo
   rmance_brief.pdf
  
   Well, almost everybody knows it in it's day-by-day tests/usages...
  
   I disagree with the tests. CFMX is not 10% faster than CF5... It
   looks that MM doesn't take in consideration the time (very long,
   specially on templates that calls lots of includes, such as fusebox
   ones), to the just-in-time compiler finish it's job (which takes
   100% of my CPU)... I've told once and I'm gonna say it again: it's a

   pain in the ass wait CFMX compiles my templates everytime I modify
   it. In a production environment this is acceptable but in a
   development environment is realy bad! It becames painless if you use

   1Gb processors or faster but... Well, does anybody has the same
   complain?
  
   []'s
   Alex
  
  
 


__
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: site wide missing template handler not working in MX

2002-07-26 Thread Marcello Frutig

AFAIK, this path in MX is now relative to the web root directory. Did you try this?

Regards,
Marcello Frutig.
-- Astrolábio

Has ANYBODY been able to get the site wide error handler templates to work 
in CFMX? Everytime I try to add one in the admin it tells me the path is 
wrong. I've tried every combination of path variations under the sun. I've 
also seen a thread in the mm forums where other people are having the same 
problem with no answer yet.



At 11:29 AM 26/07/02 -0300, you wrote:
Jesse and folks, we don't experience the same when dealing with
ASP/PHP/Perl and even JSP (afaik). Ok, this natural on any programming
language such as pure Java, C++ and so on, but I don't agree that such
behaviour is natural and expected in server-side scripts/languages such
as CF and ASP. Maybe MM could go forward on this and provide something
to perform the compilation faster or/and do it on the time we save a
cfm template.

I have a friend that says the following about CFMX: it seens that CFMX
takes a long turn (gets more time and server resources) to get back to
the same place we can start (or just walk a little bit) with JPS. I
think this is a crap (CFML is easy, rapid and lovely) but the point is:
are the price for the Java World too high for merely mortals that just
want to do little things with CF (which is the perfect server-side
architeture for that)?

Abraços!
Alex.


-Original Message-
From: Jesse Noller [mailto:[EMAIL PROTECTED]]
Sent: 26/07/2002 9:44 AM
To: CF-Talk
Subject: RE: It's official: CFMX is 10% faster than CF5


/takes off tinfoil hat

Uh, just to throw this in, compilation of code is something you deal
with almost any programming language. C, C++, Java, etc. It's a bit of a
movement of a literal line by line read, but overall, it does increase
the speed of the end result.

Saying that's Java is incorrect. That's Programming would be more
apt.

Jesse Noller
[EMAIL PROTECTED]
Macromedia Server Development
Unix/Linux special guy

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 26, 2002 8:39 AM
  To: CF-Talk
  Subject: Re: It's official: CFMX is 10% faster than CF5
 
  Yea it is a pain in the ass to have it compile the first time but
  thats java for you what do you expect ;)
 
  See java has its bad points. :P
 
  Bill Wheatley
  Senior Database Developer
  Macromedia Certified Advanced Coldfusion Developer
  EDIETS.COM
  954.360.9022 X159
  ICQ 417645
  - Original Message -
  From: Alex Hubner [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Thursday, July 25, 2002 4:31 PM
  Subject: It's official: CFMX is 10% faster than CF5
 
 
   CFMX Performance Brief: CFMX is only 10% faster than CF5 under
   Win2k
   boxes:
  
http://www.macromedia.com/software/coldfusion/whitepapers/pdf/cfmx_perfo
   rmance_brief.pdf
  
   Well, almost everybody knows it in it's day-by-day tests/usages...
  
   I disagree with the tests. CFMX is not 10% faster than CF5... It
   looks that MM doesn't take in consideration the time (very long,
   specially on templates that calls lots of includes, such as fusebox
   ones), to the just-in-time compiler finish it's job (which takes
   100% of my CPU)... I've told once and I'm gonna say it again: it's a

   pain in the ass wait CFMX compiles my templates everytime I modify
   it. In a production environment this is acceptable but in a
   development environment is realy bad! It becames painless if you use

   1Gb processors or faster but... Well, does anybody has the same
   complain?
  
   []'s
   Alex
  
  
 



__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: site wide missing template handler not working in MX

2002-07-26 Thread Brook Davies

Yeah, I tried that. Has anyone got this working? Can someone running CFMX 
confirm that this is a bug please? Or just me..

At 02:44 PM 26/07/02 -0300, you wrote:
AFAIK, this path in MX is now relative to the web root directory. Did you 
try this?

Regards,
Marcello Frutig.
-- Astrolábio

 Has ANYBODY been able to get the site wide error handler templates to work
 in CFMX? Everytime I try to add one in the admin it tells me the path is
 wrong. I've tried every combination of path variations under the sun. I've
 also seen a thread in the mm forums where other people are having the same
 problem with no answer yet.
 
 
 
 At 11:29 AM 26/07/02 -0300, you wrote:
 Jesse and folks, we don't experience the same when dealing with
 ASP/PHP/Perl and even JSP (afaik). Ok, this natural on any programming
 language such as pure Java, C++ and so on, but I don't agree that such
 behaviour is natural and expected in server-side scripts/languages such
 as CF and ASP. Maybe MM could go forward on this and provide something
 to perform the compilation faster or/and do it on the time we save a
 cfm template.
 
 I have a friend that says the following about CFMX: it seens that CFMX
 takes a long turn (gets more time and server resources) to get back to
 the same place we can start (or just walk a little bit) with JPS. I
 think this is a crap (CFML is easy, rapid and lovely) but the point is:
 are the price for the Java World too high for merely mortals that just
 want to do little things with CF (which is the perfect server-side
 architeture for that)?
 
 Abraços!
 Alex.
 
 
 -Original Message-
 From: Jesse Noller [mailto:[EMAIL PROTECTED]]
 Sent: 26/07/2002 9:44 AM
 To: CF-Talk
 Subject: RE: It's official: CFMX is 10% faster than CF5
 
 
 /takes off tinfoil hat
 
 Uh, just to throw this in, compilation of code is something you deal
 with almost any programming language. C, C++, Java, etc. It's a bit of a
 movement of a literal line by line read, but overall, it does increase
 the speed of the end result.
 
 Saying that's Java is incorrect. That's Programming would be more
 apt.
 
 Jesse Noller
 [EMAIL PROTECTED]
 Macromedia Server Development
 Unix/Linux special guy
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: Friday, July 26, 2002 8:39 AM
   To: CF-Talk
   Subject: Re: It's official: CFMX is 10% faster than CF5
  
   Yea it is a pain in the ass to have it compile the first time but
   thats java for you what do you expect ;)
  
   See java has its bad points. :P
  
   Bill Wheatley
   Senior Database Developer
   Macromedia Certified Advanced Coldfusion Developer
   EDIETS.COM
   954.360.9022 X159
   ICQ 417645
   - Original Message -
   From: Alex Hubner [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Thursday, July 25, 2002 4:31 PM
   Subject: It's official: CFMX is 10% faster than CF5
  
  
CFMX Performance Brief: CFMX is only 10% faster than CF5 under
Win2k
boxes:
   
 http://www.macromedia.com/software/coldfusion/whitepapers/pdf/cfmx_perfo
rmance_brief.pdf
   
Well, almost everybody knows it in it's day-by-day tests/usages...
   
I disagree with the tests. CFMX is not 10% faster than CF5... It
looks that MM doesn't take in consideration the time (very long,
specially on templates that calls lots of includes, such as fusebox
ones), to the just-in-time compiler finish it's job (which takes
100% of my CPU)... I've told once and I'm gonna say it again: it's a
 
pain in the ass wait CFMX compiles my templates everytime I modify
it. In a production environment this is acceptable but in a
development environment is realy bad! It becames painless if you use
 
1Gb processors or faster but... Well, does anybody has the same
complain?
   
[]'s
Alex
   
   
  
 
 
 

__
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: site wide missing template handler not working in MX

2002-07-26 Thread Sean A Corfield

On Friday, July 26, 2002, at 02:25 , Brook Davies wrote:
 I've tried that. And I have moved the file from directory to directory to
 no avail.

Well, it works just fine here (with a .cfm extension). Have you tried just 
a very simple CF file (e.g., error.cfm containing just one line Error!) 
and specifying /error.cfm exactly like I suggested? (with error.cfm in 
your standard CF docroot)

Have you looked in the logs to see if any errors are generated when you 
actually click Submit changes?

Sean A Corfield -- http://www.corfield.org/blog/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: site wide missing template handler not working in MX

2002-07-26 Thread Brook Davies

I've tried that. And I have moved the file from directory to directory to 
no avail.

At 02:05 PM 26/07/02 -0700, you wrote:
On Friday, July 26, 2002, at 10:29 , Brook Davies wrote:
  Has ANYBODY been able to get the site wide error handler templates to work
  in CFMX? Everytime I try to add one in the admin it tells me the path is
  wrong. I've tried every combination of path variations under the sun. I've
  also seen a thread in the mm forums where other people are having the same
  problem with no answer yet.

If your handler is called error.cfm and it's in the wwwroot (CFMX web root)
   directory, then the path is /error.cfm (root-relative).

Sean A Corfield -- http://www.corfield.org/blog/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: site wide missing template handler not working in MX

2002-07-26 Thread Sean A Corfield

On Friday, July 26, 2002, at 10:29 , Brook Davies wrote:
 Has ANYBODY been able to get the site wide error handler templates to work
 in CFMX? Everytime I try to add one in the admin it tells me the path is
 wrong. I've tried every combination of path variations under the sun. I've
 also seen a thread in the mm forums where other people are having the same
 problem with no answer yet.

If your handler is called error.cfm and it's in the wwwroot (CFMX web root)
  directory, then the path is /error.cfm (root-relative).

Sean A Corfield -- http://www.corfield.org/blog/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: site wide missing template handler not working in MX

2002-07-26 Thread Mike Byers

I had a problem with ours that I resolved.  I will tell you how it is
arranged and what I did. You can decide it is similar to your problem.

We had an absolute path in cf5 that went to another drive letter and path
for our file.  In MX it uses relative paths only.  It also has to be inside
of the webroot directory.  Ours was not.  

To solve this I created an physical directory in the webroot with the same
name as the folder where my file existed.  I then created a dummy file
with the same name as the one I wanted to use and inside this dummy file I
placed a CFINCLUDE of the actual file.  Because it was relative, inside
the webroot and could run cf code, it worked just fine.  I had tried using
virtual directories and spent several days trying to get it to work being as
creative as I could.  This was the only way I could actually get it to run.
I could have just placed the actual files there, I know, but I keep my files
elsewhere and wanted to keep it that way.  This approach allows me to do
that.

Good Luck.

Mike

-Original Message-
From: Brook Davies [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 1:16 PM
To: CF-Talk
Subject: Re: site wide missing template handler not working in MX


Yeah, I tried that. Has anyone got this working? Can someone running CFMX 
confirm that this is a bug please? Or just me..

At 02:44 PM 26/07/02 -0300, you wrote:
AFAIK, this path in MX is now relative to the web root directory. Did you 
try this?

Regards,
Marcello Frutig.
-- Astrolábio

 Has ANYBODY been able to get the site wide error handler templates to
work
 in CFMX? Everytime I try to add one in the admin it tells me the path is
 wrong. I've tried every combination of path variations under the sun.
I've
 also seen a thread in the mm forums where other people are having the
same
 problem with no answer yet.
 
 
 
 At 11:29 AM 26/07/02 -0300, you wrote:
 Jesse and folks, we don't experience the same when dealing with
 ASP/PHP/Perl and even JSP (afaik). Ok, this natural on any programming
 language such as pure Java, C++ and so on, but I don't agree that such
 behaviour is natural and expected in server-side scripts/languages such
 as CF and ASP. Maybe MM could go forward on this and provide something
 to perform the compilation faster or/and do it on the time we save a
 cfm template.
 
 I have a friend that says the following about CFMX: it seens that CFMX
 takes a long turn (gets more time and server resources) to get back to
 the same place we can start (or just walk a little bit) with JPS. I
 think this is a crap (CFML is easy, rapid and lovely) but the point is:
 are the price for the Java World too high for merely mortals that just
 want to do little things with CF (which is the perfect server-side
 architeture for that)?
 
 Abraços!
 Alex.
 
 
 -Original Message-
 From: Jesse Noller [mailto:[EMAIL PROTECTED]]
 Sent: 26/07/2002 9:44 AM
 To: CF-Talk
 Subject: RE: It's official: CFMX is 10% faster than CF5
 
 
 /takes off tinfoil hat
 
 Uh, just to throw this in, compilation of code is something you deal
 with almost any programming language. C, C++, Java, etc. It's a bit of a
 movement of a literal line by line read, but overall, it does increase
 the speed of the end result.
 
 Saying that's Java is incorrect. That's Programming would be more
 apt.
 
 Jesse Noller
 [EMAIL PROTECTED]
 Macromedia Server Development
 Unix/Linux special guy
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: Friday, July 26, 2002 8:39 AM
   To: CF-Talk
   Subject: Re: It's official: CFMX is 10% faster than CF5
  
   Yea it is a pain in the ass to have it compile the first time but
   thats java for you what do you expect ;)
  
   See java has its bad points. :P
  
   Bill Wheatley
   Senior Database Developer
   Macromedia Certified Advanced Coldfusion Developer
   EDIETS.COM
   954.360.9022 X159
   ICQ 417645
   - Original Message -
   From: Alex Hubner [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Thursday, July 25, 2002 4:31 PM
   Subject: It's official: CFMX is 10% faster than CF5
  
  
CFMX Performance Brief: CFMX is only 10% faster than CF5 under
Win2k
boxes:
   
 http://www.macromedia.com/software/coldfusion/whitepapers/pdf/cfmx_perfo
rmance_brief.pdf
   
Well, almost everybody knows it in it's day-by-day tests/usages...
   
I disagree with the tests. CFMX is not 10% faster than CF5... It
looks that MM doesn't take in consideration the time (very long,
specially on templates that calls lots of includes, such as fusebox
ones), to the just-in-time compiler finish it's job (which takes
100% of my CPU)... I've told once and I'm gonna say it again: it's
a
 
pain in the ass wait CFMX compiles my templates everytime I modify
it. In a production environment this is acceptable but in a
development environment is realy bad! It becames painless if you
use
 
1Gb processors or faster but... Well

RE: site wide missing template handler not working in MX

2002-07-26 Thread Brook Davies

Well, I am glad to hear that it IS working. I am simply referencing a file 
at the webroot. I have a feeling that CF might think the webroot is the 
standalone webroot. Maybe thats the problem.

Does anyone know where the webroot is set?

Brook

At 03:00 PM 26/07/02 -0500, you wrote:
I had a problem with ours that I resolved.  I will tell you how it is
arranged and what I did. You can decide it is similar to your problem.

We had an absolute path in cf5 that went to another drive letter and path
for our file.  In MX it uses relative paths only.  It also has to be inside
of the webroot directory.  Ours was not.

To solve this I created an physical directory in the webroot with the same
name as the folder where my file existed.  I then created a dummy file
with the same name as the one I wanted to use and inside this dummy file I
placed a CFINCLUDE of the actual file.  Because it was relative, inside
the webroot and could run cf code, it worked just fine.  I had tried using
virtual directories and spent several days trying to get it to work being as
creative as I could.  This was the only way I could actually get it to run.
I could have just placed the actual files there, I know, but I keep my files
elsewhere and wanted to keep it that way.  This approach allows me to do
that.

Good Luck.

Mike

-Original Message-
From: Brook Davies [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 1:16 PM
To: CF-Talk
Subject: Re: site wide missing template handler not working in MX


Yeah, I tried that. Has anyone got this working? Can someone running CFMX
confirm that this is a bug please? Or just me..

At 02:44 PM 26/07/02 -0300, you wrote:
 AFAIK, this path in MX is now relative to the web root directory. Did you
 try this?
 
 Regards,
 Marcello Frutig.
 -- Astrolábio
 
  Has ANYBODY been able to get the site wide error handler templates to
work
  in CFMX? Everytime I try to add one in the admin it tells me the path is
  wrong. I've tried every combination of path variations under the sun.
I've
  also seen a thread in the mm forums where other people are having the
same
  problem with no answer yet.
  
  
  
  At 11:29 AM 26/07/02 -0300, you wrote:
  Jesse and folks, we don't experience the same when dealing with
  ASP/PHP/Perl and even JSP (afaik). Ok, this natural on any programming
  language such as pure Java, C++ and so on, but I don't agree that such
  behaviour is natural and expected in server-side scripts/languages such
  as CF and ASP. Maybe MM could go forward on this and provide something
  to perform the compilation faster or/and do it on the time we save a
  cfm template.
  
  I have a friend that says the following about CFMX: it seens that CFMX
  takes a long turn (gets more time and server resources) to get back to
  the same place we can start (or just walk a little bit) with JPS. I
  think this is a crap (CFML is easy, rapid and lovely) but the point is:
  are the price for the Java World too high for merely mortals that just
  want to do little things with CF (which is the perfect server-side
  architeture for that)?
  
  Abraços!
  Alex.
  
  
  -Original Message-
  From: Jesse Noller [mailto:[EMAIL PROTECTED]]
  Sent: 26/07/2002 9:44 AM
  To: CF-Talk
  Subject: RE: It's official: CFMX is 10% faster than CF5
  
  
  /takes off tinfoil hat
  
  Uh, just to throw this in, compilation of code is something you deal
  with almost any programming language. C, C++, Java, etc. It's a bit of a
  movement of a literal line by line read, but overall, it does increase
  the speed of the end result.
  
  Saying that's Java is incorrect. That's Programming would be more
  apt.
  
  Jesse Noller
  [EMAIL PROTECTED]
  Macromedia Server Development
  Unix/Linux special guy
  
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:39 AM
To: CF-Talk
Subject: Re: It's official: CFMX is 10% faster than CF5
   
Yea it is a pain in the ass to have it compile the first time but
thats java for you what do you expect ;)
   
See java has its bad points. :P
   
Bill Wheatley
Senior Database Developer
Macromedia Certified Advanced Coldfusion Developer
EDIETS.COM
954.360.9022 X159
ICQ 417645
- Original Message -
From: Alex Hubner [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 4:31 PM
Subject: It's official: CFMX is 10% faster than CF5
   
   
 CFMX Performance Brief: CFMX is only 10% faster than CF5 under
 Win2k
 boxes:

  http://www.macromedia.com/software/coldfusion/whitepapers/pdf/cfmx_perfo
 rmance_brief.pdf

 Well, almost everybody knows it in it's day-by-day tests/usages...

 I disagree with the tests. CFMX is not 10% faster than CF5... It
 looks that MM doesn't take in consideration the time (very long,
 specially on templates that calls lots of includes, such as fusebox
 ones

RE: site wide missing template handler not working in MX

2002-07-26 Thread Mike Byers

CF stores it in the registry.  I think that is the only place, but not sure.

MX stores all kinds of things in xml files.

But if you look in 

HKEY_LOCAL_MACHINE/SOFTWARE/MACROMEDIA/INSTALL DATA/COLDFUSION MX
You will see it.

Mike

-Original Message-
From: Brook Davies [mailto:[EMAIL PROTECTED]   ]
Sent: Friday, July 26, 2002 3:22 PM
To: CF-Talk
Subject: RE: site wide missing template handler not working in MX


Well, I am glad to hear that it IS working. I am simply referencing a file 
at the webroot. I have a feeling that CF might think the webroot is the 
standalone webroot. Maybe thats the problem.

Does anyone know where the webroot is set?

Brook

At 03:00 PM 26/07/02 -0500, you wrote:
I had a problem with ours that I resolved.  I will tell you how it is
arranged and what I did. You can decide it is similar to your problem.

We had an absolute path in cf5 that went to another drive letter and path
for our file.  In MX it uses relative paths only.  It also has to be inside
of the webroot directory.  Ours was not.

To solve this I created an physical directory in the webroot with the same
name as the folder where my file existed.  I then created a dummy file
with the same name as the one I wanted to use and inside this dummy file
I
placed a CFINCLUDE of the actual file.  Because it was relative, inside
the webroot and could run cf code, it worked just fine.  I had tried using
virtual directories and spent several days trying to get it to work being
as
creative as I could.  This was the only way I could actually get it to run.
I could have just placed the actual files there, I know, but I keep my
files
elsewhere and wanted to keep it that way.  This approach allows me to do
that.

Good Luck.

Mike

-Original Message-
From: Brook Davies [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 1:16 PM
To: CF-Talk
Subject: Re: site wide missing template handler not working in MX


Yeah, I tried that. Has anyone got this working? Can someone running CFMX
confirm that this is a bug please? Or just me..

At 02:44 PM 26/07/02 -0300, you wrote:
 AFAIK, this path in MX is now relative to the web root directory. Did you
 try this?
 
 Regards,
 Marcello Frutig.
 -- Astrolábio
 
  Has ANYBODY been able to get the site wide error handler templates to
work
  in CFMX? Everytime I try to add one in the admin it tells me the path
is
  wrong. I've tried every combination of path variations under the sun.
I've
  also seen a thread in the mm forums where other people are having the
same
  problem with no answer yet.
  
  
  
  At 11:29 AM 26/07/02 -0300, you wrote:
  Jesse and folks, we don't experience the same when dealing with
  ASP/PHP/Perl and even JSP (afaik). Ok, this natural on any programming
  language such as pure Java, C++ and so on, but I don't agree that such
  behaviour is natural and expected in server-side scripts/languages
such
  as CF and ASP. Maybe MM could go forward on this and provide something
  to perform the compilation faster or/and do it on the time we save a
  cfm template.
  
  I have a friend that says the following about CFMX: it seens that CFMX
  takes a long turn (gets more time and server resources) to get back to
  the same place we can start (or just walk a little bit) with JPS. I
  think this is a crap (CFML is easy, rapid and lovely) but the point
is:
  are the price for the Java World too high for merely mortals that
just
  want to do little things with CF (which is the perfect server-side
  architeture for that)?
  
  Abraços!
  Alex.
  
  
  -Original Message-
  From: Jesse Noller [mailto:[EMAIL PROTECTED]]
  Sent: 26/07/2002 9:44 AM
  To: CF-Talk
  Subject: RE: It's official: CFMX is 10% faster than CF5
  
  
  /takes off tinfoil hat
  
  Uh, just to throw this in, compilation of code is something you deal
  with almost any programming language. C, C++, Java, etc. It's a bit of
a
  movement of a literal line by line read, but overall, it does increase
  the speed of the end result.
  
  Saying that's Java is incorrect. That's Programming would be more
  apt.
  
  Jesse Noller
  [EMAIL PROTECTED]
  Macromedia Server Development
  Unix/Linux special guy
  
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:39 AM
To: CF-Talk
Subject: Re: It's official: CFMX is 10% faster than CF5
   
Yea it is a pain in the ass to have it compile the first time but
thats java for you what do you expect ;)
   
See java has its bad points. :P
   
Bill Wheatley
Senior Database Developer
Macromedia Certified Advanced Coldfusion Developer
EDIETS.COM
954.360.9022 X159
ICQ 417645
- Original Message -
From: Alex Hubner [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 4:31 PM
Subject: It's official: CFMX is 10% faster than CF5
   
   
 CFMX Performance Brief: CFMX is only 10% faster than CF5 under
 Win2k

Re: Limitations in Missing Template Handler Template?

2001-12-04 Thread Jamie Jackson

Okay, figured it out.

Both cffile and cfinclude will work.

With cffile you need to output the cffile variable, as opposed to
letting cffile display it directly.

With cfinclude the pathing is screwy. I used a bunch of
up-directories (../) to get all the way to the root of the server
drive, and then used absolute pathing to get back down to the file I
wanted:

cfinclude
template=../../../../../../../../../../../websites/mysite/404.cfm


Hope it helps someone.
Jamie 

On Fri, 30 Nov 2001 17:39:01 -0500, in cf-talk you wrote:

I've found that HTTP redirects and cflocations function properly,
but they don't quite have the behavior I need within my custom CF 404
page.

So, I'm still wondering about cfincludes within my Missing Template
Handler page.

Possible, or no? Is there anything special I need to do with the
cfinclude to make it work?

Thanks,
Jamie

On Fri, 30 Nov 2001 13:55:47 -0500, in cf-talk you wrote:

I'm trying to set up a custom 404 template that can (individually)
handle multiple sites' (CF) 404 errors (they are hosted on the same
server).

I'm having trouble with cfincludes and cffiles within the custom
CF 404 template: I can't get them to work.

Are these disabled to prevent endless 404 error loops? If not, what
might I be doing wrong?

Thanks,


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Limitations in Missing Template Handler Template?

2001-12-04 Thread BILLY CRAVENS

For CFInclude, you can use mapped paths (in CF Administrator) to clean your
pathing up.

- Original Message -
From: Jamie Jackson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 11:04 AM
Subject: Re: Limitations in Missing Template Handler Template?


 Okay, figured it out.

 Both cffile and cfinclude will work.

 With cffile you need to output the cffile variable, as opposed to
 letting cffile display it directly.

 With cfinclude the pathing is screwy. I used a bunch of
 up-directories (../) to get all the way to the root of the server
 drive, and then used absolute pathing to get back down to the file I
 wanted:

 cfinclude
 template=../../../../../../../../../../../websites/mysite/404.cfm


 Hope it helps someone.
 Jamie

 On Fri, 30 Nov 2001 17:39:01 -0500, in cf-talk you wrote:

 I've found that HTTP redirects and cflocations function properly,
 but they don't quite have the behavior I need within my custom CF 404
 page.
 
 So, I'm still wondering about cfincludes within my Missing Template
 Handler page.
 
 Possible, or no? Is there anything special I need to do with the
 cfinclude to make it work?
 
 Thanks,
 Jamie
 
 On Fri, 30 Nov 2001 13:55:47 -0500, in cf-talk you wrote:
 
 I'm trying to set up a custom 404 template that can (individually)
 handle multiple sites' (CF) 404 errors (they are hosted on the same
 server).
 
 I'm having trouble with cfincludes and cffiles within the custom
 CF 404 template: I can't get them to work.
 
 Are these disabled to prevent endless 404 error loops? If not, what
 might I be doing wrong?
 
 Thanks,
 
 
 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Limitations in Missing Template Handler Template?

2001-12-04 Thread Jamie Jackson

Thanks, I had thought about that too, but that would require a mapping
for every site, and one for new sites too. So this was less work
(since I can determine the path programatically).

Jamie

On Tue, 4 Dec 2001 11:06:58 -0600, in cf-talk you wrote:

For CFInclude, you can use mapped paths (in CF Administrator) to clean 
your
pathing up.

- Original Message -
From: Jamie Jackson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 11:04 AM
Subject: Re: Limitations in Missing Template Handler Template?


 Okay, figured it out.

 Both cffile and cfinclude will work.

 With cffile you need to output the cffile variable, as opposed to
 letting cffile display it directly.

 With cfinclude the pathing is screwy. I used a bunch of
 up-directories (../) to get all the way to the root of the server
 drive, and then used absolute pathing to get back down to the file I
 wanted:

 cfinclude
 template=../../../../../../../../../../../websites/mysite/404.cfm


 Hope it helps someone.
 Jamie

 On Fri, 30 Nov 2001 17:39:01 -0500, in cf-talk you wrote:

 I've found that HTTP redirects and cflocations function properly,
 but they don't quite have the behavior I need within my custom CF 404
 page.
 
 So, I'm still wondering about cfincludes within my Missing 
Template
 Handler page.
 
 Possible, or no? Is there anything special I need to do with the
 cfinclude to make it work?
 
 Thanks,
 Jamie
 
 On Fri, 30 Nov 2001 13:55:47 -0500, in cf-talk you wrote:
 
 I'm trying to set up a custom 404 template that can (individually)
 handle multiple sites' (CF) 404 errors (they are hosted on the same
 server).
 
 I'm having trouble with cfincludes and cffiles within the custom
 CF 404 template: I can't get them to work.
 
 Are these disabled to prevent endless 404 error loops? If not, what
 might I be doing wrong?
 
 Thanks,
 
 
 

~~
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Limitations in Missing Template Handler Template?

2001-11-30 Thread Jamie Jackson

I'm trying to set up a custom 404 template that can (individually)
handle multiple sites' (CF) 404 errors (they are hosted on the same
server).

I'm having trouble with cfincludes and cffiles within the custom
CF 404 template: I can't get them to work.

Are these disabled to prevent endless 404 error loops? If not, what
might I be doing wrong?

Thanks,
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Limitations in Missing Template Handler Template?

2001-11-30 Thread Jamie Jackson

I've found that HTTP redirects and cflocations function properly,
but they don't quite have the behavior I need within my custom CF 404
page.

So, I'm still wondering about cfincludes within my Missing Template
Handler page.

Possible, or no? Is there anything special I need to do with the
cfinclude to make it work?

Thanks,
Jamie

On Fri, 30 Nov 2001 13:55:47 -0500, in cf-talk you wrote:

I'm trying to set up a custom 404 template that can (individually)
handle multiple sites' (CF) 404 errors (they are hosted on the same
server).

I'm having trouble with cfincludes and cffiles within the custom
CF 404 template: I can't get them to work.

Are these disabled to prevent endless 404 error loops? If not, what
might I be doing wrong?

Thanks,

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Missing Template Handler problem

2001-02-22 Thread Jeremy Ridout

I'm running into a problem where it appears that Client variables or Cookies
fail to get set properly when using the Missing Template handler. Has anyone
else run into this, and if so, is there a workaround?

I'm really baffled by this. From documentation and forums postings that I
have seen, Allaire contends that the Missing Template handler functions
exactly like a normal Cold Fusion template. However the test below seems to
prove otherwise.  I've pretty much accepted that none of this is going to
work. I just want to know why. Is this a feature? is it a bug? Am I
overlooking something simple?

I do know that the Missing Template Handler does not call Application.cfm
and that it must be included.

For example, 

Setup: First, set the file "mth.cfm" as the Missing Template Handler in the
CF Administrator. Also, tell CF to store client vars in a database (I don't
know if this makes a difference, but it duplicates my testbed). Create an
Application.cfm with a cfapplication tag and turn on client management and
setclientcookies = yes.

1) Now, put the following code inside "mth.cfm":
cfinclude template="Application.cfm"
cfset Client.MyVar = "My test variable."
cfoutput#Client.MyVar#/cfoutputbr
a href="therealtest.cfm"Now for the REAL test./a

2) Put the following code inside "therealtest.cfm":
cfoutput#Client.MyVar#/cfoutput

When you call the "mth.cfm" file directly, everything works as expected. You
see the new client var both on the mth.cfm page and when you click the link
to see the real test.

(Be sure to delete the client variable between tests!!)

However, when you enter a bogus URL to trigger the missing template handler,
you still see the new client var. But when you click the link to
"therealtest.cfm", you get an error that Client.MyVar does not exist.

It also appears that the Missing Template Handler misbehaves when setting
cookies.

Any ideas?

Thanks for your help,
Jeremy

Jeremy Ridout
Internet Services Director
www.ACEP.org

American College of Emergency Physicians
PO Box 619911
Dallas, TX 75261-9911
972-550-0911


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFAdmin - Missing Template Handler - Format?

2001-02-11 Thread Dave Watts

 I want to use the "Missing Template Handler" in CFAdmin to 
 have a custom 404 page for CF pages.
 
 What format do I put the file in in this box?  Absolute path 
 (http://...), relative path (relative to what)?

You use a filesystem path (ex.
"c:\inetpub\wwwroot\mymissingtemplatehandler.cfm").

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFAdmin - Missing Template Handler - Format?

2001-02-08 Thread Evan Lavidor

I want to use the "Missing Template Handler" in CFAdmin to have a custom 404
page for CF pages.

What format do I put the file in in this box?  Absolute path (http://...),
relative path (relative to what)?

Thanks,

Evan

--
-=-=-=-=-=-=-=-=-=-
Evan Lavidor
Circle.com Boston
Tel: 617-585-3107
Fax: 617-585-3091
-=-=-=-=-=-=-=-=-=-


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists