Copied to clipboard

Flag this post as spam?

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


  • Kristian Ravnevand 94 posts 214 karma points
    Jun 30, 2010 @ 12:26
    Kristian Ravnevand
    0

    Umbraco 4.5 and Image Cropper

    I can't get Image Cropper to work with Umbraco 4.5, it returns this error when trying to open images:

    Server Error in '/' Application.

    No Document exists with Version 'bd638921-2059-4117-9cd9-37b988c01cda'

    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.ArgumentException: No Document exists with Version 'bd638921-2059-4117-9cd9-37b988c01cda'

    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:

    [ArgumentException: No Document exists with Version 'bd638921-2059-4117-9cd9-37b988c01cda']
    umbraco.cms.businesslogic.web.Document.setupNode() +1062
    umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id) +89
    umbraco.cms.businesslogic.Content..ctor(Int32 id) +44
    umbraco.cms.businesslogic.web.Document..ctor(Int32 id) +61
    Kenny.Umbraco.DataTypes.ImageCropper.DataEditor.OnInit(EventArgs e) +358
    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) +6067
    umbraco.controls.ContentControl.CreateChildControls() +939
    System.Web.UI.Control.EnsureChildControls() +102
    umbraco.controls.ContentControl.OnInit(EventArgs e) +92
    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.editMedia.OnInit(EventArgs e) +712
    System.Web.UI.Control.InitRecursive(Control namingContainer) +140
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480

    I've mentioned a error earlier wich looked a bit like this, that had to do with Norwegian set as editor language, but now this error occur with english.

    I've tested it both in a fresh umbraco 4.5 install, and an updated one. What could it be :-) ?

     

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 07, 2010 @ 15:41
    Stefan Kip
    0

    - Never mind -

  • Martin Lingstuyl 202 posts 379 karma points
    Jul 15, 2010 @ 16:47
    Martin Lingstuyl
    0

    So does anyone have a solution to this problem?

    i bumped into it too, and i havent got the slightest idea whats going wrong. Just been trying umbraco 4.5 since today, and I wonder if all modules have to be changed or something.

     

    Hope to hear from someone about it.

     

     

  • wolulcmit 357 posts 693 karma points
    Jul 15, 2010 @ 16:57
    wolulcmit
    2

    Make sure you don't have an old Image cropper (pre 4.5) because it's in 4.5 by default now. look in your bin folder and see if you have the old dll. should be called Kenny.inagecrop.dll or something similar (I can't remember exactly) if you do - remove it and see if that fixes things.

  • Martin Lingstuyl 202 posts 379 karma points
    Jul 15, 2010 @ 17:58
    Martin Lingstuyl
    1

    Ah thanks, thats it indeed.

  • wolulcmit 357 posts 693 karma points
    Jul 15, 2010 @ 18:07
    wolulcmit
    0

    Woohoo! glad that did the trick!

  • Christian Liebe-Harkort 56 posts 104 karma points
    Jul 16, 2010 @ 12:09
    Christian Liebe-Harkort
    0

    Hi,

    could there be another reason, that causes the problem. I have no such dll (clean 4.5 install) but still experiencing kind of same problems. see http://our.umbraco.org/forum/core/41-feedback/10728-Using-Media-Items-with-umbraco-45-

    any ideas?

  • wolulcmit 357 posts 693 karma points
    Jul 16, 2010 @ 12:55
    wolulcmit
    0

    what are you problems exactly? no-document-exists with version 0 etc...? or you cant get media items properly/ xslt issues?
    are you running the .net 4.0 version or 3.5?

    - Tim

  • Christian Liebe-Harkort 56 posts 104 karma points
    Jul 16, 2010 @ 14:36
    Christian Liebe-Harkort
    0

    Hi Tim,

     

    I am running 4.5 (umbraco v 4.5.0 (Assembly version: 1.0.3827.19799 using .NET 4

    xslt issues are solverd, see http://our.umbraco.org/forum/core/41-feedback/10728-Using-Media-Items-with-umbraco-45-

    but clicking on the create button in the media section to simply create an image fails with the error:

    Serverfehler in der Anwendung /.
    No Document exists with Version '00000000-0000-0000-0000-000000000000'
    Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

    Ausnahmedetails: System.ArgumentException: No Document exists with Version '00000000-0000-0000-0000-000000000000'

    Quellfehler:

    Beim Ausführen der aktuellen Webanforderung wurde einen unbehandelte Ausnahme generiert. Informationen über den Ursprung und die Position der Ausnahme können mit der Ausnahmestapelüberwachung angezeigt werden.

    Stapelüberwachung:

    [ArgumentException: No Document exists with Version '00000000-0000-0000-0000-000000000000']
       umbraco.cms.businesslogic.web.Document.setupNode() +1062
       umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id) +89
       umbraco.cms.businesslogic.Content..ctor(Int32 id) +45
       umbraco.cms.businesslogic.web.Document..ctor(Int32 id) +60
       umbraco.dialogs.create.CheckCreatePermissions(Int32 nodeId) +70
       umbraco.dialogs.create.Page_Load(Object sender, EventArgs e) +405
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +49
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


    Versionsinformationen: Microsoft .NET Framework-Version:4.0.30319; ASP.NET-Version:4.0.30319.1

     

  • wolulcmit 357 posts 693 karma points
    Jul 16, 2010 @ 15:04
    wolulcmit
    0

    if you click on Settings > media types > image
    does it also give you the same error?

  • Christian Liebe-Harkort 56 posts 104 karma points
    Jul 16, 2010 @ 15:29
    Christian Liebe-Harkort
    0

    no error if I do this.

  • wolulcmit 357 posts 693 karma points
    Jul 16, 2010 @ 17:20
    wolulcmit
    0

    I get the same if I use the create button and then select a folder in the media tree, execept i get an actual id.... not 0's

    No Document exists with Version 'c2914f0d-1cd4-4f0a-a54c-a4d016616420'

    for example.

    if I right click and create a media item that way, it works fine. I guess it's a bug. I'll take a look and see if it's on codeplex already

    - Tim


  • Eran Meir 401 posts 543 karma points
    Jul 17, 2010 @ 11:57
    Eran Meir
    0

    hey,

    i'm using 4.5 but i can't see any Image Cropper Data type.

  • Christian Liebe-Harkort 56 posts 104 karma points
    Jul 17, 2010 @ 13:18
    Christian Liebe-Harkort
    0

    Hi Tim,

    You will get the 0s if you choose the root (Media) as location for the new content.  I get the actual id as well if I choose a folder within the media  tree. As you said probably a bug.

    christian

  • Martin Lingstuyl 202 posts 379 karma points
    Jul 19, 2010 @ 10:22
    Martin Lingstuyl
    0

    Eran,

    I had the same.

    You should first create the datatype within umbraco. Create it, and select image cropper from the list that follows.

    martin

  • Eran Meir 401 posts 543 karma points
    Jul 20, 2010 @ 20:53
    Eran Meir
    0

    you right, thank you ! :)

  • Christian Liebe-Harkort 56 posts 104 karma points
    Jul 24, 2010 @ 10:04
    Christian Liebe-Harkort
    0

    Hi Martin,

    did I get you right, I can stop that behaviour by creating a document type "Image Cropper"?

    For me this did not work. I created a doc type "Image Cropper" selected image cropper from the list, but still have the same problem. Do I miss something here?

    Christian

  • Martin Lingstuyl 202 posts 379 karma points
    Jul 26, 2010 @ 13:04
    Martin Lingstuyl
    0

    Hi Christian,

     

    I was reacting to Erans post, not yours. If you say that you can select Image Cropper from the datatype list, then my whole point is unnecesary for you. I was talking about the need to first create an ImageCropper Datatype (not Document Type), before being able to use it.

     

    Martin

  • Pickels 75 posts 108 karma points
    Aug 09, 2010 @ 14:07
    Pickels
    0

    Anybody know if this has been fixed? The image cropper works with normal content types but fails with media types. If I use the create button it will give me document 00000... if I right click and do create I get document fdfs94.... 

  • Kristian Ravnevand 94 posts 214 karma points
    Aug 10, 2010 @ 11:13
    Kristian Ravnevand
    0

    Make sure you change the Image Cropper datatype before you delete the Package (when upgrading)

    I did the following after an upgrade:

    • Placed the kenny...dll in the bin folder
    • Went to developer section and found the Image Cropper under datatypes
    • Changed "render control" to the other Image Cropper (the one not selected)
    • Deleted the kenny...dll from the bin folder
    • Went to Settings and just resaved the Image mediatype
    • Then everything worked :-)
  • Pickels 75 posts 108 karma points
    Aug 10, 2010 @ 14:03
    Pickels
    0

    Kristian, you are talking about if you are coming from an older Umbraco version right? I did a clean install and got those two errors.

  • Kristian Ravnevand 94 posts 214 karma points
    Aug 10, 2010 @ 15:27
    Kristian Ravnevand
    0

    Pickels: Sorry, didn't see that... (Yes, mine is when upgrading)

  • Pickels 75 posts 108 karma points
    Aug 10, 2010 @ 15:29
    Pickels
    0

    Hehe, don't worry just thought I was missing something. =)

  • Amigo 243 posts 568 karma points
    Aug 27, 2010 @ 13:55
    Amigo
    0

    I also have problems...
    I have a composite 4.5 (.net3.5) that was upgraded from the former 4.0.xxx solution.

    When i install its ok, and i have created a document type that uses the cropper.
    But when i go to create a page the area is just empty.....


  • Richard Walters 14 posts 51 karma points
    Aug 31, 2010 @ 15:35
    Richard Walters
    0

    Thomas: Image Cropper does not apply to Content types, only Media types (and then, only those whose uploaded file has comprehensible image data).

    I, on the other hand, have not been able to get Image Cropper to work AT ALL, ANYWHERE since the 4.5.1 (including 4.5.2) upgrade. I have tried this with both upgrades and clean installs, on four different server environments, and have been consistently getting one or the other of the same 2 results:

    • on clean installs, I get the following error when trying to load an image node
    • on upgrades, I get the following error, until I apply one or the other of the fixes in this thread, at which point the first error surfaces: 

     PLEASE HELP!! My clients are losing patience…

  • wolulcmit 357 posts 693 karma points
    Aug 31, 2010 @ 16:11
    wolulcmit
    0

    is this of any help:

    take a look under datatypes > Image cropper > take a look in the dropdown - are there 2 image cropper datatypes?
    if so choose the one that's not currently selected and resave the image cropper datatype and see if you still have the same issue.
    (you can also check in your bin folder after you do this and remove Kenny.imagecrop....dll if it exists)

    another thing to try:
    go to settings > media types > image - any errors? check what datatype your crop is set to?

    - Tim

  • DanH 36 posts 61 karma points
    Sep 28, 2010 @ 08:12
    DanH
    0

    I'm having the same issue as Richard.  Fresh install of 4.5.2 for .Net 3.5.  "Object reference not set to an instance of an object" error appears whenever I select a content node with an Image Cropper datatype on it.

  • DanH 36 posts 61 karma points
    Sep 28, 2010 @ 12:10
    DanH
    4

    Ok.  I got this to work after much messing around.  I did not find it very intuitive, so maybe this will help others that were getting the "Object reference not set to an instance of an object" error.  In short, your problem is probably that you added an Image Cropper property to a document type, but do not have a matching Upload property on the document type as well.  It was not apparent to me that I needed an Upload property at all.  I thought I could just add a Image Cropper property, and it would give me a control to upload and crop.  That is not the case.

    Let me back up.  First of all, a property of type Image Cropper can be added to a Media Type or a Document Type.  If you add it to a Media Type, then you'll be able to crop images in the Media Section.  It will save the cropped images as Filename_CropName.  Do everything else as normal, but reference the cropped image filename when needed in your template or xslt or whatever.

    You can also add an Image Cropper property to a Document Type.  To make this work though, you'll also have to add an Upload property to the Document Type.  And finally, the alias of that Upload property needs to match the "property alias" that you selected when creating the Image Cropper Data Type.  If not, you get the error.  Do this correctly, and you'll get an upload control and a cropper control when editing the content based on your Document Type.  Upload an image, hit save, and then hit save again to wake up the cropper control.  Now your image will be shown with the cropper, and it will save cropped images as Filename_CropName to reference where and how you please.

  • Kim Emil Vesterbirk 13 posts 34 karma points
    Nov 02, 2010 @ 13:01
    Kim Emil Vesterbirk
    1

    Well to sum this up...I tried installing imageCropper on a clean 4.5.2 and experienced the same issues with error "No document exists"....Then it occured to me that ImageCropper is a core part of 4.5.2. So I uninstalled the package. Then I created a cropper datatype with an ImageCropper render control...this solved my problem and could be done since ImageCropper is core in 4.5.2. Hope it helps some of You.

  • Jonas Eriksson 930 posts 1825 karma points
    Dec 28, 2010 @ 14:42
    Jonas Eriksson
    0

    I'm still stuck with this unfortunately, on a media document type, datatype myImageCropper, rendering control Image Cropper (guid 7a2d436c-34c2-410f-898f-4a23b3d79f54). No previously "kenny-cropper" installed. Altho it is an upgrade 4.0->4.52. Any suggestions? I also wanna crop :-)

    [NullReferenceException: Object reference not set to an instance of an object.]
    umbraco.editorControls.imagecropper.DataEditor.OnInit(EventArgs e) +1071
    Edit : I made the simple mistake not using the same name for "Property alias (eg. 'umbracoFile')" and the upload property. By naming it umbracoFile the cropper works fine.

  • Jon R. Humphrey 164 posts 455 karma points c-trib
    Aug 07, 2011 @ 02:14
    Jon R. Humphrey
    0

    @DanH, thank you for your explanation as this helped me get things sorted with the ImageCropper in 4.7!

    In a nutshell, to add an ImageCropper to a Document Type and you're receiving the "Object reference not set to an instance of an object" error:

    1. Create an Image Cropper Data Type and give it memorable "Property Alias"
    2. Create your Document Type and name accordingly
    3. Add an Upload property to this new Document Type.  
    4. Set the alias of that Upload property to the "property alias" that you selected when creating the Image Cropper Data Type in Step 1.
    5. Finally, set the description of the Upload to remind the user that once they have uploaded an image to use, hit save, and then hit save again to wake up the cropper control.

    Hope this helps too!

Please Sign in or register to post replies

Write your reply to:

Draft