This project is read-only.


Content Type Stereotype causing YSOD with submitted forms


This is probably more to do with me not using Orchard correctly, but realistically I shouldn't be able to throw a YSOD when I'm just using the Admin.

I created a Content Type for a custom form. I set the Stereotype as 'Widget' (I'm still not sure what this is for, but I intended on using the form as a widget, and as such I set the stereotype as so). I submitted a form (from a widget I'd created), then went to view the content. I got a NullReference error from Widget.Wrapper.cshtml on line 8.

I was able to patch a temporary work around until I fixed my offending Content Type, but I'm sure the issue is far more complicated than a simple NullReference error - I don't understand the Stereotype field or what it does so haven't been able to come up with a patch for submission.

Closed Jan 15, 2013 at 9:15 PM by sebastienros


sebastienros wrote Jan 15, 2013 at 9:15 PM

When using the Widget stereotype you must also add a WidgetPart to the content type, by design.

justrhysism wrote Jan 15, 2013 at 10:19 PM

That's fine - but, by design, the software shouldn't crash for a user error if the source code hasn't been modified.