Expand my Community achievements bar.

SOLVED

AEM Template editor & Experience Fragments

Avatar

Level 3

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.@

1 Accepted Solution

Avatar

Correct answer by
Level 1

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 1

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