Copied to clipboard

Flag this post as spam?

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


  • Tom Allen 50 posts 71 karma points
    Sep 15, 2011 @ 16:52
    Tom Allen
    0

    Error: Object reference not set to an instance of an object.

    I get this most unhelpful error when adding an Image Cropper to a document type, and attempting to edit/create new nodes with that type. Please help me out here!

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.editorControls.imagecropper.DataEditor.OnInit(EventArgs e) +671
       System.Web.UI.Control.InitRecursive(Control namingContainer) +140
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +197
       System.Web.UI.ControlCollection.Add(Control child) +79
       umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +3674
       umbraco.controls.ContentControl.CreateChildControls() +610
       System.Web.UI.Control.EnsureChildControls() +102
       umbraco.controls.ContentControl.OnInit(EventArgs e) +32
       System.Web.UI.Control.InitRecursive(Control namingContainer) +140
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +197
       System.Web.UI.ControlCollection.Add(Control child) +79
       umbraco.cms.presentation.editContent.OnInit(EventArgs e) +1249
       System.Web.UI.Control.InitRecursive(Control namingContainer) +140
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480

  • Radek Rezac 1 post 21 karma points
    Sep 21, 2011 @ 21:22
    Radek Rezac
    0

    Probably you use image cropper in the content section instead of media section. Image cropper can be used only with media section datatype.

  • Karen Tucker 1 post 23 karma points
    Sep 23, 2011 @ 10:40
    Karen Tucker
    2

    I had the same problem. The image cropper does not have to go in the Media section, it can be applied to a Document Type, you will need to do the following:

    - Create an Image Upload Property in the Document type;
    - Create an Image Cropper Data type;
    - And when adding the Property alias value to the Image Cropper Data type, ensure that it has the same value as the Image Upload Alias.
    - Add the Image Cropper Data type to the Document type

    See screen grabs below.

    Upload Property in the Document type:

    Image Cropper Data type:

  • Greg Berlin 818 posts 634 karma points
    Sep 12, 2012 @ 23:21
    Greg Berlin
    0

    Awesome, thanks so much!

Please Sign in or register to post replies

Write your reply to:

Draft