Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Aug 05, 2015 @ 08:14
    Ismail Mayat
    0

    Datatype load error

    I am using data type grid with umbraco 6.1.6 and ucomponents 6..0.06. The data type has 4 properties one media picker and 3 textbox. All was working fine. No any page that is using doctype with that data type grid refuses to load. When you try and edit the datatype you get error,

    "An unhandled exception occurred System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at uComponents.DataTypes.DataTypeGrid.PrevalueEditor.CreateChildControls() " On another instance it all works fine for the same site. If I synch the db from working one to broken again works. Looks like something funny in the db? Anyone seen this before? Also is there query i can run to compare the datatype definitions on the two servers as i suspect something is not quite right there?

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Aug 05, 2015 @ 12:01
    Ismail Mayat
    100

    Right so in answer to my own question. One thing i forgot to mention is we are using usync to sync stuff between environments. So on the live site i did query like

    select * from cmsDataTypePreValues where datatypeNodeId=22026
    

    This give me bunch of rows however one of them

    {"ShowLabel":false,"ShowGridHeader":true,"ShowGridFooter":true,"ReadOnly":false,"TableHeight":300,"Mandatory":false} 5

    the no 5 is sort order this should be 1 as i think the datatype code uses it on load. Anyhow on my dev i updated sort order for that row as well to 5 and boom its YSOD city. When I change it back all works. So will get this done on live and should sort the problem.

    Not sure how the sort order got munged but thats the fix.

    Regards

    Ismail

  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 06, 2015 @ 08:03
    Ove Andersen
    0

    Glad you found it out :-)

Please Sign in or register to post replies

Write your reply to:

Draft