Could you provide some details on what Umbraco version you're experiencing this on? Is it a new installation or has it been running for a while? Has the installation recently been upgraded? Have any custom modification been made etc.?
Thanks for the reply. I am using 4.9 and it has been running for a while. The problem is actually with my own adaption of the create content context menu (I am setting it up to give the option of creating duplicate content for different languages).
I have basically replicated the content of the original I am getting this exception:
ok, so the helper.request isn't null. I put all the parameters of the "dialogHandler_temp.Create" into variables and they all seem to have the correct values. When I try to create the content however I am told that there is no instance of the object. I am lost as to how to sort this.
helper.Request("nodeType") == null???
Can anyone help? When I create a node I am getting this exception( I am using an adapted create content).
Hi Marc-Anthony
Could you provide some details on what Umbraco version you're experiencing this on? Is it a new installation or has it been running for a while? Has the installation recently been upgraded? Have any custom modification been made etc.?
Looking forward to hearing from you.
/Jan
Hi Jan,
Thanks for the reply. I am using 4.9 and it has been running for a while. The problem is actually with my own adaption of the create content context menu (I am setting it up to give the option of creating duplicate content for different languages).
I have basically replicated the content of the original I am getting this exception:
Sorry, the exception is a nullreferenceexception and occurs at line102.
ok, so the helper.request isn't null. I put all the parameters of the "dialogHandler_temp.Create" into variables and they all seem to have the correct values. When I try to create the content however I am told that there is no instance of the object. I am lost as to how to sort this.
private void DoCreation()
{
if (!Page.IsValid)
return;
var hel= helper.Request("nodeType");
var nType = int.Parse(nodeType.SelectedValue);
var nId = int.Parse(Request["nodeID"]);
var rName = rename.Text;
BasePage.Current.ClientTools.ChangeContentFrameUrl(dialogHandler_temp.Create(hel,nType,nId,rName)).CloseModalWindow();
}
So, it is the current page that is for some reason null. I take it I need to assign the current page a value but I have no idea where to start.
Ok so I sorted the BasePage.Current being null but now it is the:
dialogHandler_temp.Create(hel,nType,nId,rName)
I tried creating a new instance but the create method is static.
Sorry BasePage.Current was sorted by inheriting from "UmbracoEnsuredPage" instead of just page
I sorted the problem. See my other question.
is working on a reply...