Copied to clipboard

Flag this post as spam?

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


  • Frederik 4 posts 24 karma points
    Aug 28, 2011 @ 11:29
    Frederik
    0

    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?

  • Frederik 4 posts 24 karma points
    Aug 28, 2011 @ 11:29
    Frederik
    0

    Besides, it works fine when I don't keep the relation between the original and the copy.

  • Rich Green 2246 posts 4008 karma points
    Aug 28, 2011 @ 12:02
    Rich Green
    0

    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 

  • Frederik 4 posts 24 karma points
    Aug 28, 2011 @ 13:42
    Frederik
    0

    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)'

  • Rich Green 2246 posts 4008 karma points
    Aug 28, 2011 @ 14:06
    Rich Green
    0

    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

  • Frederik 4 posts 24 karma points
    Aug 28, 2011 @ 18:22
    Frederik
    0

    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? 

  • Rich Green 2246 posts 4008 karma points
    Aug 28, 2011 @ 18:24
    Rich Green
    0

    Hi,

    You can report it as a bug on CodePlex

    http://umbraco.codeplex.com/

    Rich

Please Sign in or register to post replies

Write your reply to:

Draft