Copied to clipboard

Flag this post as spam?

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


  • jonok 297 posts 658 karma points
    Aug 07, 2013 @ 04:52
    jonok
    0

    Upgraded to V6.1.3 - errors involving TemplateRepository.PerformGet

    I've upgraded from 4.10 to 6.1.3 and I'm receiving the following error when trying to edit some nodes (some nodes load correctly in the edit panel), and the 'document types' folder is empty and also throws this error when I try to reload the nodes under 'document types'.

    [NullReferenceException: Object reference not set to an instance of an object.]
       Umbraco.Core.Persistence.Repositories.TemplateRepository.PerformGet(Int32 id) +476
       Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id) +229
       Umbraco.Core.Persistence.Repositories.ContentTypeRepository.<PerformGet>b__0(DocumentTypeDto template) +26
       System.Linq.WhereSelectListIterator`2.MoveNext() +244
       System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +535
       System.Linq.Enumerable.ToList(IEnumerable`1 source) +79
       Umbraco.Core.Persistence.Repositories.ContentTypeRepository.PerformGet(Int32 id) +1028
       Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id) +229
       Umbraco.Core.Persistence.Repositories.<PerformGetByQuery>d__f.MoveNext() +784
       umbraco.loadNodeTypes.Render(XmlTree& tree) +775
       umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context) +194
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +912
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +164
    

    Has anybody else seen this or have any idea what I could try to fix it?

  • jonok 297 posts 658 karma points
    Aug 07, 2013 @ 04:54
    jonok
    0

    The error that I receive when I try to view some nodes in the backend is this one(a bit different to the error above):

    [NullReferenceException: Object reference not set to an instance of an object.]
       Umbraco.Core.Persistence.Repositories.TemplateRepository.PerformGet(Int32 id) +476
       Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id) +229
       Umbraco.Core.Persistence.Repositories.ContentTypeRepository.<PerformGet>b__0(DocumentTypeDto template) +26
       System.Linq.WhereSelectListIterator`2.MoveNext() +244
       System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +535
       System.Linq.Enumerable.ToList(IEnumerable`1 source) +79
       Umbraco.Core.Persistence.Repositories.ContentTypeRepository.PerformGet(Int32 id) +1028
       Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id) +229
       Umbraco.Core.Persistence.Repositories.ContentRepository.CreateContentFromDto(DocumentDto dto, Guid versionId) +92
       Umbraco.Core.Persistence.Repositories.ContentRepository.PerformGet(Int32 id) +735
       Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id) +229
       Umbraco.Core.Services.ContentService.GetById(Int32 id) +103
       umbraco.cms.presentation.editContent.OnInit(EventArgs e) +341
       System.Web.UI.Control.InitRecursive(Control namingContainer) +185
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2097
    
  • jonok 297 posts 658 karma points
    Sep 12, 2013 @ 08:01
    jonok
    3

    In case this helps anybody else, I managed to fix this problem by looking in the database table cmsTemplate - there was a few templates with '0' in the 'master' column. I changed the 0 to null (ctrl 0) and it fixed my problem.

Please Sign in or register to post replies

Write your reply to:

Draft