Copied to clipboard

Flag this post as spam?

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


  • Roger 195 posts 474 karma points
    Sep 24, 2013 @ 16:17
    Roger
    0

    master pages not showing in templates tree

    Hi all,

    Strange problem here...

    Although my master pages are all in the folder, they are not showing in the templates tree.

    Can anyone help me here?

    Thanks

    Roger

  • Roger 195 posts 474 karma points
    Sep 24, 2013 @ 16:36
    Roger
    0

    Also,

    Even though the document types are showing in the tree, they are showing errors in the right pane.

    Server Error in '/' Application.


    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.cms.businesslogic.template.MasterPageHelper.GetFilePath(Template t) +36
       umbraco.cms.businesslogic.template.MasterPageHelper.GetFileContents(Template t) +21
       umbraco.cms.businesslogic.template.Template.setupNode() +241
       umbraco.cms.businesslogic.CMSNode..ctor(Guid uniqueID) +175
       umbraco.cms.businesslogic.template.Template.GetAllAsList() +214
       umbraco.settings.EditContentTypeNew.BindTemplates() +21
       umbraco.settings.EditContentTypeNew.Page_Load(Object sender, EventArgs e) +182
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
    

  • Roger 195 posts 474 karma points
    Sep 24, 2013 @ 16:48
    Roger
    0

    Just tried creating a new template and it wont allow it.

  • Roger 195 posts 474 karma points
    Sep 24, 2013 @ 17:12
    Roger
    100

    resolved:

    select * 
    from UmbracoNode n 
    left join cmsTemplate t on t.nodeid = n.id
    where n.nodeObjectType = '6FBDE604-4178-42CE-A10B-8A2600A2F07D'

    Amend broken record in DB

  • siva kumar 120 posts 209 karma points
    Nov 11, 2013 @ 10:38
    siva kumar
    0

    Hi,

     I am also getting same problem.how to resolve the above issues.where we need to write that query ?

  • Zac 239 posts 541 karma points
    Jun 28, 2014 @ 00:56
    Zac
    0

    We encountered the same issue.

    We ended up fixing this by running SQL Profiler on the database while reloading the template tree in umbraco.  This led us to find the offending sql statement, which was a single node in the umbracoNode table.  

    We then deleted the bad row from the umbracoNode table and everything is working fine now.

Please Sign in or register to post replies

Write your reply to:

Draft