I upgraded my Umbraco 7.6.10 installation to Umbraco 7.7.3, but when I try to login to the CMS, I get this error on the console:
"/umbraco/backoffice/UmbracoApi/Section/GetSections 500 (Internal Server Error)' and the menu inside the backoffice does not load:
There's also an error on the Log:
---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
at Umbraco.Web.Trees.LegacyTreeDataConverter.ConvertFromLegacy(String parentId, XmlTreeNode xmlTreeNode, UrlHelper urlHelper, String currentSection, FormDataCollection currentQueryStrings, Boolean isRoot)
at Umbraco.Web.Trees.LegacyTreeDataConverter.ConvertFromLegacy(String parentId, XmlTree xmlTree, UrlHelper urlHelper, String currentSection, FormDataCollection currentQueryStrings)
at Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromLegacyTree(ApplicationTree appTree, String id, FormDataCollection formCollection, UrlHelper urlHelper, String currentSection)
at Umbraco.Web.Trees.ApplicationTreeController.<GetRootForSingleAppTree>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Umbraco.Web.Trees.ApplicationTreeController.<GetApplicationTrees>d__0.MoveNext()<---
Hi, Fran.
This happened to me. It was a custom section that I had, which gave migration trouble. The update broke the permissions when resetting for groups. I accessed the users section by url, removed the custom section from the groups, saved, and added again
Hi Marcio,
That's weird, because I don't have any custom section. The only thing that added a new menu item under Developer section for me was the package Diplo Audit.
I have a similar problem, all sections are missing, but my stack trace is slightly different. I use Unity, and when I disable the registration of the Unity-container the backend works fine. I've upgraded from 7.6.10 as well.
System.AggregateException at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Umbraco.Web.Editors.SectionController.GetSections()
…
---> Inner Exception: System.NullReferenceException at System.Object.GetType()
at Umbraco.Web.Trees.ApplicationTreeExtensions.<TryGetRootNodeFromControllerTree>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Umbraco.Web.Trees.ApplicationTreeController.<GetRootForMultipleAppTree>d__1.MoveNext()
--- End of stack trace from previous loc
Did you face any errors during the upgrade?
I had some errors with the HealthCheck files and afterwards not being able to login to the cms, than I had to run the upgrade.
I have a feeling that the upgrade actually was not successful (even if it finished), that's why there are these errors.
There's nothing special about my project, no custom sections or custom development, it is just an institutional website. That's why it is weird having these errors.
I fixed my problem. On my /config/trees/config there were some custom sections added by packages Diplo.AuditLog and LeBlender and these were generating the error. Yesterday I had replaced the file, but it seems that it did not work. Today, I overwrote the file again with the one that comes in Umbraco's .zip and it worked.
I've seen this error twice this week on two separate projects.
The first was resolved by adjusting the IoC, but the second project does not have any 'direct' IoC, however I'm pretty confident it may be due to some other packages.
Will see how far I can get with it, and post my findings.
There's quite a good thread on Issues, but I wasn't able to find anything of use.
GetSections error after upgrade to 7.7.3
I upgraded my Umbraco 7.6.10 installation to Umbraco 7.7.3, but when I try to login to the CMS, I get this error on the console:
"/umbraco/backoffice/UmbracoApi/Section/GetSections 500 (Internal Server Error)' and the menu inside the backoffice does not load:
There's also an error on the Log:
Hi, Fran. This happened to me. It was a custom section that I had, which gave migration trouble. The update broke the permissions when resetting for groups. I accessed the users section by url, removed the custom section from the groups, saved, and added again
Hi Marcio, That's weird, because I don't have any custom section. The only thing that added a new menu item under Developer section for me was the package Diplo Audit.
I'll investigate a bit more.
I have a similar problem, all sections are missing, but my stack trace is slightly different. I use Unity, and when I disable the registration of the Unity-container the backend works fine. I've upgraded from 7.6.10 as well.
I've followed the instructions in https://our.umbraco.org/documentation/reference/using-ioc but can't get any further.
Any ideas?
Hi Henrik,
Did you face any errors during the upgrade? I had some errors with the HealthCheck files and afterwards not being able to login to the cms, than I had to run the upgrade. I have a feeling that the upgrade actually was not successful (even if it finished), that's why there are these errors.
There's nothing special about my project, no custom sections or custom development, it is just an institutional website. That's why it is weird having these errors.
Hi Henrik!
Did you find a solution for this?
I'm having the exact same issue.
Hi Rune!
I have not solved this yet. Will look into this further on Friday.
Do you use Unity or AutoFac as well?
Hi Rune, did you solve this?
I've spent the morning with this error and I've tried to remove Unity and set it up again as described here https://our.umbraco.org/Documentation/reference/using-ioc
Same issue anyway. If I remove Unity, all works in Backend.
My UnityConfig looks like this...
fwiw, if still struggling to get this working, just found out what needs changing to get it working with unity
user section has changed quite a lot in v7.7.x, took me too much time to find out it's this specific part of the config that was failing
I fixed my problem. On my /config/trees/config there were some custom sections added by packages Diplo.AuditLog and LeBlender and these were generating the error. Yesterday I had replaced the file, but it seems that it did not work. Today, I overwrote the file again with the one that comes in Umbraco's .zip and it worked.
Thanks !! It worked for me.
I'm having the same problem. No custom sections, and it works with everything except for the Users section. : /
I described my config here: https://our.umbraco.org/forum/using-umbraco-and-getting-started/88267-umbracowebeditorssectioncontrollergetsections-causes-exception-index-was-out-of-range#comment-280859
Did you guys solve it? (apart from Francielle) How?
Turns out it was a Structure Map issue in our solution. All good now.
I've seen this error twice this week on two separate projects.
The first was resolved by adjusting the IoC, but the second project does not have any 'direct' IoC, however I'm pretty confident it may be due to some other packages.
Will see how far I can get with it, and post my findings.
There's quite a good thread on Issues, but I wasn't able to find anything of use.
I was able to resolve my issue, by correctly manually merging the following files:
trees.config
application.config
Can you share your config files? I am having this problem as well but changing my config files doesn't seem to fix it.
My config files look like this:
application.config:
What was the result?
is working on a reply...