Hiba jelentkezett a sablon feldolgozása során.
The following has evaluated to null or missing:
==> fields["mainPageImage"]  [in template "20155#20195#NEWS" at line 16, column 29]

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

Próbálja ki ingyenesen AI alapú beszédfelismerő alkalmazásunkat!

Gyorsítsa fel munkáját a mesterséges intelligencia segítségével! A magyar nyelvre optimalizált Alrite szoftveralkalmazás segítségével egyszerűen készíthet szövegleiratokat és videó feliratokat a diktált, vagy már korábban rögzített hang- és videóanyagokhoz. Az alkalmazás lehetőséget kínál a fájlok tárolására, a szövegleiratok szerkesztésére és megosztására, valamint speciális keresési lehetőségekre.

Kipróbálom