Expand my Community achievements bar.

Suspend CTA not working live copy and Inherit Rollout Configs from Parent checkbox value not getting updated 6.5

Avatar

Level 2

Hi Everyone, 

"The 'suspend' link present on the 'Live Copy' tab in page properties doesn't perform any action when clicked. Ideally, upon clicking 'suspend,' two options should appear: 'suspend' and 'suspend with children.'
Additionally, there is a checkbox present on the tab labeled 'Inherit Rollout Configs from Parent.' However, upon unchecking it, the value is not retained, and upon reload, it appears as checked."

AasishJain_0-1707894459074.png


AEM version : (6.5.18.0)


@kautuk_sahni 

6 Replies

Avatar

Community Advisor

Hi @AasishJain 

All the properties are inherited from the OOTB path below:
/libs/wcm/foundation/components/basicpage/v1/basicpage/tabs/livecopy/items/column/items/configuration

Please see if anyone has overridden the path and the configuration node might have been removed from the /apps path so it's not showing on the page. Once you add it back it, you should be able to see the configuration tab on all the pages.

 

Here is a link for more info about live copy: https://experienceleague.adobe.com/docs/experience-manager-64/administering/introduction/msm-livecop...
https://docs.mktossl.com/docs/experience-manager-cloud-service/content/sites/administering/reusing-c... 



Avatar

Level 2

Thanks Raja for the insight. 
But the path is not overridden. We are inheriting it from the libs.

Avatar

Community Advisor

Hi @AasishJain 

  1. Check for custom code or overlays: Verify if there are any custom code or overlays that might be affecting the behavior of the Live Copy tab. Look for any custom JavaScript or CSS files that could be conflicting with the default functionality. Disable or remove any customizations temporarily to see if the issue is resolved.

  2. Clear the AEM cache: Clear the AEM cache to ensure that any cached data related to the Live Copy tab is refreshed. You can do this by navigating to the AEM Web Console (http://localhost:4502/system/console) and selecting "Cache" from the left-hand menu. Then, click on "Clear All Caches" to clear the cache.

  3. Verify permissions: Ensure that the user has the necessary permissions to perform actions on the Live Copy tab. Check the user's permissions for the specific page and the Live Copy functionality. Make sure that the user has the appropriate permissions to suspend and modify Live Copies.

  4. Check for conflicting configurations: Look for any conflicting configurations that might be causing the issue. Check if there are any custom configurations or workflows that are overriding or conflicting with the default behavior of the Live Copy tab. Review any custom configurations related to Live Copy and ensure they are correctly set up.



Avatar

Level 2

Thanks for your input raja,

I have figured out the root cause. Its because of the "cq.authoring.dialog" category that we are adding in the clientlbs. And our js + this category is breaking the suspend functionality. 

1. If i remove the category from the clientlibs, the suspend functionality starts working perfectly.
2. I looked at the js and we are using $(document).ready(function ()  and if update it to window.onload =function() 
the suspend functionality works with the category present.

Any clue, what we can do here. Any better alternative for $(document).ready(function () ???

@Raja_Reddy @kautuk_sahni 

Avatar

Community Advisor

Hi @AasishJain 

`$(document).ready(function ()` is a jQuery function that waits for the DOM to be fully loaded before executing the code inside the function. `window.onload` is a vanilla JavaScript function that waits for the entire page to be loaded, including images and other external resources.

If updating to `window.onload` works for you, then that's a good solution. Another alternative is to use the jQuery shorthand for `$(document).ready(function ()`, which is `$(function() { ... });`. This is functionally equivalent to `$(document).ready(function ()`.

However, if you need to use `cq.authoring.dialog` category in your clientlibs, you may need to investigate why it is causing issues with the suspend functionality. It's possible that there is a conflict with another library or script that is being loaded.
https://learn.jquery.com/using-jquery-core/document-ready/ 



Avatar

Level 2

I have found the root cause and its solution to this issue. This issue was coming becasue  jquery was embeded in clientlibs. On changing the embed to dependency, the suspend cta started working as expected. 

Thanks