Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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?
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
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.
Glad you found it out :-)
Write your reply to:
Image will be uploaded when post is submitted