My error page:

<!--- error.cfm --->

<cfif request.debugOutput eq false>
        <cfmail
           to="[EMAIL PROTECTED]"
           from="[EMAIL PROTECTED]"
           subject="Cold Fusion Error"
           type="HTML"><html>
        <head>
        <title>An error has occurred</title>
        </head>
        <body>
        <p>An error has occurred on #cgi.server_name#</p>
        <hr>
        <p>Error:</p>
        <cfdump var="#cfcatch#">
        <p>Variables:</p>
        <cfdump var="#Variables#">
        <p>CGI:</p>
        <cfdump var="#CGI#">
        <p>File:</p>
        <cfdump var="#File#">
        <p>URL:</p>
        <cfdump var="#URL#">
        <p>Form:</p>
        <cfdump var="#Form#">
        <p>Cookie:</p>
        <cfdump var="#Cookie#">
        <p>Client:</p>
        <cfdump var="#Client#">
        <p>Server:</p>
        <cfdump var="#Server#">
        <p>Application:</p>
        <cfdump var="#Application#">
        <p>Session:</p>
        <cfdump var="#Session#">
        <p>Request:</p>
        <cfdump var="#Request#">
        </body>
        </html>
        </cfmail>
        <cfset request.bodycontent = "<h1>Error</h1><p>Unfortunately an
error has occurred. We have been notified and are trying to fix it as
soon as possible.<br>Sorry for the inconvenience.</p>">
        <!-- end of cfmail -->
        <cfinclude template="../app_locals.cfm">
        <!-- end of locals -->
        <cfinclude template="../app_layout.cfm">
        <!-- end of layout -->  
<cfelse>
        <cfdump var="#cfcatch#">
</cfif>

When I run this I get my layout OK, I get the error message, I then get
a completely random 2020 and no more - I do not get my footer page.

If however I remove 

        <p>Error:</p>
        <cfdump var="#cfcatch#">
        <p>Variables:</p>
        <cfdump var="#Variables#">

from the e-mail everything is ok and I get the footer with no 2020.
Thing is I need the cfcatch output so I can see the error message.

This really is a very weird problem - anyone got any idea what this is
about?

Thanks

P.S. sorry for the blank e-mail!

Giles Roadnight



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to