An error occurred while processing the template.
The following has evaluated to null or missing: ==> userLocalService.fetchUser(curBlogEntry.getUserId()) [in template "20099#20125#41205" at line 63, column 117] ---- 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: entryUser = userLocalService.fetchUse... [in template "20099#20125#41205" at line 63, column 105] ----
1<div class="row widget-mode-card">
2 <ul class="card-page">
3 <#if entries?has_content>
4 <#list entries as curBlogEntry>
5 <#if curBlogEntry.getCoverImageURL(themeDisplay)??>
6 <#assign cardImage = true />
7 <#else>
8 <#assign cardImage = false />
9 </#if>
10
11 <li class="card-page-item card-page-item-asset">
12 <div class="card">
13 <div class="aspect-ratio aspect-ratio-8-to-3 card-item-first">
14 <img alt="thumbnail" class="aspect-ratio-item-center-middle aspect-ratio-item-fluid" src="${cardImage?then(curBlogEntry.getCoverImageURL(themeDisplay), portalUtil.getPathContext(renderRequest) + "/images/cover_image_placeholder.jpg")}">
15 </div>
16
17 <div class="card-body widget-topbar">
18 <div class="autofit-row card-title">
19 <div class="autofit-col autofit-col-expand">
20 <#assign viewEntryPortletURL = renderResponse.createRenderURL() />
21
22 ${viewEntryPortletURL.setParameter("mvcRenderCommandName", "/blogs/view_entry")}
23 ${viewEntryPortletURL.setParameter("redirect", currentURL)}
24
25 <#if validator.isNotNull(curBlogEntry.getUrlTitle())>
26 ${viewEntryPortletURL.setParameter("urlTitle", curBlogEntry.getUrlTitle())}
27 <#else>
28 ${viewEntryPortletURL.setParameter("entryId", curBlogEntry.getEntryId()?string)}
29 </#if>
30
31 <h3 class="title">
32 <a class="title-link" href="${viewEntryPortletURL.toString()}">
33 ${htmlUtil.escape(blogsEntryUtil.getDisplayTitle(resourceBundle, curBlogEntry))}</a>
34 </h3>
35 </div>
36
37 <div class="autofit-col">
38 <@clay["dropdown-actions"]
39 additionalProps=blogsEntryActionDropdownAdditionalProps
40 dropdownItems=blogsEntryActionDropdownItemsProvider.getActionDropdownItems(curBlogEntry)
41 propsTransformer="blogs_admin/js/ElementsPropsTransformer"
42 propsTransformerServletContext=blogsEntryActionDropdownPropsTransformerServletContext
43 />
44 </div>
45 </div>
46
47 <div class="autofit-row widget-metadata">
48 <div class="autofit-col inline-item-before">
49 <@liferay_ui["user-portrait"]
50 size="lg"
51 userId=curBlogEntry.userId
52 userName=curBlogEntry.userName
53 />
54 </div>
55
56 <div class="autofit-col autofit-col-expand">
57 <div class="autofit-row">
58 <div class="autofit-col autofit-col-expand">
59 <#if serviceLocator??>
60 <#assign
61 userLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService")
62
63 entryUser = userLocalService.fetchUser(curBlogEntry.getUserId())
64 />
65
66 <#if entryUser?? && !entryUser.isDefaultUser()>
67 <#assign entryUserURL = entryUser.getDisplayURL(themeDisplay) />
68 </#if>
69 </#if>
70
71 <div class="text-truncate-inline">
72 <a href="${(entryUserURL?? && validator.isNotNull(entryUserURL))?then(entryUserURL, "")}" class="text-truncate username">${curBlogEntry.getUserName()}</a>
73 </div>
74
75 <div>
76 ${dateUtil.getDate(curBlogEntry.getStatusDate(), "dd MMM", locale)}
77
78 <#if blogsPortletInstanceConfiguration.enableReadingTime()>
79 - <@liferay_reading_time["reading-time"] displayStyle="simple" model=curBlogEntry />
80 </#if>
81
82 <#assign assetEntry = blogsEntryAssetEntryUtil.getAssetEntry(request, curBlogEntry) />
83
84 <#if blogsPortletInstanceConfiguration.enableViewCount()>
85 - <@liferay_ui["message"] arguments=assetEntry.getViewCount() key=(assetEntry.getViewCount()==0)?then("x-view", "x-views") />
86 </#if>
87 </div>
88 </div>
89 </div>
90 </div>
91 </div>
92
93 <#if validator.isNotNull(curBlogEntry.getDescription())>
94 <#assign content = curBlogEntry.getDescription() />
95 <#else>
96 <#assign content = curBlogEntry.getContent() />
97 </#if>
98
99 <#if cardImage>
100 <p class="widget-resume">${stringUtil.shorten(htmlUtil.stripHtml(content), 150)}</p>
101 <#else>
102 <p class="widget-resume">${stringUtil.shorten(htmlUtil.stripHtml(content), 400)}</p>
103 </#if>
104 </div>
105
106 <div class="card-footer">
107 <div class="autofit-float autofit-row autofit-row-center widget-toolbar">
108 <#if blogsPortletInstanceConfiguration.enableComments()>
109 <div class="autofit-col">
110 <#assign viewCommentsPortletURL = renderResponse.createRenderURL() />
111
112 ${viewCommentsPortletURL.setParameter("mvcRenderCommandName", "/blogs/view_entry")}
113 ${viewCommentsPortletURL.setParameter("scroll", renderResponse.getNamespace() + "discussionContainer")}
114
115 <#if validator.isNotNull(curBlogEntry.getUrlTitle())>
116 ${viewCommentsPortletURL.setParameter("urlTitle", curBlogEntry.getUrlTitle())}
117 <#else>
118 ${viewCommentsPortletURL.setParameter("entryId", curBlogEntry.getEntryId()?string)}
119 </#if>
120
121 <a class="btn btn-outline-borderless btn-outline-secondary btn-sm" href="${viewCommentsPortletURL.toString()}" title="${language.get(locale, "comments")}">
122 <span class="inline-item inline-item-before">
123 <@clay["icon"] symbol="comments" />
124 </span> ${commentManager.getCommentsCount("com.liferay.blogs.model.BlogsEntry", curBlogEntry.getEntryId())}
125 </a>
126 </div>
127 </#if>
128
129 <#if blogsPortletInstanceConfiguration.enableRatings()>
130 <div class="autofit-col">
131 <@liferay_ratings["ratings"]
132 className="com.liferay.blogs.model.BlogsEntry"
133 classPK=curBlogEntry.getEntryId()
134 />
135 </div>
136 </#if>
137
138 <div class="autofit-col autofit-col-end">
139 <#assign bookmarkURL = renderResponse.createRenderURL() />
140
141 ${bookmarkURL.setWindowState(windowStateFactory.getWindowState("NORMAL"))}
142 ${bookmarkURL.setParameter("mvcRenderCommandName", "/blogs/view_entry")}
143
144 <#if validator.isNotNull(curBlogEntry.getUrlTitle())>
145 ${bookmarkURL.setParameter("urlTitle", curBlogEntry.getUrlTitle())}
146 <#else>
147 ${bookmarkURL.setParameter("entryId", curBlogEntry.getEntryId()?string)}
148 </#if>
149
150 <@liferay_social_bookmarks["bookmarks"]
151 className="com.liferay.blogs.model.BlogsEntry"
152 classPK=curBlogEntry.getEntryId()
153 maxInlineItems=0
154 target="_blank"
155 title=blogsEntryUtil.getDisplayTitle(resourceBundle, curBlogEntry)
156 types=blogsPortletInstanceConfiguration.socialBookmarksTypes()
157 url=portalUtil.getCanonicalURL(bookmarkURL.toString(), themeDisplay, themeDisplay.getLayout())
158 />
159 </div>
160 </div>
161 </div>
162 </div>
163 </li>
164 </#list>
165 </#if>
166 </ul>
167</div>

Login
Enter your mobile number to proceed
Please enter the valid number
Hmm, seems like theres is a problem with generating OTP, try after sometime