AEM Template editor & Experience Fragments | Community
Skip to main content
Murali89
New Participant
February 19, 2018
Solved

AEM Template editor & Experience Fragments

  • February 19, 2018
  • 2 replies
  • 3707 views

I m trying to create a new template using  template editor which includes experience fragments in the header and footer pointing to appropriate experience fragment content.

But in structure mode of the template i see an error saying "ERROR An error occurred, please check the browser console for more details." And in the broswer console i see below error

Handler of component is invalid -> TypeError: Cannot read property 'actions' of undefined

    at eval (eval at ns.util.sanitizeCQHandler (http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.js:6860:23), <anonymous>:1:37)

    at Object.ns.util.sanitizeCQHandler (http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.js:6860:23)

    at Object.<anonymous> (http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.js:8625:42)

    at Function.each (http://localhost:4502/etc.clientlibs/clientlibs/granite/jquery.js:370:19)

    at classDefinition.constructor._loadConfig (http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.js:8614:15)

    at classDefinition.constructor.updateConfig (http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.js:8654:22)

    at http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.js:28173:26

    at Array.forEach (<anonymous>)

    at Array.ns.editables.self.add (http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.js:28162:23)

    at Array.ns.editables.self.set (http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.js:28303:18)

(anonymous) @ core.js:20376

I see everything else i wish is working fine i.e content is getting rendered fine in initial content mode, but just that i see this error in the console.@

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

This issue can be resolved by embeding the clientlib 'cq.authoring.editor.plugin.experiencefragments' to template editor clientlib @ /libs/cq/gui/components/authoring/editors/clientlibs/sites/template

I raised a JIRA ticket with AEM product team already to validate and incorporate the fix to product code.

Regards,

Anoop

2 replies

smacdonald2008
New Participant
February 26, 2018

Thank you for posting that.

anoopr2551022Accepted solution
New Participant
February 26, 2018

This issue can be resolved by embeding the clientlib 'cq.authoring.editor.plugin.experiencefragments' to template editor clientlib @ /libs/cq/gui/components/authoring/editors/clientlibs/sites/template

I raised a JIRA ticket with AEM product team already to validate and incorporate the fix to product code.

Regards,

Anoop