since ‎21-09-2018
‎16-04-2021
Jeanmaradiaga
Level 1
Re: What could cause a ReferenceError ContextHub is not d...
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
That makes sense if nothing is wrong then I'll suggest adding this error to a false positive list. Thanks for the help 🙂

Views

45

Likes

0

Replies

0
Re: What could cause a ReferenceError ContextHub is not d...
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
Do you have any suggestions? We have been having this same issue for around 4 years now. No one has come close to identifying why or how it is happening.

Views

54

Likes

0

Replies

0
Re: What could cause a ReferenceError ContextHub is not d...
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
Hello @asutosh_3 I went to my site's URL and it did render the JavaScript correctly (albeit minified, but that's okay). This error is really not having any negative effect on the site, it is just being logged multiple times a day. Could this just be a false positive caused during the page loading process?

Views

65

Likes

0

Replies

0
What could cause a ReferenceError ContextHub is not defined
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
My project is using Bugsnag to catch errors in our AEM site, one recurring error is:ReferenceError/enContextHub is not defined The stack trace shows the following sequence of events: XMLHttpRequest succeededDOMContentLoaded Page LoadedPage ShownReferenceError: ContextHub is not defined [ { "file": "https://www.site.com/etc/cloudsettings.kernel.js/conf/global/settings/cloudsettings/company/contexthub", "method": "Object.", "lineNumber": 348, "columnNumber": 78 }, { "file": "https://www.site.com/e...

Views

92

Likes

0

Replies

7
Re: AEM 6.3 - Automatic download from DAM via link.
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
Thanks!

Views

89

Likes

0

Replies

0
AEM 6.3 - Automatic download from DAM via link.
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
Is there an easy way to automatically download a file (like a PDF) using the DAM's location in a anchor tag? For example: Download instructions here It seems like something that would be fairly common but clicking the link takes me to the DAM itself, where I have to first login and then find the donwload button and click it.

Views

102

Likes

0

Replies

3
Re: AEM 6.3: Bad Request when replacing dot in selector f...
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
After checking the logs I found this error: [core:error] [pid 20651:tid 139675540870912] [client 10.73.0.60:44460] AH00126: Invalid URI in request GET /en/product-details/product-name HTTP/1.1 I think what's happening is that I need the actual page path meaning /content/mysite/en.shop-details bla bla

Views

141

Likes

0

Replies

0
Re: AEM 6.3: Bad Request when replacing dot in selector f...
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
.

Views

146

Likes

0

Replies

0
Re: AEM 6.3: Bad Request when replacing dot in selector f...
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
.

Views

147

Likes

0

Replies

0
AEM 6.3: Bad Request when replacing dot in selector for slash
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
I am trying to make my product details page have the following format: https://stage.aemsite.com/en/product-details/some-product We use selectors for our product details so I understand AEM won't be able to interprete this, my idea was to use the dispatcher to allow a passthrough to the correct format https://stage.aemsite.com/en/product-details.some-product, but this is resulting in a bad request. I tested this on https://technicalseo.com/tools/htaccess/ and it should technically work. RewriteC...

Views

180

Likes

0

Replies

4
Re: ReferenceError: Can't find variable for clientlib ini...
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
Hi Anudeep, thanks for the reply. The reason we're doing like so is because we needed to be 100% sure that the scripts are not executing until the page has loaded. Ideally we don't want to copy the code to check for this on every component, thus why we attach it to the windows object. Do you think there any feasible workaround that satisfies both requirements? (getting rid of the error and not repeating the code)

Views

212

Likes

0

Replies

0
Re: ReferenceError: Can't find variable for clientlib ini...
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
Thanks, that makes sense.

Views

215

Likes

0

Replies

0
ReferenceError: Can't find variable for clientlib initialization
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
We have multiple components with custom javascript, the way we include this clientlibs is by adding a script tag to the component's html file. window.bootstrap_component(function() { init_component_name(); })In our head.html we define the function bootstrap_component like so: window.bootstrap_component = function (handler) { if (typeof handler === 'function') { if (document.readyState === "complete" || document.readyState === "loaded" || document.readyState === "interactive") { handler(); } else { document.addEventListener("DOMContentLoaded", function() { handler(); }); } } } This works just fine but for the past two years we have been getting bugs on and off from Bugsnag that say: ReferenceError: Can't find variable: init_component_name The pages where this errors are reported work just fine, checking the browser console or the error logs from AEM has reveal...

Views

232

Likes

0

Replies

4
AEM 6.3 - Targeting wrench not showing in Touch UI for a specific region.
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
When I try to target a component for a specific region the wrench icon to open the dialog is not showing up. There are no error in the logs and the component is allowing to be edited for different regions, is there anything I could try to troubleshoot this? Thanks,J

Views

929

Likes

0

Replies

1
Re: AEM Targeting (Contexthub) - Avoid default context to 'flash'
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
Another good resource: https://docs.adobe.com/content/help/en/target/using/implement-target/client-side/at-js/manage-flicker-with-atjs.html and Flicker Problem

Views

460

Like

1

Replies

0
Re: AEM Targeting (Contexthub) - Avoid default context to 'flash'
Avatar

Jeanmaradiaga

Jeanmaradiaga
- Adobe Experience Manager
You can be finding da ways here: Authoring Targeted Content Using Targeting Mode

Views

458

Likes

0

Replies

0
Likes given to
Likes from