The following has evaluated to null or missing: ==> article.author.view_href [in template "custom-blog-articles-item" at line 29, column 31]
Dear all,
Thank you in advance for your help in finding a solution to this issue.
How should I change the above code with asissnging the author??
<#assign authorLink = article.author.view_href />
Solved! Go to Solution.
Hi @etwardowska ,
This can happen when the user is deleted or any such cause wherein the profile page of the user is not available.
To remove this error, I would suggest that before adding any filed, you can check if the value exists with ?has_content or you can assign a default value with Freemaker wherein no redirection is carried.
Documentation for the same:
https://freemarker.apache.org/docs/dgui_template_exp.html#dgui_template_exp_missing_default
https://freemarker.apache.org/docs/ref_builtins_expert.html#ref_builtin_has_content
Please Give Kudos if you find this post useful and also mark this as Accepted Solution if this is the required solution.
Regards
Tarun Kumar
@Tarun wrote:Hi @etwardowska ,
This can happen when the user is deleted or any such cause wherein the profile page of the user is not available. png to ico
To remove this error, I would suggest that before adding any filed, you can check if the value exists with ?has_content or you can assign a default value with Freemaker wherein no redirection is carried.
Documentation for the same:
https://freemarker.apache.org/docs/dgui_template_exp.html#dgui_template_exp_missing_default
https://freemarker.apache.org/docs/ref_builtins_expert.html#ref_builtin_has_content
Please Give Kudos if you find this post useful and also mark this as Accepted Solution if this is the required solution.
Regards
Tarun Kumar
Thank you Ill have a look into
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!