Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

problems with missing template handler

New Here ,
Mar 12, 2008 Mar 12, 2008
Hello,
We have put the name testmiss.cfm in the missing template handler in the administrator. Still, the default ColdFusion error message shows when a cfinclude has template=a nonexisting file and when in an html form,
action=a nonexisting cfm file. I have testmiss.cfm in both the root with Application.cfm and the directory with all the other cfms but still no luck.
Any idea what we are doing wrong?
Thank you very much.
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 12, 2008 Mar 12, 2008
bill0 wrote:
> Hello,
> We have put the name testmiss.cfm in the missing template handler in the
> administrator. Still, the default ColdFusion error message shows when a
> cfinclude has template=a nonexisting file and when in an html form,
> action=a nonexisting cfm file. I have testmiss.cfm in both the root with
> Application.cfm and the directory with all the other cfms but still no luck.
> Any idea what we are doing wrong?
> Thank you very much.
>


I have always had to put my missing template handler file in the
ColdFusion root. Where this is depends somewhat which flavor of CF you
are using. In my multi-home flavor it is

C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 12, 2008 Mar 12, 2008
Thanks for writing back.
I am using MX6.1 and my directory structure is x:cfms. There is a copy of testmiss.cfm in the root x: and I have tried testmiss.cfm and ..\testmiss.cfm typed in Missing Template Handler in the Administrator. Still the default error message is what shows.
Any ideas what I am doing wrong?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 12, 2008 Mar 12, 2008
bill0 wrote:
> Thanks for writing back.
> I am using MX6.1 and my directory structure is x:cfms. There is a copy of
> testmiss.cfm in the root x: and I have tried testmiss.cfm and ..\testmiss.cfm
> typed in Missing Template Handler in the Administrator. Still the default error
> message is what shows.
> Any ideas what I am doing wrong?
>


ColdFusion has TWO roots that it will check for most CFML templates. It
has a root inside the ColdFusion directory that almost nobody ever uses
and the web root defined by the web server configuration. I have only
ever gotten the default template handler to work by putting the CFML
file inside the ColdFusion root. It does not seem accept a template in
the web root for this purpose.

My previous post gave an example of where my ColdFusion root is located.


P.S. You ever want to drive somebody crazy, put a copy of a CFML file
in the ColdFusion root as that is checked first and will take precedence
over a CFML file of the same name in the web root. Most developers will
pull out all their hair before they figure out why the can no longer
update or modify this file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 12, 2008 Mar 12, 2008
Misscfm.cfm is in the CFusion directory and \CFusion\misscfm.cfm is in the Missing Template Handler box in the administrator. Still no luck. For now, misscfm.cfm right now just is a large bunch of asterisks with a cfabort at the end.

*****************
<cfabort>

What am I doing wrong?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 12, 2008 Mar 12, 2008
bill0 wrote:
> Misscfm.cfm is in the CFusion directory and \CFusion\misscfm.cfm is in the
> Missing Template Handler box in the administrator. Still no luck. Misscfm.cfm
> right now just is a large bunch of asterisks with a cfabort at the end.
>
> *****************
> <cfabort>
>
> What am I doing wrong?
>
>


What exact directory is it in, is suspect cffusion may be to high. And
this will be a root directory, so I expect you will only have
misscfm.cfm in the Missing Template Handler box.

On my development system is is like this:

C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\test.cfm

And in the Missing Template Handler Box:
/test.cfm

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 13, 2008 Mar 13, 2008
Thanks for all the help but still no luck.

The directory is d:\wSites\GBMain\html\CFMS> and I am mapped to it as x:\CFMS. Most of the cfm files are in CFMS but Application.cfm is 1 directory up in html. I have tried misscfm.cfm in both html and CFMS but had no luck having it find a non existant template referred to in a cfinclude or a form's action attribute. The default ColdFusion error handler is what shows. The missing template handler box says /misscfm.cfm. Misscfm.cfm is text followed by a <cfabort>. We use ColdFusion MX6.1

I hope that is enough information to figure what am I missing and/or doing wrong.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 13, 2008 Mar 13, 2008
bill0 wrote:
> Thanks for all the help but still no luck.
>
> The directory is d:\wSites\GBMain\html\CFMS> and I am mapped to it as x:\CFMS.
> Most of the cfm files are in CFMS but Application.cfm is 1 directory up in
> html. I have tried misscfm.cfm in both html and CFMS but had no luck having it
> find a non existant template referred to in a cfinclude or a form's action
> attribute. The default ColdFusion error handler is what shows. The missing
> template handler box says /misscfm.cfm. Misscfm.cfm is text followed by a
> <cfabort>. We use ColdFusion MX6.1
>
> I hope that is enough information to figure what am I missing and/or doing
> wrong.
>
>


Is the 'misscfm.cfm' file somewhere in the 'd:\wSites\GBMain\html\CFMS\'
directory. I will presume this is the 'web root' as defined in your web
server (IIS or Apache or built-in or ???). The missing template handler
file needs to be in the ColdFusion root. This is going to be a
directory such as
'{drive}:\JRun4\servers\{server}\cfusion-ear\cfusion-war\misscfm.cfm'
for J2EE flavors OR '{drive}:\CFusionMX\wwwroot' for Standard I think.
It has been a very long time since I have dealt with Standard.

This is probably completely different from the above web root. That is
the point I am trying to get across. ColdFusion has TWO roots where it
will look for a CFML file. But the Missing and Sitewide templates can
only be in the ColdFusion root listed above, they will not work in the
web root.

HTH
Ian
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 13, 2008 Mar 13, 2008
LATEST
To clarify my previous post. My web root on my development machine is
'C:\Development\ColdFusion\playground'. The ColdFusion root is
'C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war'. My application
files are in the web root. The 'Missing Template' and 'Site wide
Exception' handler files are in the ColdFusion root.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources