Forum Discussion
Sharepoint 2019 MasterPage Error: SiteMapPath
Hi... I have a very peculiar issue with SharePoint 2019 on prem. (16.0.10337.12109 patch level). Only one server in the farm. I am not sure what other info is needed to assist.
This is related to the SiteMapPath in a custom master page. This error does not show in the sp logs.
The pages it specially breaks are any pages in site settings, as well as trying to browse any document libraries or lists of any kind.
As you can see we are not even using this element. (hence Visability=false) so yes. the easy solution is to remove it. However, I am trying to find out what is causing this issue or if this is possibly related to a patch. This error also occurs on two other networks we run. They are one patch behind this server. I do believe this started happening after the SEP 6 patch was applied, but i can not confirm rn. All i know is to get it working we have to run in classic mode as an alternative to what is listed below. (meaning its not even using the master page that is using the code listed below. Any assist is very much appreciated. Be asy on me... this is my first post i believe haha
Several things make this error go away and allow the page to display properly.
1. Removal of THIS property in the tag: Font-color="red". (Removal of other properties does not affect the error)
2. Adding a "PS:" in line to any commented code IE: <!-- PS: end of PageTitle-->
3. Removing the SiteMapPath element from the code
Code below:
<!--end of PageTitle-->
<!-- Start of traditional breadcrumbs set visible to True to Enable -->
<!--MS:<asp:SiteMapPath
Visible="False"
runat="server"
Font-Size="1em"
Font-color="red"
SiteMapProviders="SPSiteMapProvider,SPXmlContentMapProvider"
RenderCurrentNodeAsLink="true"
NodeStyle-CssClass="breadcrumbNode"
CurrentNodeStyle-CssClass="breadcrumbCurrentNode"
RootNodeStyle-CssClass="breadcrumbRootNode"
HideInteriorRootNodes="true"
ParentLevelsDisplayed="3"
SkipLinkText=""/> -->
<!--End of traditional breadcrumbs-->
Here is the screenshot of the error: