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