Copied to clipboard

Flag this post as spam?

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


  • Sam 5 posts 26 karma points
    Aug 02, 2010 @ 20:56
    Sam
    0

    Object Reference not set to an instance of an object

    Got a fresh install of version 4.5.1 in IIS 7 / Win'08 / mySQL.

    In the Media section, I select the file(s) to upload, once progress bar reaches 100%  a popup box appears with "Object Reference not set to an instance of an object" .

    File appears in the media console but the physical file (and folder) is not created on the server.

    I'm guessing it's a permissions issue. Any guidance is appreciated.

  • dandrayne 1138 posts 2262 karma points
    Aug 03, 2010 @ 10:26
    dandrayne
    0

    HI Sam

    What size of files where you uploading?  Were the total size of files within the maxrequestlength in your web.config?  And does NETWORK-SERVICE have full write permissions on your /media folder

    Dan

  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 03, 2010 @ 12:46
    Ove Andersen
    0

    @dandrayne The file size problem generates a "Page cannot be displayed" error message.

    @sam Try to do what is described in this guide: http://our.umbraco.org/wiki/install-and-setup/set-umbraco-folder-permissions-from-command-line

  • Sam 5 posts 26 karma points
    Aug 03, 2010 @ 18:29
    Sam
    0

    Thank you both for the reply. I followed the instructions on the guide as suggested, still same result. The files i am trying to upload are small png files, averages size of 150kb

    One thing I did notice is the auth variable in the uploadify script is not being populated, here is a snippet of what i see, would that be causing any issues?

     

    <script type="text/javascript"> 
       $(function () {
           var errorsOccurred = false;
           var auth = "";
           var input = $('#body_ctl09');
           input.uploadify({
               'uploader': '/usercontrols/Gecko.Uploadify/uploadify.swf',
               'script': '/usercontrols/Gecko.Uploadify/Uploadify.ashx',
               'cancelImg': '/usercontrols/Gecko.Uploadify/cancel.png',
               'auto': true,
               'multi': true,
               'wmode': 'transparent',
               //'buttonImg' : '/usercontrols/Gecko.Uploadify/upload.png',
               //'width': 102,
               //'height': 37,
               'sizeLimit': 4194304,
               'buttonText': 'Upload Files',
               'scriptData': {
                   'AUTHID': auth,
                   'mediaFolder' : 1053
               }            
               ,'onComplete': function(event, queueID, fileObj, response, data) {
                       if (response != "1") { errorsOccurred = true; alert(response); }         
                   return false;
               }
               ,'onAllComplete': function(event, data)  {      
                   
                   if (data.errors == 0 && !errorsOccurred) {
                       window.location.reload();
                   }
                   errorsOccurred = false;              
               }
           });
       });
    </script> 

     

  • Emanuel 63 posts 283 karma points
    Aug 03, 2010 @ 19:52
    Emanuel
    0

    Hi there,

     

    Just did a quick test on one of our websites, it worked fine.
    The auth variable is used to send the ASP.NET Session info to the server, but it works when it's blank (i.e. no session).
    One thing I noticed was the "var input = $('#body_ctl09');" That ID field seems really small. A couple questions:

     - Do you have the macro inside a <form runat="server"> tag? If not, you need to.

     - How are you inserting the macro in your template? Can you post your <umbraco:Macro... here?

    Thanks,

    Emanuel

  • Sam 5 posts 26 karma points
    Aug 03, 2010 @ 20:54
    Sam
    0

    Hey Emanuel,

    I appreciate your input, this was actually occurring in the media section - i was using the uploader as folder property. 

    I found the issue, both the image and file media types had a "Type" property with an alias "umbracoExtensio" . Adding an 'n' at the end of the alias (to 'umbracoExtension') fixed the issue.

    This was after a fresh install of 4.5.1, not sure if it's an umbraco bug or if mySQL is truncating it.

    Anyway, thank you all for taking the time to respond.

    -s

Please Sign in or register to post replies

Write your reply to:

Draft