Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Tag component not working properly in Publish Instance

Avatar

Level 2

We are re-using the out-of-box tag component which is already available inside the /libs/foundation/component/forms folder.  

In Author mode, everything is working fine as expected but when it comes to Publish mode the fields associated with tag component are not getting displayed to perform the tagging operations.

Moreover, when I checked for the errors available in the console of the browser. I'm getting the below error

Uncaught TypeError: Cannot read property 'TagInputField' of undefined

Please check the attachment - I have added the screenshot of the issue I'm facing

Kindly help me out in resolving the issue.

1 Accepted Solution

Avatar

Correct answer by
Level 9

From Administering Tags : Setting Tag Permissions :

"As of AEM 6.1, 'secure (by default)' is now a best practice for the publish environment that requires read permission to be explicitly allowed for tags.  Bascially, this is done by creating a package of the Tag Namespace after permissions have been set on author, and installing the package on all publish instances."

- JK

View solution in original post

4 Replies

Avatar

Administrator

Hi 

Please have a look at this forum post, i hope this could help you.

Link:- https://forums.adobe.com/thread/1188441?tstart=0

I would request you to also look at error.log to further debug this.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 2

I have looked at the error.log there is nothing wrong/peculiar with respect to the tagging component.

Everything seems to be fine

Please check the attachment on the type of error I'm getting when the link is being clicked

Avatar

Level 2

ShyamSundar wrote...

We are re-using the out-of-box tag component which is already available inside the /libs/foundation/component/forms folder.  

In Author mode, everything is working fine as expected but when it comes to Publish mode the fields associated with tag component are not getting displayed to perform the tagging operations.

Moreover, when I checked for the errors available in the console of the browser. I'm getting the below error

Uncaught TypeError: Cannot read property 'TagInputField' of undefined

Please check the attachment - I have added the screenshot of the issue I'm facing

Kindly help me out in resolving the issue.

 

I have looked at the error.log there is nothing wrong with respect to the tagging component. Everything seems to be fine.
Please check the attachment on the type of error I'm getting when the link is being clicked

Does anyone have faced a similar kind of an issue and any suggestions on how to troubleshoot the issue.

Kindly let me know

Thanks

Avatar

Correct answer by
Level 9

From Administering Tags : Setting Tag Permissions :

"As of AEM 6.1, 'secure (by default)' is now a best practice for the publish environment that requires read permission to be explicitly allowed for tags.  Bascially, this is done by creating a package of the Tag Namespace after permissions have been set on author, and installing the package on all publish instances."

- JK