Client context isn't there + component doesn't show up when dragged and dropped

Avatar

Avatar

paro22

Avatar

paro22

paro22

15-10-2015

Hi,

I copied over a website from a co-worker to my CQ instance (5.6.2 I think) and I have the problem that I can neither see the client context (+ shortcut doesn't do anything), nor does the component work that I'm supposed to fix. It shows up in the list but when I drag it onto the page it doesn't show up (it does appear as a JCR node though). Not sure if these problems are even related but I know that both things work on my colleagues machine. 

I realize you guys can probably not help me without further information, but could you tell me a general approach in AEM to tackle these kind of things? Like on machine A it works, on machine B it doesn't. Is there some kind of logs or console etc. I should check? I'm new to this so any help is much appreciated!

Thanks,

Paul

 

// Edit:

I see two js error messages that I think could possibly be related to my client context issue, what do you think?

Uncaught TypeError: undefined is not a function (legacy.js:25)

CQ_Analytics.SessionStore(); --> CQ_Analytics doesn't seem to have this funciton

Uncaught TypeError: Cannot call method 'addListener' of undefined (widgets.js:35)

CQ_Analytics.ClickstreamcloudMgr.addListener --> ​CQ_Analytics.ClickstreamcloudMgr is not defined

View Entire Topic

Avatar

Avatar

paro22

Avatar

paro22

paro22

15-10-2015

Thanks Sham HC for the link, that really did get rid of that particular error in the logs.

 

@Johan:

I basically imported a ZIP package and installed it, didn't modify the clientlib configuration at all. 

Those javascript errors (see initial post) are the only ones I get. When I add ?debugClientLibs=true to the URL it's these:

  1. Uncaught TypeError: undefined is not a function twitterprofiledata.js:25
  1. Uncaught TypeError: undefined is not a function fbprofiledata.js:25
  1. Uncaught TypeError: undefined is not a function fbinterests.js:22
  1. Uncaught TypeError: Cannot call method 'addListener' of undefined twitterprofiledata.js:23
  1. Uncaught TypeError: Cannot call method 'addListener' of undefined ClickstreamStore.js:10

I honestly don't have a good idea of where to even start looking for the missing includes. It looks like the 'CQ_Analytics' isn't fully included.

Not sure I understand your last question, but as far as I can see it's still included. This is from the body.jsp:

<!-- to use SITECATALYST --> <cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext"/> <cq:include script="header.jsp"/> <cq:include script="content.jsp"/> <cq:include script="footer.jsp"/> <!-- to use SITECATALYST --> <cq:include path="cloudservices" resourceType="cq/cloudserviceconfigs/components/servicecomponents"/> <cq:include script="footlibs.jsp"/>

Thanks!

Paul