Skip to main content
Participant
December 5, 2008
Question

CF8 or Apache 2.2x (winXP) returning empty/blank pages

  • December 5, 2008
  • 2 replies
  • 312 views
My application.cfc process any 'errors' in a cfm page but if no errors are found return nothing, blank empty pages with no view source 'stuff'.

Clear as mud I know; appreciate any help :)

Thanks,

Chuck
This topic has been closed for replies.

2 replies

Participant
December 5, 2008
Hi Daverms,

Thank you for your prompt input; I see you have helped many here :)

Here is the application.cfc you requested...


<cfcomponent
displayname="WebfuseApplication"
output="true"
hint="Handle the application.">



<!--- Set up the application. --->
<cfset application.datasource = "Intake.MainDSN">
<cfset THIS.Name = "webfuseApplication"/>
<cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 1, 0 ) />
<cfset THIS.SessionManagement = false />

<!--- Should we set cookies on the browser? --->
<cfset this.setClientCookies = true>

<!--- Set up Cookie Storage???--->
<!---<cfset THIS.clientStorage = registry /> --->

<!--- should cookies be domain specific, ie, *.foo.com or www.foo.com --->
<cfset this.setDomainCookies = false>

<!--- Define the page request properties. --->
<cfsetting
requesttimeout="20"
showdebugoutput="false"
enablecfoutputonly="false"
/>

<!--- Where should cflogin stuff persist --->
<cfset this.loginStorage = "session">

<!--- should we try to block 'bad' input from users --->
<cfset this.scriptProtect = false>



<!---The first new feature is JSON Prefixes. A JSON prefix is simply a string put in front of your JSON to prevent malicious code from being executed automatically. If you go to your ColdFusion Administrator, you will see a new option under Settings:

Prefix serialized JSON with

This is disabled by default. If you do enable it the default is //, which represents a JavaScript comment. You can also set this security setting directly in your Application.cfc file using two new settings:

secureJSON
secureJSONPrefix

So for example, I could have this in my Application.cfc: --->

<cfset this.secureJSON = "true">
<cfset this.secureJSONPrefix = "//">


<!---Now here is the truly cool part. All JavaScript code that ColdFusion generates will automatically work with these settings and remove the prefix before it works with your JSON. Seems darn easy to use.

Also - you can enable secureJSON at the CFFUNCTION level by adding secureJSON="true" to your method. You cannot, however, set a custom prefix. --->



<!--- Used to help CF work with missing files and dir indexes
<cfset this.welcomeFileList = "">



<!--- define custom coldfusion mappings. Keys are mapping names, values are full paths --->
<cfset this.mappings = structNew()>

<!--- define a list of custom tag paths. --->
<cfset this.customtagpaths = "">

--->


<!--- Run when application starts up --->
<cffunction
name="OnApplicationStart"
access="public"
returntype="boolean"
output="false"
hint="Fires when the application is first created.">

<!--- Return out. --->
<cfreturn true />
</cffunction>


<!--- Runs when your session starts --->
<cffunction
name="OnSessionStart"
access="public"
returntype="void"
output="false"
hint="Fires when the session is first created.">

<!--- Return out. --->
<cfreturn />
</cffunction>

<!--- Run before the request is processed --->
<cffunction
name="OnRequestStart"
access="public"
returntype="boolean"
output="false"
hint="Fires at first part of page processing.">

<!--- Define arguments. --->
<cfargument
name="TargetPage"
type="string"
required="true"
/>

<!--- Return out. --->
<cfreturn true />
</cffunction>

<!--- Runs before request as well, after onRequestStart --->
<cffunction
name="OnRequest"
access="public"
returntype="void"
output="true"
hint="Fires after pre page processing is complete.">

<!--- Define arguments. --->
<cfargument
name="TargetPage"
type="string"
required="true"
/>

<!--- Include the requested page.
<cfinclude template="#ARGUMENTS.TargetPage#" /> --->

<!--- Return out. --->
<cfreturn />
</cffunction>

<!--- Runs at end of request --->
<cffunction
name="OnRequestEnd"
access="public"
returntype="void"
output="false"
hint="Fires after the page processing is complete.">

<!--- Define arguments. --->
<cfargument name="targetPage" type="string" required="true">

<!--- Return out. --->
<cfreturn />
</cffunction>



<cffunction
name="OnSessionEnd"
access="public"
returntype="void"
output="false"
hint="Fires when the session is terminated.">

<!--- Define arguments. --->
<cfargument
name="SessionScope"
type="name"
required="true"
/>

<cfargument
name="ApplicationScope"
type="struct"
required="false"
default="#StructNew()#"
/>

<!--- Return out. --->
<cfreturn true />
</cffunction>

<cffunction
name="OnError"
access="public"
returntype="void"
output="true"
hint="Fires when an exception occures that is not caught by a try/catch.">

<!--- Define arguments. --->
<cfargument
name="Exception"
type="any"
required="true"
/>

<cfargument
name="EventName"
type="string"
required="false"
default=""
/>

<!--- Return out. --->
<cfreturn />
</cffunction>

</cfcomponent>




Look forward to you guidance...sucking up pretty good huh :)

Chuck
Inspiring
December 5, 2008
Hi,

Can you please post your Application.cfc code here?.