cfthrow and cfwheels

55 views
Skip to first unread message

Craig Girard

unread,
Mar 21, 2017, 12:28:09 PM3/21/17
to CFWheels
I have a app I am converting to cfwheels.  The app uses custom cfthrow tags for everything, even requirement messages.  I am unable to modify them all in a short period of time, so I am stuck with many for now.  When cfthrow is called cf / cfwheels just displays a 500-internal server error message.  Has anyone seen this behavior before and have any idea how to fix it?  

Thanks.

Chris Peters

unread,
Mar 21, 2017, 12:41:19 PM3/21/17
to cfwh...@googlegroups.com
The error message that you're seeing is here:
/events/onerror.cfm

You typically don't want to be showing ColdFusion error messages to end users in production. I'm not sure if that's what you're intending to do, and I'm unclear on what you mean by "how to fix it."

Our Exception Render plugin is my favorite way to work with exceptions thrown by our applications:
https://github.com/liquifusion/cfwheels-exception-render

On Tue, Mar 21, 2017 at 12:28 PM, Craig Girard <craig....@gmail.com> wrote:
I have a app I am converting to cfwheels.  The app uses custom cfthrow tags for everything, even requirement messages.  I am unable to modify them all in a short period of time, so I am stuck with many for now.  When cfthrow is called cf / cfwheels just displays a 500-internal server error message.  Has anyone seen this behavior before and have any idea how to fix it?  

Thanks.

--
You received this message because you are subscribed to the Google Groups "CFWheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+unsubscribe@googlegroups.com.
To post to this group, send email to cfwh...@googlegroups.com.
Visit this group at https://groups.google.com/group/cfwheels.
For more options, visit https://groups.google.com/d/optout.



--

Chris Peters
Web Developer
Liquifusion Studios

chris....@liquifusion.com
Skype: liquifusion.support
www.liquifusion.com

Tom King

unread,
Mar 21, 2017, 12:42:31 PM3/21/17
to CFWheels
Wheels uses the error template at /events/onerror.cfm whose logic is powered by /wheels/events/onerror.cfm
You could either write a plugin to override $runOnError(), or you might try and see if `exception` and `eventName` are available in the public error handler (just try dumping those vars): must confess its not something I've done, as I generally try and hide thrown errors.. :)
T

Craig Girard

unread,
Mar 21, 2017, 12:49:49 PM3/21/17
to CFWheels
Thanks guys.  onError isn't firing.  I can get it to run on my machine, by using <cfset set(showErrorInformation=false)> , but once it's up to the server I receive an internal server error.  I'll keep plugging along, not sure how I can explain it any different.  Crappy old code.

Per Djurner

unread,
Mar 21, 2017, 1:16:49 PM3/21/17
to CFWheels
Are you using IIS?

In the past I've had problems with IIS overriding CF's error handling and showing its own page.

On Tue, Mar 21, 2017 at 5:49 PM Craig Girard <craig....@gmail.com> wrote:
Thanks guys.  onError isn't firing.  I can get it to run on my machine, by using <cfset set(showErrorInformation=false)> , but once it's up to the server I receive an internal server error.  I'll keep plugging along, not sure how I can explain it any different.  Crappy old code.

--
You received this message because you are subscribed to the Google Groups "CFWheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+u...@googlegroups.com.

Craig Girard

unread,
Mar 21, 2017, 1:21:27 PM3/21/17
to CFWheels
Yes, I am wondering if that is the issue.

Per Djurner

unread,
Mar 21, 2017, 1:25:54 PM3/21/17
to CFWheels
Very likely.

You can configure IIS to not override it.

I can't remember exactly what I did to fix it but I think something like what's mentioned here:

Craig Girard

unread,
Mar 21, 2017, 1:38:54 PM3/21/17
to CFWheels
That did it!  Thank you!

Per Djurner

unread,
Mar 21, 2017, 1:44:22 PM3/21/17
to CFWheels
No problem :)
Reply all
Reply to author
Forward
0 new messages