Error when copying node and keeping links between original and copies
Hi,
I'm taking my first steps with Umbraco. So far, I have a working (local) installation in 1 language. I want to copy the entire node (first node under 'content') and keep the relation between the original and the copy.
This gives me a NULL reference exception.
I may be new to Umbraco, but I don't think that I should be seeing this error with the actions I performed. And I cannot find any logging in my installation.
Ahh, I always (wrongly) assume people are using SQL Server.
As for the error I'm sorry I don't what's causing this, but there's nothing wrong with what you're trying to do.
The only thing I could suggest is trying to work out which node is causing the problem, ie if you *just* have a Home node does it work, then home node and another node folder etc.
Error when copying node and keeping links between original and copies
Hi,
I'm taking my first steps with Umbraco. So far, I have a working (local) installation in 1 language. I want to copy the entire node (first node under 'content') and keep the relation between the original and the copy.
This gives me a NULL reference exception.
I may be new to Umbraco, but I don't think that I should be seeing this error with the actions I performed. And I cannot find any logging in my installation.
How do I proceed?
Besides, it works fine when I don't keep the relation between the original and the copy.
The logs are all in the database, you can easily view them in the Umbraco UI by installing this great package http://our.umbraco.org/projects/backoffice-extensions/falm-housekeeping
Let us know if there are any relevant errors in the logs.
Rich
That tool doesn't seem to work very well. Probably because I'm using MySql in stead of SQL Server.
Anyway, the umbracolog table shows this error:
'1281', '0', '-1', '2011-08-28 13:36:40', 'Error', 'At /umbraco/dialogs/moveOrCopy.aspx?app=content&mode=copy&id=1050&rnd=87.1&rndo=87.6 (Referred by: http://localhost:82/umbraco/dialogs/moveOrCopy.aspx?app=content&mode=copy&id=1050&rnd=87.1&rndo=87.6): System.NullReferenceException: Object reference not set to an instance of an object.
at umbraco.cms.businesslogic.relation.Relation.MakeNew(Int32 ParentId, Int32 ChildId, RelationType RelType, String Comment)
at umbraco.cms.businesslogic.web.Document.Copy(Int32 CopyTo, User u, Boolean RelateToOrignal)
at umbraco.dialogs.moveOrCopy.HandleDocumentMoveOrCopy()
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)'
Ahh, I always (wrongly) assume people are using SQL Server.
As for the error I'm sorry I don't what's causing this, but there's nothing wrong with what you're trying to do.
The only thing I could suggest is trying to work out which node is causing the problem, ie if you *just* have a Home node does it work, then home node and another node folder etc.
Sorry I couldn't be more help.
Rich
It's a problem with this version of Umbraco and MySql.
I reproduced the issue:
1/ Clean install with MySql, use simple starter kit. Copy the 'simple website' and keep the relation between the copied items and the original.
-> ERROR
2/ Same process works fine with MS SQL Server 2008.
Should I report this as a bug? If so, where?
Hi,
You can report it as a bug on CodePlex
http://umbraco.codeplex.com/
Rich
is working on a reply...