HTL/Sightly templates (page) and components not compiling/rendering | Community
Skip to main content
geoffreym935937
Level 2
Feb 22, 2017 6:53 AM UTC

HTL/Sightly templates (page) and components not compiling/rendering

When I create a new HTL template (page)/component or edit an existing one, it does not compile/render. The page just gets stuck perpetually loading. Switching to "Development Mode" in "Apache Sling Scripting Sightly Engine Configuration" worked to render it once, but not again.

Does anyone know why this would be occurring?

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

12 replies

geoffreym935937
Level 2
Mar 16, 2017 11:08 PM UTC

This was not solved, creating a sub-directory "2017" in the component sub-directory "page" (/apps/site/components/page/2017) still causes the compiler to crash.

I simply worked around this issue by creating a new single level component sub-directory for my components "page2017" (/apps/site/components/page2017).

Translate
Feike_Visser1
Employee
Mar 17, 2017 6:49 AM UTC

Are you using AEM6.1 or AEM6.2?

Can share you a code-package where we can see the issue?

Translate
geoffreym935937
Level 2
Mar 20, 2017 12:47 AM UTC

I am using AEM 6.2. I will make a package as soon as I get a chance, but I assume that means you cannot reproduce it simply by having the template component two sub-directories deep in the components directory, as described above?

Translate
kautuk_sahni
Employee
Feb 22, 2017 9:19 AM UTC

Any error in error.log or browser console?

~kautuk

Translate
Kautuk Sahni
geoffreym935937
Level 2
Feb 22, 2017 11:09 PM UTC

I can't see anything in the error.log and there is nothing in console.

I came in this morning and both test templates compiled. I made a change to one which it compiled again, and then I made another change to it and it stopped compiling.

Translate
Var
Level 4
Feb 23, 2017 1:04 AM UTC

Geoffrey McIntyre wrote...

I can't see anything in the error.log and there is nothing in console.

I came in this morning and both test templates compiled. I made a change to one which it compiled again, and then I made another change to it and it stopped compiling.

 

can you try restarting Apache Sling Scripting Sightly Engine (org.apache.sling.scripting.sightly) bundle.?

~ VAr

Translate