Copied to clipboard

Flag this post as spam?

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


  • Pickels 75 posts 108 karma points
    Nov 04, 2010 @ 15:59
    Pickels
    0

    System.NullReferenceException

    Hello,

    the desktop uploader is creating the image and folder nodes in Umbraco but it aint uploading the files.

    The Umbraco log shows the following error:

    System.NullReferenceException: Object reference not set to an instance of an object.
       at TheOutfield.UmbExt.DesktopMediaUploader.UmbracoImageMediaFactory.SetImageMediaProperties(Media media, String file, Int32 fileWidth, Int32 fileHeight, Int32 bytes, String ext)
       at TheOutfield.UmbExt.DesktopMediaUploader.UmbracoImageMediaFactory.CreateMedia(Int32 parentNodeId, HttpPostedFile uploadFile, User user)
       at TheOutfield.UmbExt.DesktopMediaUploader.DesktopMediaUploaderHandler.ProcessUploadRequest(HttpContext context, XmlTextWriter xmlTextWriter)

    The media folder should have the right permission. I just added Everyone with full permission to be sure.

    Did I miss something else maybe?

     

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 04, 2010 @ 16:03
    Matt Brailsford
    1

    Hey,

    Can you check this thread to see if this is the same issue you are having? As they reported the same exception:

    http://our.umbraco.org/projects/website-utilities/desktop-media-uploader/bugs,-feedback-and-suggestions/13434-Seems-like-its-uploading,-but-it-doesnt?p=1

    Cheers

    Matt

  • Pickels 75 posts 108 karma points
    Nov 04, 2010 @ 16:12
    Pickels
    0

    Great, can you believe I actually read the first page of that thread...

    So for people who are like me and apperenly can't read:

    go to settings > Media Types > Image > Generic Properties > Change 'umbracoExtensio' to 'umbracoExtension'.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 04, 2010 @ 16:18
    Matt Brailsford
    0

    Hehe,

    Is that something that needs raising as a bug in Umbraco? as the alias really shouldn't be 'umbracoExtensio' by default.

    Matt

  • Pickels 75 posts 108 karma points
    Nov 04, 2010 @ 16:31
    Pickels
    0

    Does it occur in all Umbraco installations? Checked an other project I am working on and seems it's Extensio there too.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 04, 2010 @ 16:41
    Matt Brailsford
    0

    What version of umbraco are you using?

    I've check both 4.5.1 and 4.5.2 and they are both showing the correct alias of "umbracoExtension"

    I thought it was one off when they other guy mentioned it, but intreaged now that you've got the same issue.

    Matt

  • Pickels 75 posts 108 karma points
    Nov 04, 2010 @ 16:42
    Pickels
    0

    4.5.2 .NET 4

  • Pickels 75 posts 108 karma points
    Nov 04, 2010 @ 16:44
    Pickels
    0

    The file media type also has umbracoExtensio.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 04, 2010 @ 16:45
    Matt Brailsford
    0

    Did you upgrade from a previous version?

    Lee Kelleher just pointed me to this old thread which mentions a bug from 4.0.2.1 where the alias was miss spelt

    http://forum.umbraco.org/yaf_postst9878_Multiple-file-upload-for-Umbraco-v401.aspx

    As a couple of you have hit the problem though, I might just put the fix in to prevent this being an issue either way.

    Matt

  • Pickels 75 posts 108 karma points
    Nov 04, 2010 @ 16:45
    Pickels
    0

    Actually my other project is .Net 3.5 they both use MySql though.

  • Pickels 75 posts 108 karma points
    Nov 04, 2010 @ 16:47
    Pickels
    0

    They ain't upgrades. Freshly downloaded from codeplex 2-3 days ago.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 04, 2010 @ 16:49
    Matt Brailsford
    0

    Hmmm, not sure how the default media types get populated. Might be worth checking the core to see if it is via SQL script, and whether there is an error in those for MySQL.

    Matt

  • Pickels 75 posts 108 karma points
    Nov 04, 2010 @ 16:52
    Pickels
    0

    Downloading the source atm. Might do some digging.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 04, 2010 @ 16:55
    Matt Brailsford
    0

    It looks like it is a bug in the MySQL install scripts:

    http://umbraco.codeplex.com/SourceControl/changeset/view/79332#906044

    Time to raise a bug =)

    Matt

    (Thanks Lee Kelleher for digging this out)

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 04, 2010 @ 16:57
    Matt Brailsford
    0

    Has also already been raised as an issue, please go vote for them:

    http://umbraco.codeplex.com/workitem/29213

    http://umbraco.codeplex.com/workitem/28034

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft