Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Keith Vong 5 posts 25 karma points
    Nov 08, 2013 @ 18:46
    Keith Vong
    0

    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

    Nov 11, 2013 @ 11:28

    Hmm looks like it's because of a missing dictionary item so maybe just try to create a dic item with the name submit

  • rob 75 posts 170 karma points
    Nov 12, 2013 @ 11:05
    rob
    0

    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"

  • Keith Vong 5 posts 25 karma points
    Nov 12, 2013 @ 11:12
    Keith Vong
    0

    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)

     

Please Sign in or register to post replies

Write your reply to:

Draft