Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

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

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 2

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.