Sharepoint 2013 (Edit publishing page error)

Zunaid Valley 1 Reputation point
2021-05-21T09:10:49.007+00:00

Hi

When we try and edit a publishing page or add OOTB webpart ot the page in sharepoint 2013 get error below in logs

=======================================================================================

Application error when access /_layouts/15/ImageRenditionSettings.aspx, Error=Error in line 1 position 156. Expecting element 'SiteImageRenditions' from namespace 'http://schemas.datacontract.org/2004/07/Microsoft.SharePoint.Publishing'.. Encountered 'Element' with name 'SiteImageRenditions', namespace 'https://schemas.datacontract.org/2004/07/Microsoft.SharePoint.Publishing'.
at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
at Microsoft.SharePoint.Publishing.ImageRenditionCollection.<>c__DisplayClassa.<GetRenditions>b__9()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at Microsoft.SharePoint.Publishing.ImageRenditionCollection.GetRenditions(Guid siteId)
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.ImageRenditionSettingsPage.get_SiteRenditions()
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.ImageRenditionSettingsPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

=======================================================================================

Any help resolving this issue would be helpful
Thank You and stay safe.
Kind Regards

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,213 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,660 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,570 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,796 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,756 Reputation points
    2021-05-24T02:44:18.087+00:00

    Hi @Zunaid Valley ,

    To narrow down your issue:

    1. Can the operation on the UI be successful? Is there any error message on the page?
    2. Are all page/web parts unable to be successfully published/added?Does it work on other sites?
    3. What is the user's permission level?
    4. You could also do an IISRESET to see what happens.

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. sadomovalex 3,626 Reputation points
    2021-06-03T15:02:30.963+00:00

    does it happen on one specific publishing page or on all pages? If it happens on 1 page try to add "?contents=1" to the url of this page and load it - it will open Web Parts Maintenance page. On this page check what web parts are added on the page currently. It looks like something is wrong with image renditions - so if there is some image web part on the page you may try to remove it from Web Parts Maintenance page (which is opened when) and load page after that.

    0 comments No comments