내 커뮤니티 업적 표시줄을 확대합니다.

Get ready! An upgraded Experience League Community experience is coming in January.
해결됨

Console error after deployment on AEM 6.5 with service pack 20 and forms package

Avatar

Level 3

Hi,

 

I am facing an issue where I am seeing a lot of console errors on loading any page, as soon as my custom code is deployed. As a result of which, when I load the custom components in the page, I see that the page height keeps on increasing.

I am using archetype 48 and is deployed in AEM 6.5.20 with forms package.

 

In my maven project, I am using Document services for rendering XDP to PDF. I am struggling to identify the root cause, I dont see any errors in error.log as well.

 

Kindly suggest/advice. Thank you in advance.

 

SmrithiGo_0-1720530803579.png

 

 

Regards,

Smrithi

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 3

HI @Lokesh_Vajrala , Thanks for your response.

 

Yes I have fixed the issue. The issue was with css height 100 that was implemented as part of a custom logic. On removing the height, the page height expansion stopped and the page is loading fine.

 

But I still see console errors related to contexthub, even on weretail website, after installing service pack 20 on AEM 6.5 vanilla instance. Yet to figure out the issue.

 

Thanks again for your support.

 

Regards,

Smrithi

원본 게시물의 솔루션 보기

2 답변 개

Avatar

Community Advisor

Hi @SmrithiGo 

 

There are two types of errors in the console as per the screenshot in the question.

One is linked to OOTB ContextHub - are you using the personalisation with ContextHub in your project?  Do you see the same errors in your website/project's content? We.retail website content may not be up to date to support the latest SP version. 

 

The other error in the console is a common Javascript error when code is executing an unknown variable or DOM element. You can look into the code where it is throwing the error and try to fix it. 

 

PDF Document Service should not be the reason for the page height expansion as it would run in the backend and not linked to the page or component. 

 

Thanks,

Lokesh

Avatar

정확한 답변 작성자:
Level 3

HI @Lokesh_Vajrala , Thanks for your response.

 

Yes I have fixed the issue. The issue was with css height 100 that was implemented as part of a custom logic. On removing the height, the page height expansion stopped and the page is loading fine.

 

But I still see console errors related to contexthub, even on weretail website, after installing service pack 20 on AEM 6.5 vanilla instance. Yet to figure out the issue.

 

Thanks again for your support.

 

Regards,

Smrithi