Page unlock option not working


Experience Manager

When trying to lock/unlock a page via the page sidebar Image 1, a user is only able to lock it. When they try to unlock it, they see the error Image 2, and the page cannot be unlocked.
However, they can lock/unlock the page successfully when trying via the site admin console 3.


Image 1



Image 2



Image 3


The error 1 when unsuccessfully trying to unlock a page appears because the page doesn’t include the cq.shared client lib.

To fix this, the user needs to put a dependency on the clientlibs mentioned above to have it loaded for their custom content page.


Uncaught TypeError: Cannot read properties of undefined (reading 'shared')
at HTMLButtonElement.unlockPage (
at HTMLDocument.dispatch (
at h.handle (

On this page