I'm putting this in here rather than in the courier forum. I'm more concerned with getting my templates back at the moment than I am in making courier work.
Anyway, if I look in my masterpage folder on disk my templates are all there . In the umbraco admin, when I try to expand "Templates" in the settings section, it comes up empty. Also when I click on any document type in the settings section it throws an error, I assume because its trying to populate a template list. I get the following error in my log after either of these things:
System.NullReferenceException: object reference not set to an instance of an object.
at umbraco.cms.businesslogic.template.Template.get_MasterPageFile()
at umbraco.cms.businesslogic.template.Template.getMasterPageContent()...
I rolled my database back to a known good point from last night but it didn't help, still no templates in the tree.
select * from UmbracoNode n left join cmsTemplate t on t.nodeid = n.id where n.nodeObjectType = '6FBDE604-4178-42CE-A10B-8A2600A2F07D'
Found the umbraocNode record that didn't have a corresponding template. Deleted the record and now I'm good. Seems like once I found the answer I found numerous posts in here.
No templates after failed courier run
I'm putting this in here rather than in the courier forum. I'm more concerned with getting my templates back at the moment than I am in making courier work. Anyway, if I look in my masterpage folder on disk my templates are all there . In the umbraco admin, when I try to expand "Templates" in the settings section, it comes up empty. Also when I click on any document type in the settings section it throws an error, I assume because its trying to populate a template list. I get the following error in my log after either of these things:
System.NullReferenceException: object reference not set to an instance of an object. at umbraco.cms.businesslogic.template.Template.get_MasterPageFile() at umbraco.cms.businesslogic.template.Template.getMasterPageContent()...
I rolled my database back to a known good point from last night but it didn't help, still no templates in the tree.
Running 4.7.2, Win 2008, IIS 7, .net 4.0
I failed to mention this is happening on the courier target, not the source.
select *
from UmbracoNode n
left join cmsTemplate t on t.nodeid = n.id
where n.nodeObjectType = '6FBDE604-4178-42CE-A10B-8A2600A2F07D'
Found the umbraocNode record that didn't have a corresponding template. Deleted the record and now I'm good. Seems like once I found the answer I found numerous posts in here.
http://our.umbraco.org/forum/templating/templates-and-document-types/44950-master-pages-not-showing-in-templates-tree
is working on a reply...