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

SOLVED

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

mchag
Level 2
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
Peter_Puzanovs
Correct answer by
Community Advisor
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
Peter_Puzanovs
Correct answer by
Community Advisor
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

mchag
Level 2
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.