Code macro and status macro popup window is frozen and in endless loading status.
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Trying to open Status Macro or Code macro will result in a popup window being frozen and in endless loading.
Environment
Confluence 7
Diagnosis
Browser console logs are showing "AJS.clone is not a function".
In atlassian-confluence logs, nothing is visible.
The browser network tab is showing no problems, all requests are loading with 200.
In Confluence Administration > Manage addons we can see a few add-ons that are incompatible with Confluence, like Numbered Headings 3.0.2 from Avisi B.V.
Cause
Old addons, that are incompatible with Confluence might use some deprecated javascript functions that can cause an issue like this.
Solution
Disable the incompatible add-ons (like Numbered Headings 3.0.2 from Avisi B.V), and refresh the page.