not sure if I posted this in the correct category. We just moved from railo to lucee.
when an error occurs we use cfcatch and with that we cfmailed the error to ourselves, we simply put:
cfdump var=" #cfcatch#" inside cfmail and it would simply email the dump
but now the email is firing (therefore catching an error) however the email is completely blank, nothing in it.
What am I missing ?
It seems like cfcatch is not ‘working’
also checking the logs there’s nothing there for that event
any help would be appreciated
Which version of Lucee have you migrated to? I’ve tried the following on 4.5 and 5.1 and it seems to work ok.
<cfoutput>#test# <!--- Undefined variable ---></cfoutput>
<cfmail from="firstname.lastname@example.org" to="email@example.com" subject="Something went wrong"><cfdump var="#cfcatch#"></cfmail>
There was a recent change to dump to make it smaller and faster, but the side affect is that it won’t work in emails due to requiring JS to be executed.
There’s a couple of workarounds in this thread:
I am having a problem when onError occurs in my Application.cfc file. I have it set to email me with a cfdump of url, form, application, session scope etc. However when I get the email it just has the h2 headings for each of the scopes, nothing gets dumped (no sign off cfdump running). This is on a production server, when I try the same code on a development server it works fine. Is there a setting in the admin console to switch of cfdump? This only appeared since I migrated from version 4 Lucee…
I think the change has also been reverted and should be available in the next release.
Was the JS change to CFDUMP reverted. This is one of the main things preventing us from upgrading to 5.2.
I’m pretty sure this was addressed in 188.8.131.52 here:
We are running 184.108.40.206 and have no issues sending html emails containing CFDUMP.
For emails I use
<cfdump var=“#cfcatch#” format=“simple”>