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

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

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