Re: Missing Template Handler is missing part Duex
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
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
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
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
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
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
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
-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
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
-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
Jim Davis wrote: We had a similar situation (dev, int, qa, dr and prod servers with slightly different settings). We ended up adding environment variables to the boxes with the different information (paths, names, etc) and using the CFREGISTRY tag to fetch the values. Interesting idea. Does this work on Unix servers? Or older servers are currently Unix. We seem are moving to Windows servers internally, but I'm not sure if the external servers will ever be Windows. But as we move forward we are working hard to not run into this problem by making the servers as consistent as possible, so it maybe a moot point by then,. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310543 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Missing Template Handler is missing
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
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
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
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
Yea, unless the unix version is different, i think CF 5.0 and earlier require an absolute path while MX and 8 use a relative path. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310439 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Missing Template Handler is missing
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