Corrupted Page Templates App

Siavash Mortazavi asked on June 4, 2018 15:41

I have witnessed corrupted Page Templates app on a few Kentico websites, , which shows a repeating end-less list... It's hard to explain, please see the image below:

https://drive.google.com/file/d/1-rOIPoU54Py2uwXcZ-k1NRpcSGLaxh4q/view

This screenshot is for a Kentico 8.1 website. I've tried all browsers, and the same problem exists, but each one handles it differently. For example Chrome shows the repeating list a few times, then the whole page freezes.

I thought it's a known issue, but I cannot find any articles/solutions for it. Can anyone help on this please?

Recent Answers


Brenden Kehren answered on June 4, 2018 15:52

I'd highly recommend checking the base Kentico files to ensure they haven't been modified. If you've done an upgrade recently, you will want to clear your cache on the browsers and restart your local IIS if you're running locally.

0 votesVote for this answer Mark as a Correct answer

Siavash Mortazavi answered on June 4, 2018 15:59

Thanks @Brenden for the quick reply. Restarting IIS and clearing browser cache didn't help. So, as you're suggesting, maybe base Kentico files are corrupted. How would you fix such a thing? Install a brand new Kentico instance of the same version, grab its files and copy them over the corrupted site?

Thanks, Sia

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 4, 2018 16:14 (last edited on June 4, 2018 16:14)

Are you only having problems on that page or other pages too? Is there anything in the event log? You can copy the files but I'd suggest only comparing or coping the files needed and not quite all the files yet.

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on June 4, 2018 16:19

How did you get to this point? Upgrade or copied files? Can you check event log application and see if there are errors? How about Macro signature?

0 votesVote for this answer Mark as a Correct answer

Siavash Mortazavi answered on June 4, 2018 16:20

In the last round of trial, this problem didn't generate any event log errors, but I can see many of these errors in the log. Do you think this might be the cause?:

Unexpected error occurred in API call to Controller: CMS.ApplicationDashboard.ApiControllers.LiveTileController, Action: Get Message:

WITH AllData AS ( SELECT *, ROW_NUMBER() OVER (ORDER BY ContactLastName) AS [CMS_RN] FROM OM_Contact WHERE [ContactSiteID] = @ContactSiteID AND [ContactCreated] > @ContactCreated ) SELECT , (SELECT COUNT() FROM AllData) AS [CMS_TOT] FROM AllData WHERE CMS_RN BETWEEN 1 AND 1 ORDER BY CMS_RN

Caused exception: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

Exception type: System.Exception Stack Trace: at CMS.Base.LockObject.EnterRead[OutputType](OutputType& output) at CMS.Helpers.CachedSection1.EnterLock(TData& result) at CMS.Helpers.CacheHelper.Cache[TData](Func1 loadMethod, CacheSettings settings) at CMS.ApplicationDashboard.ApiControllers.LiveTileController.Get(Guid guid) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.b__c(Object instance, Object[] methodParameters) at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)

0 votesVote for this answer Mark as a Correct answer

Siavash Mortazavi answered on June 4, 2018 16:23

@Rui please see my entry above for the event log. This website is inherited, and I don't know its history of updates.

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on June 4, 2018 16:50

No, the above error has something to do with online marketing as it's selecting from OM_Contact table.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 4, 2018 19:43

If the query is timing out on the OM_Contact table, then you might want to check the OM_Contact table and see how many contacts are in there. My guess is the contacts were turned on but never cleaned up. SO you'll want to do a few things:

  • Turn contact tracking off if you're not tracking them (do this after you perform a cleanup of all your contacts)
  • Do a cleanup of the contacts by going into Settings>On-Line Marketing>Contact Management>Inactive Contacts and make sure that's set to your need for the organization.

After you've cleaned up the contacts and made sure the settings are proper, it should fix your error you mentioned above. V8.x was not really optimized for a lot of contacts and had some bugs around contact tracking so this should help get cleaned up and in the right direction, probably won't fix your issue with the templates though.

0 votesVote for this answer Mark as a Correct answer

Siavash Mortazavi answered on June 4, 2018 20:13

Thank you for the guidelines, and yes, I really doubt this is related to my template issue. Still, I may be able to optimize the site, a little bit, or a lot! :D

0 votesVote for this answer Mark as a Correct answer

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