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

ContextHub not initializing in AEM 6.4.5


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:


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'}"

<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 help categorize Community content and increase your ability to discover relevant content.

0 Replies