I am using Umbraco v4.11.8 with Contour v3.0.17. I have created a custom FieldType, and I am able to preview the form fine using my custom FieldType. However, on the site I get an 'object reference not set...' error. Using the trace I get this error:
DefaultCultureDictionary Error returning dictionary item 'submit' No key submit exists in dictionary at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key) at Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key) 0.029820200612089 0.004253 DefaultCultureDictionary Error returning dictionary item 'next' No key next exists in dictionary at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key) at Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key) 0.0320731405807163 0.002253 DefaultCultureDictionary Error returning dictionary item 'prev' No key prev exists in dictionary at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key) at Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key) 0.0342413630782683 0.002168 Template Error adding macro Insert form from Umbraco Contour (Usercontrol) Object reference not set to an instance of an object. at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderField(Object sender, RepeaterItemEventArgs e) at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderFieldset(Object sender, RepeaterItemEventArgs e) at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderUi() at Umbraco.Forms.UI.Usercontrols.RenderForm.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at umbraco.presentation.templateControls.Macro.CreateChildControls() 0.0370129443825961 0.002772 Unhandled Execution Error Object reference not set to an instance of an object. at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderField(Object sender, RepeaterItemEventArgs e) at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderFieldset(Object sender, RepeaterItemEventArgs e) at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderUi() at Umbraco.Forms.UI.Usercontrols.RenderForm.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at umbraco.presentation.templateControls.Macro.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Just because I read that and went "Wha..t?", having not done any multilingual Umbraco development.
Goto Settings and Right click Dictionary, select "Create", enter "Submit". In the window enter "Submit" into the box for English (United States) and click Save.
Custom FieldType Error
Hi,
I am using Umbraco v4.11.8 with Contour v3.0.17. I have created a custom FieldType, and I am able to preview the form fine using my custom FieldType. However, on the site I get an 'object reference not set...' error. Using the trace I get this error:
==========================================================================
DefaultCultureDictionary Error returning dictionary item 'submit'
No key submit exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key) 0.029820200612089 0.004253
DefaultCultureDictionary Error returning dictionary item 'next'
No key next exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key) 0.0320731405807163 0.002253
DefaultCultureDictionary Error returning dictionary item 'prev'
No key prev exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key) 0.0342413630782683 0.002168
Template Error adding macro Insert form from Umbraco Contour (Usercontrol)
Object reference not set to an instance of an object.
at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderField(Object sender, RepeaterItemEventArgs e)
at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderFieldset(Object sender, RepeaterItemEventArgs e)
at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderUi()
at Umbraco.Forms.UI.Usercontrols.RenderForm.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at umbraco.presentation.templateControls.Macro.CreateChildControls() 0.0370129443825961 0.002772
Unhandled Execution Error
Object reference not set to an instance of an object.
at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderField(Object sender, RepeaterItemEventArgs e)
at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderFieldset(Object sender, RepeaterItemEventArgs e)
at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderUi()
at Umbraco.Forms.UI.Usercontrols.RenderForm.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at umbraco.presentation.templateControls.Macro.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
==========================================================================
What am I not doing correctly?
Thanks in advance for your help!
Keith
Comment author was deleted
Hmm looks like it's because of a missing dictionary item so maybe just try to create a dic item with the name submit
Just because I read that and went "Wha..t?", having not done any multilingual Umbraco development.
Goto Settings and Right click Dictionary, select "Create", enter "Submit". In the window enter "Submit" into the box for English (United States) and click Save.
Rinse and repeat for "Next" and "Previous"
Thanks guys. I did create the dictionary items, and that solved these errors, but I'm still getting the...
Object reference not set to an instance of an object.
at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderField(Object sender, RepeaterItemEventArgs e)
is working on a reply...