Good day,
I have such problem. I opened My profile and found the Web Part Errors on my "News Channel" page.
All Web Parts show error:
"The web part or web form control located on this page cannot be displayed or imported. You do not have permissions to add and customize the pages required to complete this action. Correlation id: XXXXXXXXXXXXXXX-XXXXX-XXXXXXXX"
I filtered Log file in UIsViewer by Correlation id, like in this article https://mariagraziamerlo.com/2016/05/31/4-steps-to-get-the-real-error-message-from-sharepoint-2013-log-files/
And found this error
"Error importing WebPart. Assembly Microsoft.SharePoint.Portal, Version=16.0.0.0, Culture=neutral, PublicKeyToken=XXXXXXXXXXXXXX, TypeName. Microsoft.SharePoint.Portal.WebControls.MicroFeedWebPart.The web part or web form control located on this page cannot be displayed or imported. You do not have permissions to add and customize the pages required to complete this action."
I can't understand, what is wrong.
Before I tried to restrict personal site creating for all users. I opened Central Administration, clicked on “Manage service applications” -> “Manage User Permissions”. And I unchecked "Create personal site" and "Use Social Features" for NT AUTHORITY\Authenticated Users and All Authenticated Users, then I restarted User Profile Service. When I found the problems on "News Channel", I canceled this actions and restarted User Profile Service again. It didn't help.
I tried to delete users personal sites by PowerShell
$url = "http://MY SITE/my/" $contextWeb = New-Object Microsoft.SharePoint.SPSite("http://MY SITE/my/");
$ServerContext = [Microsoft.Office.Server.ServerContext]::GetContext($contextWeb);
$UserProfileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($ServerContext);
$Profiles = $UserProfileManager.GetEnumerator();
foreach ($oUser in $Profiles ) { $UserProfileManager.RemoveUserProfile($oUser.item("AccountName")); write-host "This account ", $oUser.DisplayName, " was deleted" Write-Host $oUser.item("AccountName"); }
The users profiles were deleted, then automatycally restored. But the "News Channel" errors didn't disappear... I can't understand, how to fix this problem.
I will be grateful for the help.