Enforcement fees

Enforcement fees

An error occurred while processing the template.
The following has evaluated to null or missing:
==> serviceLocator.findService("uk.gov.camden.navigation.service.MultiPageArticleService")  [in template "20115#20151#ARTICLE-DISPLAY" at line 4, column 44]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign multiPageArticleService = ser...  [in template "20115#20151#ARTICLE-DISPLAY" at line 4, column 9]
----
1<#if SectionTitle.getSiblings()?has_content> 
2    <div class="multi-part-article"> 
3     
4    	<#assign multiPageArticleService = serviceLocator.findService("uk.gov.camden.navigation.service.MultiPageArticleService") /> 
5    	<#assign journalArticleId = .vars['reserved-article-id'].data/> 
6    	<#assign instanceIds = multiPageArticleService.getSectionInstanceIds(groupId,journalArticleId) > 
7     
8        <#list SectionTitle.getSiblings() as cur_SectionTitle> 
9         
10        	<#assign instanceId = instanceIds[cur_SectionTitle?index] > 
11         
12            <div id="multi_part_section_${cur_SectionTitle?index}" data-instance-id="${instanceId}" class="multi_part_section ${(cur_SectionTitle?index gt 0)?then('visually-hidden','')}"> 
13                 
14                <article> 
15                    <h2 class="section_title">${cur_SectionTitle.getData()}</h2> 
16                    <div class="sharethis-inline-share-buttons"></div> 
17                    <div class="section_content">${cur_SectionTitle.SectionContent.getData()}</div> 
18                </article> 
19                <nav class="pagination"> 
20                    <ul class="pagination__list"> 
21                     
22                        <#if cur_SectionTitle?index gt 0> 
23                        	<#assign previousInstanceId = instanceIds[cur_SectionTitle?index-1] > 
24                            <li class="pagination__item pagination__item--previous"> 
25                                <a class="pagination__link multi_part_nav_previous" tabindex="0" data-instance-id="${previousInstanceId}"> 
26                                    <strong class="pagination__label">Previous<span class="visually-hidden"> page</span></strong> 
27                                    <span class="pagination__meta-group"> 
28                                        <span class="pagination__icon icon icon-ui-arrow-left"></span> 
29                                        <span class="pagination__meta"> 
30                                            ${SectionTitle.getSiblings()[cur_SectionTitle?index-1].getData()} 
31                                        </span> 
32                                    </span> 
33                                </a> 
34                            </li> 
35                        </#if> 
36                         
37                        <#if cur_SectionTitle?has_next> 
38                        	<#assign nextInstanceId = instanceIds[cur_SectionTitle?index+1] > 
39                            <li class="pagination__item pagination__item--next"> 
40                                <a class="pagination__link multi_part_nav_next" tabindex="0" data-instance-id="${nextInstanceId}"> 
41                                    <strong class="pagination__label">Next<span class="visually-hidden"> page</span></strong> 
42                                    <span class="pagination__meta-group"> 
43                                        <span class="pagination__meta"> 
44                                            ${SectionTitle.getSiblings()[cur_SectionTitle?index+1].getData()} 
45                                        </span> 
46                                        <span class="pagination__icon icon icon-ui-arrow-right"></span> 
47                                    </span> 
48                                </a> 
49                            </li> 
50                        </#if> 
51                    </ul> 
52                </nav> 
53            </div> 
54        </#list> 
55     
56    </div> 
57</#if> 

Enforcing planning regulations - Related Page

An error occurred while processing the template.
The following has evaluated to null or missing:
==> serviceLocator.findService("uk.gov.camden.navigation.service.LayoutService")  [in template "20115#20151#PAGE-LIST-RELATED-PAGES" at line 4, column 42]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign layoutService = serviceLocato...  [in template "20115#20151#PAGE-LIST-RELATED-PAGES" at line 4, column 17]
----
1<#if LinkLabelFieldSet.LinkLabel.getSiblings()?has_content> 
2 
3	<#if serviceLocator??> 
4		<#assign layoutService = serviceLocator.findService("uk.gov.camden.navigation.service.LayoutService") /> 
5 
6		<div class="sidebar__section boxed boxed--primary related-pages"> 
7		    <h2 class="sidebar__heading"> 
8		        Related pages 
9		    </h2> 
10		 
11		    <ul class="sidebar__list list list--bullet"> 
12		        <#list LinkLabel.getSiblings() as cur_LinkLabel> 
13		         
14		        	<#assign  
15		        		url = cur_LinkLabel.InternalPage.getFriendlyUrl() 
16		        	/> 
17		        	<#assign displayLink = false/> 
18		        	 
19		        	<#if url?has_content > 
20							  <#assign internalPageDataJSONObject = jsonFactoryUtil.createJSONObject(cur_LinkLabel.InternalPage.getData()) /> 
21		        		<#assign layout = layoutService.getLayout(groupId,false, internalPageDataJSONObject.getLong("layoutId")) /> 
22		        		<#if layout.isPresent() && layoutService.hasGuestViewPermission(layout.get())> 
23        					<#assign label = layout.get().getName(locale) /> 
24        					<#assign displayLink = true/> 
25        				</#if> 
26		        	<#elseif cur_LinkLabel.ExternalURL.getData()?has_content> 
27		        		<#assign  
28		        			url = cur_LinkLabel.ExternalURL.getData()?ensure_starts_with("[a-zA-Z]+://", "http://") 
29		        			label = cur_LinkLabel.ExternalURL.getData() 
30		        			target = "_blank" 
31		        		/> 
32        				<#assign displayLink = true/>		        		 
33		        	</#if> 
34		        	 
35		        	<#if cur_LinkLabel.getData()?has_content > 
36		        		<#assign label = cur_LinkLabel.getData() /> 
37		        	</#if> 
38		        	 
39		        	<#if displayLink> 
40						<li class="list__item"> 
41			                <a class="list__link" href="${url}" target="${target!''}"> 
42			                    ${label} 
43			                </a> 
44			            </li> 
45		            </#if> 
46				</#list> 
47		         
48		    </ul> 
49		 
50		</div> 
51	</#if> 
52	 
53</#if>