Undefined Javascript Errors when Creating a Page Template

Avatar

Avatar
Validate 1
Level 1
grantclevyr
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
grantclevyr
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
grantclevyr
Level 1

07-07-2021

I am not able to create page templates on a fresh install of AEM 6.5. I create the page and go to the Structure section to build the page structure. Nothing loads in the component panel or on the page structure and there are 2 errors in the console.

contexthub:442 Uncaught TypeError: Cannot read property 'externalize' of undefined

structure.html:95 Uncaught TypeError: window.injectContextHubUI is not a function

 

I've also ran into this type of error saying Handlebars can't be found. Any idea what is going on here? This is a fresh install of the AEM jar file, locally.  

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 6
Bhuwan_B
Level 6

Likes

133 likes

Total Posts

125 posts

Correct reply

50 solutions
Top badges earned
Validate 1
Affirm 50
Give Back 5
Boost 100
Give Back 3
View profile

Avatar
Validate 1
Level 6
Bhuwan_B
Level 6

Likes

133 likes

Total Posts

125 posts

Correct reply

50 solutions
Top badges earned
Validate 1
Affirm 50
Give Back 5
Boost 100
Give Back 3
View profile
Bhuwan_B
Level 6

07-07-2021

Answers (4)

Answers (4)

Avatar

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

114 likes

Total Posts

136 posts

Correct reply

40 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

114 likes

Total Posts

136 posts

Correct reply

40 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile
Dipti_Chauhan
Level 6

07-07-2021

Please see if this helps : https://github.com/adobe/aem-project-archetype/issues/107

 

Thanks

Dipti

Avatar

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

63 likes

Total Posts

57 posts

Correct reply

8 solutions
Top badges earned
Establish
View profile

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

63 likes

Total Posts

57 posts

Correct reply

8 solutions
Top badges earned
Establish
View profile
kchaurasiya
Level 4

07-07-2021

@grantclevyr : Just check your template structure in the conf if you are creating the page from your own custom template and template type then There might be some issue in the structure. If you have created custom template then You can refer the below link to cross check your template type and template whether you have created correctly or not.

 

Step-by-step guide to create dynamic template and type.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/create-a-new-custom-templa... 

 

Thank You. 

Keshav

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,318 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,318 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

07-07-2021

Are you using contexthub?
If you don't then you can remove the reference of contexthub from clientlibs in your page component and then retry?

Avatar

Avatar
Affirm 5
Level 3
Rajashankar
Level 3

Likes

19 likes

Total Posts

35 posts

Correct reply

8 solutions
Top badges earned
Affirm 5
Boost 10
Affirm 3
Ignite 1
Validate 1
View profile

Avatar
Affirm 5
Level 3
Rajashankar
Level 3

Likes

19 likes

Total Posts

35 posts

Correct reply

8 solutions
Top badges earned
Affirm 5
Boost 10
Affirm 3
Ignite 1
Validate 1
View profile
Rajashankar
Level 3

07-07-2021

Hi @grantclevyr  How are you creating page template. Are you selecting from existing template type which is page-content and creating a custom page template? Are you able to create page using existing OOB page template that comes along with your archetype deployment?

 

Regards