Uncaught TypeError: Cannot read property 'userID' of null | Community
Skip to main content
January 23, 2017

Uncaught TypeError: Cannot read property 'userID' of null

  • January 23, 2017
  • 3 replies
  • 4351 views

I have the issue in AEM 6.1 touch UI. The page reports this error:

Uncaught TypeError: Cannot read property 'userID' of null

and

Uncaught TypeError: Cannot read property 'shared' of undefined

Annotation doesn't work. Lock feature works but Unlock doesn't work.

Please help!!!

Thanks a lot

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Peter_Puzanovs
Community Advisor
Community Advisor
February 24, 2017

Hit same rock, has anyone found solution to this?

Thanks,

Peter

Var
Level 4
February 24, 2017

Vuong Ho wrote...

I have the issue in AEM 6.1 touch UI. The page reports this error:

Uncaught TypeError: Cannot read property 'userID' of null

and

Uncaught TypeError: Cannot read property 'shared' of undefined

Annotation doesn't work. Lock feature works but Unlock doesn't work.

Please help!!!

Thanks a lot

 

Can you provide what are the steps you have performed for this, and what is the user (what are the permissions the user has) you are using for this activity.?

~VAr

Peter_Puzanovs
Community Advisor
Community Advisor
February 26, 2017

Create new custom template, do not include <sly data-sly-resource="${'clickstreamcloud" @ resourceType='cq/personalization/components/clickstreamcloud'/> and you get this error. Then editor.js get's the exception mentioned in the comment as $('iframe#ContentFrame').get(0).contentWindow.CQ.shared.User.data.userID is null indeeed.

Regards,

Peter

Level 2
March 24, 2017

Encountered the same issue! Were you able to fix it?

Level 2
March 28, 2017