Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

6.5: cannot add any components (custom/built-in) to pages

jayv25585659
Level 6
Level 6

background info: we are in the process of upgrading to 6.5 on an AMS hosted environment. They provided a sandbox area for us so we can test our custom code.

problem: After merging our 6.4 and 6.5 code base, I cannot add components anymore.

When clicking on a component, all I get is this:

Screen Shot 2021-01-22 at 5.12.25 PM.png

I also cannot drag-and-drop components anymore.

I'm looking for suggestions on what files/configs to check.

1. I checked the error and project logs but nothing related jumps out.

2. I fixed an NPE error in our custom code (which seems to be unrelated) and reinstalled the new package and it didn't fix it.

Thank you.

 

edit1: I started encountering this issue in local which could be related to the issue with the AMS sandbox environment.

edit2: Seems my local and AMS sandbox is fixed after reinstalling the package. The weird thing with local is that if I had to restart my computer for whatever, I get the problem but if I reinstall our custom package, it starts working again.

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

Addition to allow components in the parsys, the issue could be with your page component dialog overlays. The dialog structure of OOTB page component is changed in 6.5 so when you overlay, you have to follow the same structure.


you can delete the dialog from your project page component and verify if this is the cause.

View solution in original post

6 Replies
Suraj_Kamdi
Community Advisor
Community Advisor

@jayv25585659 It might be possible that there no policy configured to allow components inside the layout container.

Go to the edit template option and check if the policy for the respective layout container is defined or not.

Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

Addition to allow components in the parsys, the issue could be with your page component dialog overlays. The dialog structure of OOTB page component is changed in 6.5 so when you overlay, you have to follow the same structure.


you can delete the dialog from your project page component and verify if this is the cause.

View solution in original post

jayv25585659
Level 6
Level 6
I started encountering this issue in local which could be related to the issue with the AMS sandbox environment.Seems my local and AMS sandbox is fixed after reinstalling the package. The weird thing with local is that if I had to restart my computer for whatever, I get the problem but if I reinstall our custom package, it starts working again.
Arun_Patidar
Community Advisor
Community Advisor
If you restart the machine or AEM instances the bundles restart as well, and when you reinstall package that will reinstall the bundle, this is just a guess, you can try restarting bundle after starting AEM, to find out if the bundle is creating some issues.