here is Application.cfc.  I have added a cfset without success.  Please
help.

<cfcomponent
output="false"
 hint="I define the application and event handlers.">
<cfset THIS.Name = "fatcate-juice" />
<cfset this.applicationTimeout = createTimeSpan( 0, 0, 20, 0 ) />
<cfset this.sessionManagement = true />
<cfset this.clientmanagement = true />
<cfset this.SetClientCookies = true />
<cfset this.sessionTimeout = createTimeSpan( 0, 0, 30, 0 ) />
<cfset this.enablerobustexception="yes">
<cfset request.path = replace(cgi.PATH_TRANSLATED, mid(cgi.SCRIPT_NAME,
"2", (len(cgi.SCRIPT_NAME)-1)), "")>
<Cfset request.cfcpath = "cfcs.">
<cfset request.currentsitename = "fatcate-juice.com">
<cfif cgi.REMOTE_ADDR contains "192.168.1">
  <cfset variables.requested_url = cgi.REDIRECT_URL>
  <cfelse>
  <cfset variables.requested_url =  cgi.path_info>
</cfif>
<cffunction
name="onRequestStart"
 access="public"
returntype="boolean"
output="false"
 hint="I execute when a request needs to be initialized.">
  <!--- Define arguments. --->

  <cfargument
 name="template"
type="string"
required="true"
 hint="I am the template that the user requested."/>
  <cfparam name="variables.currentsitename" default="fatcate-juice.com">
  <cfset request.cfcpath = "fatcate-juice.cfcs.">

  <!---   <cfargument
name="TargetPage"
type="string"
 required="true"/> --->
  <!--- Define the page settings. --->
  <cfsetting enablecfoutputonly="no"
requesttimeout="10"
 showdebugoutput="true"/>
  <!--- Initialize the FORM scope. --->
  <cfset form[ "onRequestStart" ] = true />

  <!--- Return out. --->
  <cfreturn true />
  <!--- Return true to let the page load. --->
  <cfreturn true />
</cffunction>
<cffunction
name="onRequest"
access="public"
returntype="void"
 output="true"
hint="I execute the page template.">
  <!--- Define arguments. --->
  <cfargument
name="template"
type="string"
required="true"
 hint="I am the template that the user requested."
/>

  <cfinclude template="#arguments.template#" />
  <!--- Return out. --->
  <cfreturn />
</cffunction>
<cffunction name="onMissingTemplate" returnType="boolean">
  <cfargument type="string" name="targetPage" required=true/>
  <cfobject component="cfcs.404" name="handle_404" />
  <cfset variables.temp = handle_404.handle_404(requested_template =
arguments.targetPage)>
  <cfreturn True />
</cffunction>
</cfcomponent>



On Sun, Jul 20, 2014 at 1:04 PM, Dave Watts <dwa...@figleaf.com> wrote:

>
> > The web site you are accessing has experienced an unexpected error.
> > Please contact the website administrator.
> >
> > The following information is meant for the website developer for
> debugging
> > purposes. Error Occurred While Processing Request Element CURRENTSITENAME
> > is undefined in REQUEST.
> >
> > <cfset request.CURRENTSITENAME = "fatcate-juice.com">
> > I have this in application.cfc.  What gives?
>
> There are several possibilities:
> - the portion of Application.cfc that has this line isn't being
> executed prior to your request - where is this line in
> Application.cfc? is it in one of the event handlers?
> - the request being executed isn't covered by that Application.cfc -
> is it in the same directory?
>
> Dave Watts, CTO, Fig Leaf Software
> 1-202-527-9569
> 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:358924
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to