DAMP throws unknown exception on image upload with image cropper
Hi,
After creating a custom image type with an image cropper property. DAMP throws an 'unknown exception' when attempting to upload an image of this type. Please note the error message seems to vary from time to time
Versions: Umbraco 6.1.4 Digibiz Advanced Media Picker 2.5
Steps taken: Create a new media type underneath image call it 'Custom image' for example Allow 'Custom image' as a child node type of Folder. Create a custom datatype using Image cropper as the editor. Use umbracoFile as the property alias, check save crop images and add a custom crop. Add this custom image cropper as a property of 'Custom image'. Create a custom image picker using DAMP, in the settings allow it to select and create 'Custom image'. Assign the custom image picker to a document type. In the content menu try and upload an image of type 'Custom image'.
Error Message from log: 2013-08-23 15:05:53,914 [71] INFO umbraco.BusinessLogic.Log - [Thread 43] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Exception: Object reference not set to an instance of an object. - StackTrace: at DigibizAdvancedMediaPicker.DigibizAdvancedMediaPicker.ConvertXML(XDocument xmlDocument) 2013-08-23 15:06:06,720 [71] INFO umbraco.BusinessLogic.Log - [Thread 24] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Exception: Object reference not set to an instance of an object. - StackTrace: at umbraco.editorControls.imagecropper.DataTypeData.ToXMl(XmlDocument data)
at Umbraco.Core.Models.PropertyExtensions.ToXml(Property property, IDataTypeService dataTypeService) at Umbraco.Core.Models.PropertyExtensions.ToXml(Property property) at Umbraco.Core.Services.PackagingService.Export(IContentBase contentBase, String nodeName) at Umbraco.Core.Services.PackagingService.Export(IMedia media, Boolean deep) at Umbraco.Core.Models.ContentExtensions.ToXml(IMedia media) at Umbraco.Core.Services.MediaService.CreateMediaWithIdentity(String name, Int32 parentId, String mediaTypeAlias, Int32 userId) at umbraco.cms.businesslogic.media.Media.MakeNew(String Name, MediaType dct, User u, Int32 ParentId) at DigibizAdvancedMediaPicker.CreateMediaItem.BtnCreate_Click(Object sender, EventArgs e)
2013-08-23 15:06:08,633 [71] ERROR umbraco.DataLayer.SqlHelper`1[[System.Data.SqlClient.SqlParameter, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - [Thread 34] Error executing query select xml from cmsContentXml where nodeID = 1069
System.ArgumentException: The query didn't return a value. at umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, P[] parameters) at umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, IParameter[] parameters)
I haven't seen this error before. I'm also using DAMP with v6, but I'm using CropUp instead of the default Image Cropper. Do you only get this error on 6.1.4 or also on other versions?
DAMP throws unknown exception on image upload with image cropper
Hi,
After creating a custom image type with an image cropper property. DAMP throws an 'unknown exception' when attempting to upload an image of this type. Please note the error message seems to vary from time to time
Versions:
Umbraco 6.1.4
Digibiz Advanced Media Picker 2.5
Steps taken:
Create a new media type underneath image call it 'Custom image' for example
Allow 'Custom image' as a child node type of Folder.
Create a custom datatype using Image cropper as the editor.
Use umbracoFile as the property alias, check save crop images and add a custom crop.
Add this custom image cropper as a property of 'Custom image'.
Create a custom image picker using DAMP, in the settings allow it to select and create 'Custom image'.
Assign the custom image picker to a document type.
In the content menu try and upload an image of type 'Custom image'.
Error Message from log:
2013-08-23 15:05:53,914 [71] INFO umbraco.BusinessLogic.Log - [Thread 43] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Exception: Object reference not set to an instance of an object. - StackTrace: at DigibizAdvancedMediaPicker.DigibizAdvancedMediaPicker.ConvertXML(XDocument xmlDocument)
2013-08-23 15:06:06,720 [71] INFO umbraco.BusinessLogic.Log - [Thread 24] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Exception: Object reference not set to an instance of an object. - StackTrace: at umbraco.editorControls.imagecropper.DataTypeData.ToXMl(XmlDocument data)
2013-08-23 15:06:08,633 [71] ERROR umbraco.DataLayer.SqlHelper`1[[System.Data.SqlClient.SqlParameter, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - [Thread 34] Error executing query select xml from cmsContentXml where nodeID = 1069
Any ideas?
M
Hello,
I haven't seen this error before. I'm also using DAMP with v6, but I'm using CropUp instead of the default Image Cropper. Do you only get this error on 6.1.4 or also on other versions?
Jeroen
Hi Jeroen,
6.1.4 only :(
Thanks, M
Hi I also have this error with 6.1.4 - I have peeked into the source code and think the problem is in the core not in DAMP.
I have commented on this in the issue tracker http://issues.umbraco.org/issue/U4-2711 ; (I assume this is you as well)
prehaps you could reopen the issue to bring it to the core teams attention.
I just added a comment to that issue; I'm having problems too since 6.1.4 and I don't have DAMP. It does indeed seem to be a core issue.
I am also experiencing this error. After upgrade to 6.1.4. (including DAMP). DAMP did got an upgrade only the core.
This is a known issue in 6.1.4 when using the image cropper data type see http://issues.umbraco.org/issue/U4-2711.
A fix is in version 6.2.0 which is due Thursday, 26 September 2013 see http://our.umbraco.org/contribute/releases/620
A fix is in version 6.1.5 which is due Monday 2nd September 2013 see http://our.umbraco.org/contribute/releases/615
Umbraco 6.1.5 is out with the fix: http://our.umbraco.org/contribute/releases/615
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.