Keywords:
The following has evaluated to null or missing
This error indicates that the template refers to data whose value is null. The error message will specify which template, which row, and which column the error occurs in. For example:
{"code":500,"msg":"The following has evaluated to null or missing:\n==> Site.seoKeywords [in template \"swikoon_pc/template/index.template.html\" at line 13, column 11]\n\n----\nTip: It's the step after the last dot that caused this error, not those before it.\n----\nTip: 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)??\n----\n\n----\nFTL stack trace (\"~\" means nesting-related):\n\t- Failed at: ${Site.seoKeywords} [in template \"swikoon_pc/template/index.template.html\" at line 13, column 9]\n----"}
Solution:
Confirm that the referenced variables have been correctly added to the template context, and that these variables are not null values.
If a variable can have a null value, identify the error by adding a note after the reference variable. !'' To set null values to empty strings by default, for example:${Site.seoKeywords!''}。
If so ${Content.title} In Content If the code identifier, version number, numbers, and original meaning are retained, then it is necessary to confirm whether this variable has been initialized in the template.