In case anybody is interested, I finally thought of a workaround. The problem 
is limited to missing cfm files; only then is the application scope not 
available to the page. (as a matter of fact, *any* type of error within the 
missing template handler will throw the "file not found" error... a bug on it's 
own). Right now, I'm simply reading the cf_template_path and I append part of 
the value to a cflocation statement. The cflocation basically loads the 
"page-not-found" page again, but the second time around, it is not invoked as 
the result of a missing file, thus the application scope is available to the 
page again and all my includes that rely on app vars work again and I can 
gracefully process the (404) error. Phew!
Thanks again for all your help!
/m

BTW, no word from Adobe yet.



> We'll look forward to hearing what Adobe has to say on this curious issue
(or whether we've simply not thought of a solution).

/charlie

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mischa
Uppelschoten ext 10
Sent: Thursday, May 25, 2006 2:02 PM
To: discussion@acfug.org
Subject: re[8]: [ACFUG Discuss] Missing template handler does not have
access to application scope?

Sorry for my late response! (And thanks for checking in Charlie!)

Here is the code I added to my page-not-found page:


<cfscript>
 AppObj = createobject("Component", "Application");
 AppStartResult = AppObj.OnApplicationStart();  </cfscript>

<cfdump var="#AppStartResult#">

The dump returns "true", but a call to any application variable after that
throws a "web site you are accessing has experienced an unexpected error".

I don't have an onRequestStart method in my application.cfc at all.

This is submitted to Adobe as a bug (the free support that comes w/ CF is
basically just "up and running" support if I understand correctly, so they
coouldn't help me), but no response yet.

I think what I will do is just duplicate the variables I need and "manually"
set them in the page-not-found page.

Thanks again for your help!
Mischa.



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by www.fusionlink.com
-------------------------------------------------------------




<



Mischa Uppelschoten
The Banker's Exchange, Inc.
2020 Hills Avenue NW
Atlanta, GA  30318

Phone:    (404) 605-0100 ext. 10
Fax:    (404) 355-7930
Web:    www.BankersX.com
Follow this link for Instant Web Chat:
http://www.bankersx.com/Contact/chat.cfm?Queue=MUPPELSCHOTEN



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------



Reply via email to