Header and Footer get Duplicated

vinod kumar asked on May 1, 2020 01:08

We are facing an issue where sometime on one of the Kentico server, page renders with duplicate header and footer. This happens very intermittently but on all the Kentico pages.

This is using Kentico version 9 and uses portal engine approach. In this one we have created a master page template with a placeholder for pagecontent as below:

<%@ Control Language="C#" AutoEventWireup="true" Inherits="CMSWebParts_General_pageplaceholder"  CodeFile="~/CMSWebParts/General/pageplaceholder.ascx.cs" %>
<asp:Label ID="lblError" runat="server" EnableViewState="false" Visible="false" CssClass="ErrorLabel" />
<cms:CMSPagePlaceholder ID="partPlaceholder" runat="server" ShortID="p" />

Generally, every page render like below:

  • Master page data above this placeholder
  • Page
  • Master page data below this placeholder

But what we are seeing in sometime below:

  • Master page data above this placeholder
  • Master page data above this placeholder
  • Page
  • Master page data below this placeholder
  • Master page data above this placeholder

On looking at the generated html it was evident that this placeholder has started adding duplicate content.

What we also observed that this issue get auto- resolved after 60 minutes, which is nothing but our cache setting

Recent Answers


Brenden Kehren answered on May 1, 2020 21:16

This is most likely an issue with a page template and how it is inheriting the parent pages template(s).

If you believe it to be cache related, make your change and save. Then go to the System app and clear the cache manually.

0 votesVote for this answer Mark as a Correct answer

vinod kumar answered on May 4, 2020 01:01

Thanks Brenden. I will try to update and see. But what we also observed that it does auto heal after cache expire of 60 minutes.

0 votesVote for this answer Mark as a Correct answer

vinod kumar answered on June 22, 2020 05:50

Did tried on disabling the output cache and reducing it to 10 minutes. Still it is occurring some time. Any suggestion would be really helpful.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.