【模板】栏目不存在

关键词:CatalogNotFoundException: <@cms_catalog>[id: 0, alias: news1]

此错误表示模板中的 <@cms_catalog> 标签引用的栏目数据不存在,此类错误页面会提示错误在哪个模板的哪一行哪一列,如下所示错误信息表示在模板的 swikoon_pc/template/header.template.html 的第 16 行 9 列,存在 <@cms_catalog> 标签引用了不存在的栏目,栏目别名为 news1

{"code":500,"msg":"No error description was specified for this error; low-level message: com.chestnut.contentcore.template.exception.CatalogNotFoundException: <@cms_catalog>[id: 0, alias: news1]\n\n----\nFTL stack trace (\"~\" means nesting-related):\n\t- Failed at: @cms_catalog alias=\"news1\" level=\"Self\"  [in template \"swikoon_pc/template/header.template.html\" at line 16, column 9]\n\t- Reached through: @cms_include file=\"header.template.html\"  [in template \"swikoon_pc/template/index.template.html\" at line 51, column 3]\n----\n\n----\nFTL stack trace (\"~\" means nesting-related):\n\t- Failed at: @cms_catalog alias=\"news1\" level=\"Self\"  [in template \"swikoon_pc/template/header.template.html\" at line 16, column 9]\n\t- Reached through: @cms_include file=\"header.template.html\"  [in template \"swikoon_pc/template/index.template.html\" at line 51, column 3]\n----"}

解决方法:

  • 如果是栏目别名写错了,修改引用的栏目别名

  • 如果是引用的栏目不存在,后台创建相关栏目

内容导航