0

On the SharePoint site, we were seeing error in navigation in the quick launch. If we try to go to the navigation link in the site collection that failed as well. The error that showed up was:

An error occurred while rendering navigation for requested URL: /sites//. Exception message: Object reference not set to an instance of an object. Stack trace: at Microsoft.SharePoint.publishing.publishingpage.geteffectivepagecacheprofileid.

Now we can't even login to the site it just gives us the correlation ID in the title above.

2

Did you enable the OUtput Cache on the Site? Also could you please Confirm that Object Cache Configured for the web app properly.

If Object Cache Configure then try below resolution.

Disabled and re-enabled Publishing feature and Navigation feature for all sites using the powershell script which would loop through all subsites:

Get-SPWeb -site http://server.com/sites/channel -limit ALL | ForEach-Object {Disable-SPFeature Publishing -Url $_.Url -confirm:$false}

Get-SPWeb -site http://server.com/sites/channel -limit ALL | ForEach-Object {Disable-SPFeature PublishingWeb -Url $_.Url -confirm: $false}

IISreset

Get-SPWeb -site http://server.com/sites/channel -limit ALL | ForEach-Object {Enable-SPFeature Publishing -Url $_.Url -confirm:$false}

Get-SPWeb -site http://server.com/sites/channel -limit ALL | ForEach-Object {Enable-SPFeature PublishingWeb -Url $_.Url -confirm: $false}

Unchecked following options in the site collection output cache settings:

  • Publishing sites can use a different page output cache profile
  • Page layouts can use a different page output cache profile

http://praveenix.wordpress.com/2014/03/16/sharepoint-2013-left-navigation-and-top-navigation-bar-does-not-render-links-and-shows-error-an-error-occurred-while-rendering-navigation-for-requested-url/

1

Please go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS if you are using sharepoint 2010 or if sharepoint 2013 then C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS.

Below the message where you are getting correlation Id you will get a time stamp. search for the logfile which is modified at this time stamp. Download ULS log viewer from http://ulsviewer.codeplex.com/ and open your log file in this and filter your content using correlation ID.

1

The correlation id is only a reference to find log messages that are related to this issue in your log. In Central Administration you can check where your log is stored. For SharePoint 2013 (and 2010 iirc): Central admin > Monitoring > Configure diagnostic logging

You can open the files with a simple text editor, but you might want to use a tool called ULS viewer: ULS Viewer (by Microsoft)

You can find log messages containing this correlation id. If you share your findings we might be able to help further.

ps: This is not the answer to your question, but will help us help you. Unfortunately I can't comment yet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.