Closed (fixed)
Project:
Facet API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2011 at 15:00 UTC
Updated:
12 Aug 2011 at 21:01 UTC
While playing around with Facet API / Search API / Search API Ranges I killed a widget handler, unfortunately this caused a WSoD.
Attached patch "enables" survival mode for such cases, that means the error is logged and the invalid widget skipped.
| Comment | File | Size | Author |
|---|---|---|---|
| facetapi-catch-possible-WSoD-if-widgethandler-is-missing.patch | 800 bytes | das-peter |
Comments
Comment #1
cpliakas commentedThis makes sense to me. If you look through the code there are also some other areas there I have added @todo's as a reminder for adding more defensive coding. I think the approach you take makes sense, and maybe utilizing debug() would be a good option as well? Either way, I will open a separate issue for best practices regarding defensive coding, but marking this patch as RTBC.
Thank for the contribution,
Chris
Comment #2
cpliakas commentedResolved in commit 5468d82.