Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

ContextHub not initializing in AEM 6.4.5

Avatar

Level 2

Getting this error:

 

ContextHub UI is not initialized! Check your config.

 

 

The same exact setup works perfectly on my local instance, but not on this stage server and I don't know why. They're both running AEM 6.4.5.

Context, I used to get another error before which I attempted to fix:

 

ContextHubJQ is not defined

 

I posted the question here: https://stackoverflow.com/questions/61238503/contexthubjq-is-not-defined-error-aem-6-4-5-contexthub

 

I had to add a sly tag like this in my document head to fix most of the errors, but now I get that "check your config" error I mentioned.

 

<sly data-sly-call="${clientLib.js @ categories='contexthub.utils,contexthub.constants,contexthub.kernel,contexthub.polyfills,contexthub.finalize,contexthub.shared,contexthub.generic-stores,contexthub.config.override,contexthub.ui,contexthub.ui.inject'}" data-sly-unwrap/>

 

 

To be clear I have added these in the head already. The ContextHubPersistence store is in my browser localstorage and the Targeting menu is available in the AEM Author Editor. This means its partially working?? Not sure why CH isn't loading correctly.

 

<sly data-sly-call="${clientLib.js @ categories='granite.utils,granite.jquery'}"
     data-sly-unwrap/>

<sly data-sly-test="${!head.isPublic}" data-sly-resource="${'contexthub' @ resourceType='granite/contexthub/components/contexthub'}" />

 

 

- I also have CH segments enabled in my configuration for the project.

- I have CH UI enabled in the Adobe Granite ContextHub service (com.adobe.granite.contexthub.impl.ContextHubImpl)

- I have the CH configuration setup.

- My CH setup works perfectly on my local instance of AEM 6.4.5. This error is happening on our stage server.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies