内容页访问404
来源:本站原创
点击数: 次
发布时间:2026年05月14日
问题描述:信息公开列表页访问正常,但是内容页都404
解决方法:常规检查就是1.确认栏目路由是否正确;2.确认文章路由和ID是否正确
但这次遇到的节点和文章路由都正常,最后解决方法如下:
--NodeReferenceCount 大于0表示有关联节点.ReferenceNodeId=该节点id在 PE_ContentManage_NodeReferenceRelation 关联表找不到记录就会报错
select NodeReferenceCount,NodeId,* from PE_ContentManage_Node where Identifier='tjsj';
select * from PE_ContentManage_NodeReferenceRelation where ReferenceNodeId=2377
已知报错栏目的情况下可以上述方法查询,然后节点关联关系重新保存一下;下面可以查询出存在该问题的节点。
select NodeId from PE_ContentManage_Node where NodeReferenceCount>0 and NodeId not in(select NodeId from PE_ContentManage_NodeReferenceRelation)
