An error occurred while processing the template.
The following has evaluated to null or missing:
==> fields["facebookImage"][0].getValue().getString(realLocale)  [in template "20155#20195#NEWS" at line 38, column 37]

----
Tip: If the failing expression is known to be 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: facebookImageData = fields["facebookI...  [in template "20155#20195#NEWS" at line 38, column 17]
	- Reached through: #assign-container  [in template "20155#20195#NEWS" at line 37, column 9]
----
1<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
2<#assign httpServletRequest = serviceContext.getRequest()/> 
3<#assign lang = languageUtil.getLanguageId(httpServletRequest) /> 
4<#assign realLocale = localeUtil.fromLanguageId (lang) /> 
5	 
6<#assign groupId = themeDisplay.getLayout().getGroupId() /> 
7<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
8<#assign ja = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data ) /> 
9<#assign resourceprimKey = ja.getResourcePrimKey() /> 
10<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
11<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", resourceprimKey) /> 
12<#assign 
13fields = assetEntry.getAssetRenderer().getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValuesMap() 
14abstract = fields["abstract"][0].getValue().getString(realLocale) 
15content = fields["content"][0].getValue().getString(realLocale) 
16dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") 
17mainPageImage = "" 
18facebookImage = "" 
19/> 
20<#if fields["mainPageImage"]?has_content && fields["mainPageImage"][0]?? > 
21	<#assign 
22		mainPageImageData = fields["mainPageImage"][0].getValue().getString(realLocale) 
23		mainPageImageJsonImage = jsonFactoryUtil.createJSONObject(mainPageImageData) 
24 
25	/> 
26	<#if mainPageImageJsonImage.uuid?has_content > 
27		<#assign 
28			groupId = mainPageImageJsonImage.getLong("groupId") 
29			mainPageImageFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(mainPageImageJsonImage.uuid, groupId) 
30			mainPageImageAssetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", mainPageImageFileEntry.fileEntryId) 
31			mainPageImageAssetRenderer = mainPageImageAssetEntry.assetRenderer 
32			mainPageImage = mainPageImageAssetRenderer.getURLDownload(themeDisplay) 
33		/> 
34	</#if> 
35</#if> 
36<#if fields["facebookImage"]?has_content && fields["facebookImage"][0]?? > 
37	<#assign 
38		facebookImageData = fields["facebookImage"][0].getValue().getString(realLocale) 
39		facebookImageJsonImage = jsonFactoryUtil.createJSONObject(facebookImageData) 
40	/> 
41	<#if facebookImageJsonImage.uuid?has_content > 
42		<#assign 
43			groupId = facebookImageJsonImage.getLong("groupId") 
44			facebookImageFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(facebookImageJsonImage.uuid, groupId) 
45			facebookImageAssetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", facebookImageFileEntry.fileEntryId) 
46			facebookImageAssetRenderer = facebookImageAssetEntry.assetRenderer 
47			facebookImage = facebookImageAssetRenderer.getURLDownload(themeDisplay) 
48		/> 
49	</#if> 
50</#if> 
51<#assign tags = assetEntry.getTags() /> 
52<#assign displayDate = dateUtil.getDate(ja.getDisplayDate(),"dd/MM", realLocale) /> 
53<#assign displayYear = dateUtil.getDate(ja.getDisplayDate(),"yyyy", realLocale) /> 
54<#if realLocale.getLanguage() == "hu" > 
55	<#assign displayDate = dateUtil.getDate(ja.getDisplayDate(),"MMM d.", realLocale) /> 
56</#if> 
57<#assign portalPreferencesService = serviceLocator.findService("com.liferay.portal.kernel.service.PortalPreferencesLocalService") /> 
58<#assign preferences = portalPreferencesService.getPreferences(themeDisplay.getCompanyId(), 1) /> 
59<#assign homeURL = themeDisplay.getURLPortal() /> 
60<#assign searchPageLink = preferences.getValue("key-search-page-link", "") /> 
61<#assign searchPageLink = "${homeURL + searchPageLink}" /> 
62<#assign bgImage = mainPageImage!"" /> 
63<#assign class = "" /> 
64<#if bgImage == "" > 
65	<#assign bgImage = facebookImage!"" /> 
66</#if> 
67<#if bgImage == "" > 
68	<#assign bgImage = "/o/regens-theme/images/news_default_bg.jpg" /> 
69	<#assign class = "default" /> 
70</#if> 
71	 
72<div class="content-with-parallax-jumbotron ${class} ${realLocale}"> 
73	<div class="bg"></div> 
74	<div class="jumbotron container"> 
75		<h1>${ja.getTitle(realLocale)}</h1> 
76		<div class="full-date"> 
77			<span class="year">${displayYear}</span><#if realLocale.getLanguage() == "hu">. <#else>/</#if><span class="month-day">${displayDate}</span> 
78		</div> 
79	</div> 
80	<div class="structure-content container"> 
81		<div class="abstract"> 
82			${abstract} 
83		</div> 
84		<div class="content"> 
85			${content} 
86		</div> 
87		<p> 
88			<#if tags?? > 
89				<#list tags as tag > 
90					<#assign tagName = tag.getName() /> 
91					<#if (tagName?index_of("--") > -1) > 
92						<#if realLocale.getLanguage() == "en"> 
93							<#assign tagName =  tagName?substring(0, tagName?index_of("--")) /> 
94						<#else> 
95							<#assign tagNameInd = tagName?index_of("--") + 2 /> 
96							<#assign tagName =  tagName?substring(tagNameInd) /> 
97						</#if> 
98					</#if> 
99					<div class="tag"> 
100						<a href="/search?q=${htmlUtil.escape(tagName)}"> 
101							<span>${tagName}</span> 
102						</a> 
103					</div> 
104				</#list> 
105			</#if> 
106		</p> 
107	</div> 
108</div> 
109 
110<style> 
111.bg { 
112	background-image: url('${bgImage}') !important; 
113
114#content { 
115	max-width: 100% !important; 
116	padding: 0 !important; 
117
118#main-content { 
119	max-width: 100% !important; 
120
121</style> 
122 
123<@liferay_util["html-top"] outputKey="news"> 
124	<meta property="og:title" content="${ja.getTitle(realLocale)}"> 
125	<meta property="og:url" content="${themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()}"> 
126	<meta property="og:type" content="article"> 
127	<#if facebookImage?? > 
128		<meta property="og:image" content="${facebookImage}"> 
129	<#elseif bgImage?? > 
130		<meta property="og:image" content="${bgImage}"> 
131	</#if> 
132	<meta property="og:description" content="${abstract}"> 
133	<meta property="og:locale" content="${realLocale}"> 
134	<meta property="og:site_name" content="${themeDisplay.getSiteGroupName()}"> 
135</@> 

Try our AI-based speech recognition application for free!

Speed ​​up your work with artificial intelligence! With the help of Alrite, you can easily create Hungarian transcriptions and video captions for dictated or previously recorded audio and video materials. The application offers the ability to store files, edit and share transcriptions and captions, and perform advanced search options.

More information