Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 31, 2011 @ 06:17
    Fuji Kusaka
    0

    Image Cropper

    Hi everyone,

    When trying to use tge datatype "Image Cropper" in my media section am getting a server error when creating the media. 

    Any clue what might be causing this?

    NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.editorControls.imagecropper.DataEditor.OnInit(EventArgs e) +842
       System.Web.UI.Control.InitRecursive(Control namingContainer) +132
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +276
       umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +3675
       umbraco.controls.ContentControl.CreateChildControls() +833
       System.Web.UI.Control.EnsureChildControls() +181
       umbraco.controls.ContentControl.OnInit(EventArgs e) +122
       System.Web.UI.Control.InitRecursive(Control namingContainer) +132
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +276
       umbraco.cms.presentation.editMedia.OnInit(EventArgs e) +669
       System.Web.UI.Control.InitRecursive(Control namingContainer) +132
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1969

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Oct 31, 2011 @ 09:06
    Jeroen Breuer
    0

    Did you configure the Image Cropper datatype? It needs to point to a property which contains the image to crop. Most of the time this is the umbracoFile field.

    Jeroen

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 31, 2011 @ 10:15
    Fuji Kusaka
    0

    Yes i did but it returns me this server error.

  • Jason Teale 1 post 21 karma points
    Jun 28, 2012 @ 06:03
    Jason Teale
    0

    I'm getting the same error trying to use ImageCropper in Umbraco 4.7.2

    Did you ever find out what was causing this error?

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 28, 2012 @ 07:01
    Fuji Kusaka
    0

    Hi Jason,

    Yes managed to use it. I only created a new Custom DataType under the developers section and used the Image Cropper Control.

    You need to add the alias 'umbracoFile' file as Property Alias as well. It should get you working.

    //fuji

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

    Same problem... on 4.8.  Getting the following error:

    Object reference not set to an instance of an object. at umbraco.editorControls.imagecropper.DataEditor.OnInit(EventArgs e)

    I've tried creating a new data type and using the Image Cropper type with it - still throws error

    Have put in the umbracoFile property and created a Crop.

    Not sure what else to try... any suggestions?

  • Greg Berlin 818 posts 634 karma points
    Sep 12, 2012 @ 23:22
Please Sign in or register to post replies

Write your reply to:

Draft