Matt:

Are you able to CFINCLUDE a file that is located in the exact same directory
as the 404 handler?  I'm curious if it's truly a problem with including
files or something else.

I have a development site in which the 404 handler is located in the site's
webroot.  For fun, I added a CFINCLUDE to the 404 handler and it worked as
expected.  I was able to include files, via relative path, regardless of
whether the included file was in the same directory, somewhere under
webroot, or somewhere outside of the webroot.

However, I did get a "object not found" error when I first tried this.
After some toying around, I discovered that regardless of the type of error
in the 404 handler (i.e., syntactical, trying to output a variable that is
undefined, etc.) the error message always came back as "object not found."

Here's the code for my test 404 handler, in its entirety:

        THIS IS THE 404<BR><BR>

        <CFOUTPUT>#foo#</CFOUTPUT><BR><BR>

        THIS IS STILL THE 404

This should produce an error message to the effect that the variable "foo"
is undefined.  Instead, when in the 404 handler, it produced an "object not
found" error.

Perhaps you have some other code problem in the 404 handler?

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


Matt Robertson wrote:
> Thanks but I tried that yesterday as a shot-in-the-dark  No dice, but
> good thinking :-)
>
> My next attempt is going to:
>
> 1. install a mapping to the client web site
> 2. put the CF 404 handler under the client's web root in this
> mapped folder
> 3. Try again
>
> Obviously doing this has implications; none of which I like very much.



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

Reply via email to