Resolution for Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page.
Problem: When accessing any page in sharepoint site which has publishing site infrastructure feature actiavted. above given error appears.
First try to Deactivate and ReActivate the Sharepoint Site Publishing Infrastructure feature at both Scopes (Site And Web) level.
If this will not solve your problem then try to run following Power shell script.
$web = get-spweb "http://site-collection/path-to-affected-site"
$correctId = $web.Lists["Pages"].ID
$web.AllProperties["__PagesListId"] = $correctId.ToString()
$web.AllProperties["__PublishingFeatureActivated"] = "True"
Hope this helps to somebody
Please follow and like us:
SharePoint Team Lead , Office 365 consultant