Copied to clipboard

Flag this post as spam?

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


  • Andrew Arnott 7 posts 58 karma points
    Jan 15, 2014 @ 17:08
    Andrew Arnott
    0

    Null ref error when editing entry values

    When tring to edit the values of a submitted entry, I am getting the error shown below if any of the captions on the form contain spaces.

    Is there a known way to get around this? 

     

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    [NullReferenceException: Object reference not set to an instance of an object.]
       Umbraco.Forms.UI.Usercontrols.RenderForm.RenderField(Object sender, RepeaterItemEventArgs e) +2359
       System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +111
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +138
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +9765387
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +61
       System.Web.UI.WebControls.Repeater.DataBind() +105
       Umbraco.Forms.UI.Usercontrols.RenderForm.RenderFieldset(Object sender, RepeaterItemEventArgs e) +698
       System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +111
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +138
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +9765387
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +61
       System.Web.UI.WebControls.Repeater.DataBind() +105
       Umbraco.Forms.UI.Usercontrols.RenderForm.RenderUi() +2305
       Umbraco.Forms.UI.Usercontrols.RenderForm.OnInit(EventArgs e) +271
       System.Web.UI.Control.InitRecursive(Control namingContainer) +134
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +191
       System.Web.UI.ControlCollection.Add(Control child) +86
       Umbraco.Forms.UI.Dialogs.previewFormDialog.OnInit(EventArgs e) +975
       System.Web.UI.Control.InitRecursive(Control namingContainer) +134
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +489
  • Andrew Arnott 7 posts 58 karma points
    Jan 15, 2014 @ 17:11
    Andrew Arnott
    0

    This is in Umbraco v6.1.6 (Assembly version: 1.0.5021.24867) using Umbraco Contour version 3.0.17.

  • Comment author was deleted

    Jan 16, 2014 @ 14:03

    Hmm that's strange, could it be that the form changes structure (so fields added/removed) when compared to the record you are trying to edit?

  • Andrew Arnott 7 posts 58 karma points
    Jan 16, 2014 @ 14:24
    Andrew Arnott
    0

    How would I best go about detemining if this is happening?

  • Comment author was deleted

    Jan 16, 2014 @ 15:43

    Check fields in entries viewer and check fields on the form :)

Please Sign in or register to post replies

Write your reply to:

Draft