Expand my Community achievements bar.

SOLVED

Unable to add components to page

Avatar

Level 4

Hi ,

I am unable to add component to page even the components are allowed in design mode. The add component symbol(+ symbol) itself is not appearing . I can see only experience fragment symbol.

1625621_pastedImage_0.png

Also please see the screenshot  ,it is generating some error in the console log.

NOTE : I am trying to add the components using proper privileges but still no luck.

Please let me know if any idea on this issue.

Thanks,

Pallavi

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi ,

The repository was corrupted.
So we restored using a backup.
It started to work !!

Thanks !

View solution in original post

12 Replies

Avatar

Level 10

WHat AEM version are you using. You mentioned Design mode - which seems to be an older AEM version. 

Avatar

Level 4

I am using AEM 6.4 version.
Recently we got migrated from AEM 6.2 to AEM 6.4 version.

Avatar

Level 10

Design mode works with projects that use static templates. Projects built wiht Editable Templates use policies - not Design mode to specify what components can be used on a page. If you are not familar with Editabel Templates - see:

Scott's Digital Community: Guided Journey for Experience Manager on Editable Templates

Now for your problem - are you seeing error messages in the log? Can you add components to the We Retail site?

Avatar

Level 1

Hi,

I am also facing the same issue in Editable templates. I have set the policy to allow the components. But I am not able to add the component in the page.

 

ss.png

 

 

Drag and Drop functionality or "+" icon is not there in the toolbar. This is also happening in the we-retail site.

The same page is working in different environment as well as on my local instance.

 

 

Avatar

Level 4

smacdonald2008​ :

Thanks for the link . Yes we are using static templates.

We are seeing the following error :
1625642_pastedImage_0.png

error in indexed-db adapter !


This issue is observed in one of environment where we dont have the sample content.

Avatar

Community Advisor

Is this working in your local ?

Avatar

Community Advisor

There should be some issue with the env then . Is all the bundles in system console active ? Not your project alone, but almost all bundles should be in active state.

Avatar

Level 4

@veena_07 :

Yes all bundles are in active state.

Avatar

Community Advisor

Cannot really say what the issue with limited information. Somebody should check what is happening with your server I believe

Avatar

Level 4

@veena_07 & smacdonald2008​ :

 

I was able to get some logs .Please find the below logs :

 

js uses the deprecated asynchronous API provided by the 'granite' namespace. Please refactor the script to use the synchronous API provided by the org.apache.sling.scripting.javascript bundle.

 

 

20.11.2018 00:37:02.863 *WARN* [10.80.184.201 [1542692222347] GET /content/test/abc.html HTTP/1.1] org.apache.sling.scripting.sightly.js.impl.jsapi.ProxyAsyncScriptableFactory Script /libs/wcm/foundation/components/page/headlibs.js uses the deprecated asynchronous API provided by the 'granite' namespace. Please refactor the script to use the synchronous API provided by the org.apache.sling.scripting.javascript bundle.

 

 

 

org.apache.sling.scripting.sightly.js.impl.jsapi.ProxyAsyncScriptableFactory Script /libs/wcm/foundation/components/page/body.js uses the deprecated asynchronous API provided by the 'granite' namespace. Please refactor the script to use the synchronous API provided by the org.apache.sling.scripting.javascript bundle.

 

Avatar

Correct answer by
Level 4

Hi ,

The repository was corrupted.
So we restored using a backup.
It started to work !!

Thanks !