站长资讯网
最全最丰富的资讯网站

phpcms v9提示“您要查看的信息不存在”怎么解决

phpcms v9提示“您要查看的信息不存在”怎么解决

phpcms v9提示“您要查看的信息不存在”怎么解决

解决方法:

找到/phpcms/modules/content/index.php,第59行

if(!$r || $r['status'] != 99) showmessage(L('info_does_not_exists'),'blank');

替换为:

if(!$r || $r['status'] != 99) header('location:/errorfiles/404.html');

解释下原理:

$r = $this->db->get_one(array('id'=>$id));//$r为根据id查询的这条内容信息。

赞(0)
分享到: 更多 (0)

网站地图   沪ICP备18035694号-2    沪公网安备31011702889846号