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.
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
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?
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?
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.
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.
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
@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
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?
$(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) {
return false;
}
if (data.errors == 0 && !errorsOccurred) {
window.location.reload();
}
}
});
});
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
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
is working on a reply...