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.
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 :-) ?
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.
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.
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?
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.
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.
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?
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.
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....
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:
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?
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.
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.
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.
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.
@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:
Create an Image Cropper Data Type and give it memorable "Property Alias"
Create your Document Type and name accordingly
Add an Upload property to this new Document Type.
Set the alias of that Upload property to the "property alias" that you selected when creating the Image Cropper Data Type in Step 1.
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.
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:
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 :-) ?
- Never mind -
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.
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.
Ah thanks, thats it indeed.
Woohoo! glad that did the trick!
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?
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
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
if you click on Settings > media types > image
does it also give you the same error?
no error if I do this.
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
hey,
i'm using 4.5 but i can't see any Image Cropper Data type.
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
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
you right, thank you ! :)
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
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
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....
Make sure you change the Image Cropper datatype before you delete the Package (when upgrading)
I did the following after an upgrade:
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.
Pickels: Sorry, didn't see that... (Yes, mine is when upgrading)
Hehe, don't worry just thought I was missing something. =)
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.....
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:
PLEASE HELP!! My clients are losing patience…
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
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.
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.
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.
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 :-)
@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:
Hope this helps too!
is working on a reply...