Uncaught ReferenceError: LC is not defined

  • 2
  • Problem
  • Updated 3 years ago
  • Solved
I'm receiving this error when trying to load a page include as part of a child page.  The page include is being used in conjunction with a queue.  
Photo of Ben Rose

Ben Rose

  • 222 Points 100 badge 2x thumb

Posted 3 years ago

  • 2
Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,006 Points 5k badge 2x thumb
Ben, You are going to have to provide more info.  Open Chrome Developer Tools and check out what is logged in the Console tab.

https://community.skuidify.com/skuid/topics/debug-javascript-tips-please

Also, screenshots would be good.
(Edited)
Photo of Ben Rose

Ben Rose

  • 222 Points 100 badge 2x thumb
Hi Irvin, thanks for the quick reply!  Here's what I'm, seeing when pulling up the page: http://screencast.com/t/sRi7aPKuaaS.  I should mention as well that this page include was working properly before I switched this to a child page.  
Photo of Anna Wiersema

Anna Wiersema

  • 10,890 Points 10k badge 2x thumb
Ben, is your page include page also a child page? That can cause problems. If it's not a child page, make sure "show salesforce header" and "show salesforce sidebar" are both disabled in page layout properties.
(Edited)
Photo of Ben Rose

Ben Rose

  • 222 Points 100 badge 2x thumb
Hi Anna, yes, both the page and page include are child pages.  The general idea of the page itself is to be a call through list, with a queue on one side, and a preview of the record detail on the other, using the page include.  It sounds like in order for this to work, I would need to have two versions of the record detail page?  One to stand alone, and another to use in a page include?  
Photo of Anna Wiersema

Anna Wiersema

  • 10,890 Points 10k badge 2x thumb
Yes that's the way to do it. You need to have a separate record detail page to use in the page include.   Although, if you want to be tricky you can use that page (the "page include") version that has no header or anything, and include it both on this queue page and in the page region on the detail page  (making your detail page just a glorified container for the page include). Does that make sense?

Child pages do not work as detail pages (at least in other child pages with the same parent) because the repeated content (especially headers and models) causes problems.
Photo of Ben Rose

Ben Rose

  • 222 Points 100 badge 2x thumb
So I've gone back and updated the page include to not be a child page, and made sure the header and sidebar are disable on the page include.  And I'm still running into this same error...
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Do you have any custom javascript running on your page?
Photo of JD Bell

JD Bell, Senior Product Engineer

  • 2,996 Points 2k badge 2x thumb
Ben,

I'm going to guess that you have the Chatter component on your page include. If that's the case, then you need to load chatter in with an iFrame. The Chatter component is not supported in Page Includes, popups or drawers for technical reasons related to VF component resource management.
Photo of Ben Rose

Ben Rose

  • 222 Points 100 badge 2x thumb
JD, that was exactly it!  Removing the chatter component or putting it in an iFrame fixed the problem.  Thanks everyone for your help!