S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing:
==> friendlyURLs[themeDisplay.getLanguageId()]  [in template "20097#20123#55826" at line 84, column 74]

----
Tip: It's the final [] step that caused this error, not those before it.
----
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: ${friendlyURLs[themeDisplay.getLangua...  [in template "20097#20123#55826" at line 84, column 72]
----
1<#if ( (themeDisplay.getLanguageId() == 'ca_ES'))> 
2<#assign Compártelo = 'Comparteix-lo' /> 
3 
4</#if> 
5<#if ( (themeDisplay.getLanguageId() == 'es_ES'))> 
6<#assign Compártelo = 'Compártelo' /> 
7 
8</#if> 
9<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
10<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
11<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
12<#assign article = JournalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data)> 
13<#assign asset = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', article.resourcePrimKey) > 
14<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
15<#assign assetLinks = assetLinkLocalService.getDirectLinks(asset.getEntryId()) /> 
16<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
17<#assign mytitle = .vars['reserved-article-title'].data> 
18<#assign minititle=(mytitle)> 
19<section class="rate-sec "> 
20  <div class="row"> 
21    <div class="col-lg-12"> 
22      <div class="text-box container"> 
23        <h1 data-lfr-editable-id="text1" data-lfr-editable-type="text"> 
24          BLOG 
25        </h1> 
26        <div class="breadcrumb-theme"> 
27          <a href="/blog" data-lfr-editable-id="link1" data-lfr-editable-type="link" 
28            >BLOG</a 
29
30          <span data-lfr-editable-id="text2" data-lfr-editable-type="text" 
31            >${Titulo.getData()}</span 
32
33        </div> 
34       
35      </div> 
36    </div> 
37  </div> 
38 
39</section> 
40 
41 
42<div class="view-news"> 
43<div class="header-new"> 
44    <div class="title " effect="animate__fadeInLeft" delay=".6"> 
45        <div class="d-flex w-100 justify-content-between align-item-baseline"> 
46            <p class="cat-date"> 
47            <#if Fecha?? && Fecha.getData()?? > 
48            <#assign Fecha_Data = getterUtil.getString(Fecha.getData())> 
49            <#if validator.isNotNull(Fecha_Data)> 
50                <#assign Fecha_DateObj = dateUtil.parseDate("yyyy-MM-dd", Fecha_Data, locale)> 
51                <strong>${dateUtil.getDate(Fecha_DateObj, "dd MMM yyyy", locale)}</strong> 
52            </#if> 
53            </#if> 
54            </p> 
55            <p class="categories"> 
56            <#list asset.getCategories() as category> 
57                <#if (category.vocabularyId = 67255 )> 
58                <span> 
59                    ${category.name} 
60                </span> 
61                </#if> 
62            </#list> 
63            </p> 
64        </div> 
65        <#if Titulo.getData()?? && Titulo.getData() != ""> 
66        <h1>${Titulo.getData()}</h1> 
67        </#if> 
68         
69    </div> 
70    <#if ImagenPrincipal1.getData()?? && ImagenPrincipal1.getData() != ""> 
71        <div class="image " effect="animate__fadeInRight" delay="1.3" title="${ImagenPrincipal1.getAttribute("alt")}" style="background-image:url(${ImagenPrincipal1.getData()})"> 
72        <#else> 
73        <div class="image " effect="animate__fadeInRight" delay="1.3" title="imagen noticia" style="background-color:gray"> 
74    </#if> 
75    </div> 
76</div> 
77<#if Entradilla.getData()?? && Entradilla.getData() != ""> 
78<div class="align-items-stretch d-flex flex-wrap header-entrance justify-content-between " effect="animate__fadeInUp" delay="1.5"> 
79    <div class="content"> 
80        <div>${Entradilla.getData()}</div> 
81     
82    </div> 
83    <div class="share"> 
84   <!-- <a target="_blank" href="https://twitter.com/intent/tweet?text=${friendlyURLs[themeDisplay.getLanguageId()]}" aria-label="true"><span class="icon-twitter" aria-hidden="true"></span></a>--> 
85    <a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=${friendlyURLs[themeDisplay.getLanguageId()]}/&title=${minititle}" aria-label="true"><span class="icon-linkedin" aria-hidden="true"></span></a> 
86    <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=${friendlyURLs[themeDisplay.getLanguageId()]}&t=${Titulo.getData()}" aria-label="true" ><span class="icon-facebook" aria-hidden="true"></span></a> 
87</div> 
88</div> 
89 
90</#if> 
91 
92<#if Cuerpo.getData()?? && Cuerpo.getData() != ""> 
93<div class="body-new"> 
94    ${Cuerpo.getData()} 
95</div> 
96</#if> 
97<#assign download = ''> 
98<#list Descargables.getSiblings() as cur_Descargables> 
99    <#if cur_Descargables?? && cur_Descargables.Archivo_descargable?? && cur_Descargables.Archivo_descargable.getData()?? && cur_Descargables.Archivo_descargable.getData() != ""> 
100        <#assign download = 'yes'> 
101    </#if> 
102</#list> 
103<#if download == 'yes'> 
104<div class="box-download border-bottom mb-3" > 
105 <#list Descargables.getSiblings() as cur_Descargables> 
106    <#if cur_Descargables.Archivo_descargable.getData()?? && cur_Descargables.Archivo_descargable.getData() != ""> 
107    
108        <a class="download-icon link border-0 w-auto mr-4" href="${cur_Descargables.Archivo_descargable.getData()}"> 
109             ${cur_Descargables.Nombre_descargable.getData()} 
110        </a> 
111     
112    </#if> 
113</#list> 
114</div> 
115 
116</#if> 
117 
118<#assign tags = false> 
119<#list asset.getTags() as tag> 
120    <#assign tags = true> 
121</#list> 
122<#if (tags = true)> 
123    <div class="cat-tags d-inline-block mt-3 w-100"> 
124    <#list asset.getTags() as tag> 
125        <span>${tag.name}</span> 
126    </#list> 
127    </div> 
128</#if> 
129<div class="cat-share-bottom"> 
130            <span> 
131            ${Compártelo} 
132            </span> 
133            <div class="share">  
134               <a target="_blank" href="https://twitter.com/intent/tweet?text=${friendlyURLs[themeDisplay.getLanguageId()]}" aria-label="true" ><span class="icon-twitter" aria-hidden="true"></span></a> 
135                <a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=${friendlyURLs[themeDisplay.getLanguageId()]}/&title=${minititle}" aria-label="true"><span class="icon-linkedin" aria-hidden="true"></span></a> 
136                <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=${friendlyURLs[themeDisplay.getLanguageId()]}" aria-label="true"><span class="icon-facebook" aria-hidden="true"></span></a> 
137            </div> 
138        </div> 
139 <#list Fuentes.getSiblings() as cur_Fuentes> 
140    <#if (cur_Fuentes.Enlace_fuentes.getData()?? && cur_Fuentes.Enlace_fuentes.getData() == "") && (cur_Fuentes.Nombre_fuentes.getData()?? && cur_Fuentes.Nombre_fuentes.getData() != "")> 
141        <span class="border-0 w-auto mr-4" href="${cur_Fuentes.Enlace_fuentes.getData()}"> 
142             <strong>Fuente:</strong> ${cur_Fuentes.Nombre_fuentes.getData()} 
143        </span> 
144    </#if> 
145    <#if (cur_Fuentes.Enlace_fuentes.getData()?? && cur_Fuentes.Enlace_fuentes.getData() != "") && (cur_Fuentes.Nombre_fuentes.getData()?? && cur_Fuentes.Nombre_fuentes.getData() != "")> 
146        <span> 
147           <strong> Fuente:</strong> <a style="font-weight: 100;" class="external-link link border-0 w-auto mr-4" href="${cur_Fuentes.Enlace_fuentes.getData()}"> 
148             ${cur_Fuentes.Nombre_fuentes.getData()} 
149        </a> 
150        </span> 
151    </#if> 
152</#list> 
153<#assign cats =  false> 
154<#list asset.getCategories() as category> 
155    <#assign cats =  true> 
156</#list> 
157<#if ( cats =  true)> 
158   <div class="cat-links"> 
159    
160    <div class="categories"> 
161     <span> 
162    Seguir leyendo sobre: 
163    </span> 
164    <#list asset.getCategories() as category> 
165            <a href="/web/guest/noticias/-/categories/${category.categoryId}"> 
166                ${category.name} 
167            </a>        
168    </#list> 
169    </div> 
170</div>  
171</#if> 
172 
173</div> 
174 
175 
176<script> 
177 
178incrementViewCounter('${asset.getClassPK()}'); 
179 
180function incrementViewCounter(classPK) { 
181	Liferay.Service( 
182	  '/assetentry/increment-view-counter', 
183
184		companyId: Liferay.ThemeDisplay.getCompanyId(), 
185		className: 'com.liferay.journal.model.JournalArticle', 
186		classPK: classPK 
187	  }, 
188	  function(obj) { 
189		//no need to do anything 
190
191	); 
192
193</script> 
194<style> 
195.view-news .header-entrance .share { 
196    width: 100%; 
197    display: flex; 
198    flex-direction: row; 
199
200.view-news .header-entrance .share a{ 
201    margin-right:11px; 
202
203.view-news .header-entrance { 
204    margin: 20px 0; 
205
206.view-news .header-entrance .content { 
207    width: 100%; 
208    padding-left: 0; 
209    margin-top: 10px; 
210
211strong u{ 
212        font-weight: 500; 
213
214.component-html img { 
215    max-width: 100%; 
216    width: auto; 
217    height: auto; 
218
219.content ul{ 
220    padding-left:25px; 
221    list-style:initial; 
222
223.content ul li{ 
224 
225    list-style:initial; 
226
227.body-new ul, ol { 
228    list-style: auto; 
229    padding-left: 20px; 
230
231.body-new ul li { 
232    list-style: initial; 
233    margin: 10px 0; 
234
235.body-new li{ 
236    margin: 10px 0; 
237
238</style> 

Et podria interessar

¿Necesitas ayuda?

Formulari

Necesitas ayuda footer

También puedes contactarnos por e-mail consulta@barcelonaenergia.cat o llamarnos al 900 906 807

Resolvemos tus dudas

Aquí encontrarás respuesta a las preguntas que más nos hacéis con más frecuencia. ¡Es la forma más rápida de resolver tus dudas!

PREGUNTAS FRECUENTES