Copied to clipboard

Flag this post as spam?

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


  • Maciej 12 posts 73 karma points
    Aug 27, 2013 @ 17:46
    Maciej
    0

    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)

     

    Any ideas?

     

    M

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Aug 27, 2013 @ 17:51
    Jeroen Breuer
    0

    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

  • Maciej 12 posts 73 karma points
    Aug 27, 2013 @ 18:00
    Maciej
    0

    Hi Jeroen,

    6.1.4 only :(

    Thanks, M

  • Robert Stocks 6 posts 29 karma points c-trib
    Aug 27, 2013 @ 18:18
    Robert Stocks
    0

    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.

     

     

  • Chris Mahoney 180 posts 318 karma points
    Aug 27, 2013 @ 23:08
    Chris Mahoney
    0

    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.

  • Domenique 10 posts 40 karma points
    Aug 30, 2013 @ 12:52
    Domenique
    0

    I am also experiencing this error. After upgrade to 6.1.4. (including DAMP). DAMP did got an upgrade only the core.

  • Robert Stocks 6 posts 29 karma points c-trib
    Aug 30, 2013 @ 14:14
    Robert Stocks
    0

    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

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Sep 03, 2013 @ 08:24
    Jeroen Breuer
    0

    Umbraco 6.1.5 is out with the fix: http://our.umbraco.org/contribute/releases/615

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft