Has any body ever faced the issue of 404 page rendered broken and throwing error Jquery or $ not found | Community
Skip to main content
mchag
Level 2
December 3, 2019
Solved

Has any body ever faced the issue of 404 page rendered broken and throwing error Jquery or $ not found

  • December 3, 2019
  • 2 replies
  • 3360 views

Issue Description :

The issue occurring when sling redirecting the user to 404 error page. The redirection is properly happening to custom 404 error page, but the page is broken completely (i.e css and java scripts not loaded) the in the console it is throwing error Uncaught ReferenceError: jQuery is not defined.

Please let me know if anybody has come across this kind of issue or what probably can cause this  kind of issue in AEM.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Peter_Puzanovs

Dear Mchag,

Looks like there is a problem including your clientlibs for this particular template.

Have a look at the templates that get invoked when you call 404 page and make sure it has correct and valid clientlibs included.

Regards,

Peter

2 replies

Peter_Puzanovs
Community Advisor
Peter_PuzanovsCommunity AdvisorAccepted solution
Community Advisor
December 3, 2019

Dear Mchag,

Looks like there is a problem including your clientlibs for this particular template.

Have a look at the templates that get invoked when you call 404 page and make sure it has correct and valid clientlibs included.

Regards,

Peter

mchag
mchagAuthor
Level 2
December 5, 2019

Thanks @PuzanovsP.

We are trying to debug in the same direction as you suggested. Why jquery is not loaded at point when other scripts required it.